rever5e Posted March 6, 2016 Share Posted March 6, 2016 (edited) Running a Prestashop 1.6.1.2 store with the Amazon Payments Module v 2.0.18. When attempting to login i am redirected to Amazon's website as expect, i login successfully then i am redirected back to my own site. Once I arrive back at my own site i am greeted with the following error: Has anyone ran into something like this? Edited March 6, 2016 by rever5e (see edit history) Link to comment Share on other sites More sharing options...
patworx Posted March 7, 2016 Share Posted March 7, 2016 This is the generic message of PrestaShop. Could you please look in your php-errorlog? There you should find a specific message what's going wrong. At this specific point, this message usually appears if there is some problem with php-curl, fetching the user-data from Amazon. Could be server-related or configuration-related. If you need further support, please contact us at [email protected]. That's the fastest way to get to us, so we can help. Thanks! Link to comment Share on other sites More sharing options...
rever5e Posted March 7, 2016 Author Share Posted March 7, 2016 Hmm i don't see any errors in the PHP log. I'm going to investigate this more. It doesn't look like a generic error from Prestashop it's been triggered when the AJAX request fails as far as i can tell from this snippet. $(document).ready(function() { $.ajax({ type: 'GET', url: SETUSERAJAX, data: 'ajax=true&method=setusertoshop&access_token=' + accessToken, success: function(htmlcontent) { if (htmlcontent == 'error') { alert('An error occured - please try again or contact our support'); } else { window.location = htmlcontent; } } }); });; The only other potential issue i can see is the following error in the debugger console: Link to comment Share on other sites More sharing options...
patworx Posted March 7, 2016 Share Posted March 7, 2016 The AJAX request returns "error". So this is the generic message But when "error" is returned, there must be an entry in the error-log. Link to comment Share on other sites More sharing options...
rever5e Posted March 7, 2016 Author Share Posted March 7, 2016 The AJAX request returns "error". So this is the generic message But when "error" is returned, there must be an entry in the error-log. Ah yes i see the PHP error now: "Error, method not submitted and no token" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now