opencart 2.0 SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data OK

user2242141 picture user2242141 · Jan 20, 2015 · Viewed 12.3k times · Source

I looked all over the internet and found no answer.

Basically my problem is whenever I try to edit orders and change stores I get the SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data OK in firefox and in chrome I get SyntaxError: Unexpected end of input OK.

Has anyone found a "real" solution for this because I tried all that was suggested but they don't work. From changing the api_id to making a secondary API. And even the .htaccess method.

Answer

Acey_nl picture Acey_nl · Jul 15, 2015

I got the same error and found away to fix it:

  1. Login in the backend as admin and go to System > Users > Api
  2. Create a new api with a generated password and make sure it's enabled
  3. Go to your store settings (system > settings > Edit) and open the Option tab
  4. Scroll down till you find the 'checkout'
  5. Where it says 'API User' select the API User you just created
  6. Save the changes and your done!

You'll be able to edit the order status now!