nellabunta Posted April 15, 2016 Share Posted April 15, 2016 I was trying to add a PDF attachment to my product and got this error message: JSON.parse:unexpected character at x line 1 column 1 of the json data. I have been attaching files with no issues until now. Why does this happen and what can I do to fix this issue? many thanks Link to comment Share on other sites More sharing options...
shokinro Posted April 15, 2016 Share Posted April 15, 2016 usually this happens when there is some unexpected error occurred during ajax call. some error message affect the JSON data parser. if you have turned on error displaying, then try to turn to set _PS_MODE_DEV_ to false in file /config/defines.inc.php to see if it fixes or if you know the ajax call URL and parameters, then manually run the ajax call on your browser to see if it output JSON data or not. Link to comment Share on other sites More sharing options...
nellabunta Posted April 15, 2016 Author Share Posted April 15, 2016 (edited) Hi Shokinro, I just had someone fix some errors for me. I'm thinking this may be caused by something he did because this only happened after the error issues were fixed. I contacted him with your suggestion. Thanks Edited April 15, 2016 by nellabunta (see edit history) Link to comment Share on other sites More sharing options...
shokinro Posted April 15, 2016 Share Posted April 15, 2016 it could the case, if you have something changed recently. hope if could bf fixed. Link to comment Share on other sites More sharing options...
nellabunta Posted April 17, 2016 Author Share Posted April 17, 2016 Hi Shokinro, I passed your suggestion on to the person working on the site and it seems to be working ok now. Thanks Link to comment Share on other sites More sharing options...
shokinro Posted April 17, 2016 Share Posted April 17, 2016 Hi Nellabunta my pleasure, and good to know the issue has been fixed and thanks for your update. 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