After upgrading Shop.wayanad.co.in from Opencart 220.127.116.11 to 18.104.22.168, I found lot of errors/bugs which needs minor changes in config files, vqmod re-install etc. and was fixed.
But an error which stalled me from editing/updating orders killed my time a lot. It was “syntax error JSON.parse unexpected end of data at line 1 column 1 of the JSON data”
After googling and wandering opencart forums, i found the post http://www.viethemes.com/how-to-fix-error-syntaxerror-unexpected-end-of-input-ok-when-editing-order-in-opencart-2/ which helped me to fix this error.
- I added an API user with username “admin”
- Generated a password.
- Went to Store settings and selected the API user as “admin”
Really it helped me..With courtesy, I am sharing the link to above post here.
But today, the problem didn’t get solved even after removing old API user and adding a new one. Tried several times and no solution. Atlast, I understood that its the SMTP config causes JSON EOF error. I have changed the port to 465 before 2 days and it started throwing this error. After changing the SMTP port to old one, the JSON error disappeared.