Page 1 of 1

SyntaxError: JSON.parse: unexpected character at line 1

Posted: Thu Oct 22, 2015 4:07 am
by oz457
Dear all,

I have upgraded my website from 1.5.6.4 to 2.O.1.3 successfully. Everything works, but one thing!

I can't change any order status when going in admin to home/orders/history. I'm totally lost, so I have no clue.
Is there anyone who has seen this error:
-----start of quote--->
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

OK

<b>Notice</b>: Undefined variable: json in <b>/export/websites/le-parfumeur/shop/admin/controller/sale/order.php</b> on line <b>2221</b>

<-----end of quote----
Deleting an order does not work either, but I don't see any error messages. Same error occurs when editing an order.

I try to figure out what variable is not defined, but it leaves me no clue. I have tried the api trick, does not work either.
If you have any answers, maybe let me know how to debug this error. How to find which variable is missing...


Thanks for any help.

Re: SyntaxError: JSON.parse: unexpected character at line 1

Posted: Thu Oct 22, 2015 7:20 am
by giproc
Same for me.

Tried everything suggested from numerous threads. No luck.

I suspect it's the host blocking cURL loopbacks, but that hasn't been confirmed. Surely OC can release a patch so that those of us who don't want to upgrade to 2.1 at this time can complete the implementation of our sites.

Re: SyntaxError: JSON.parse: unexpected character at line 1

Posted: Thu Oct 22, 2015 7:58 am
by oz457
Upgrading to 2.1.0.1 is not an option as there are too many errors when upgrading. The upgrade scripts are not yet working well. I prefer to stick to 2.0.x.x until the upgrade scripts are working well.
But now 2.0.x.x is also not working due to the above error, I'm still with an operational version of 1.5.6.4. As long the test environment is not working, I'm stuck with the upgrade.

Re: SyntaxError: JSON.parse: unexpected character at line 1

Posted: Thu Oct 22, 2015 9:43 pm
by oz457
Issue solved,

Curl got deleted for some reasons from the apache server.

a
sudo apt-get install php5-curl
and
sudo /etc/init.d/apache2 restart

did the trick. Hope this will be of any help for other people.

Re: SyntaxError: JSON.parse: unexpected character at line 1

Posted: Thu Oct 22, 2015 11:02 pm
by giproc
Not for us I'm afraid. cURL is running.

Re: SyntaxError: JSON.parse: unexpected character at line 1

Posted: Wed Oct 28, 2015 8:03 pm
by giproc
Strange twist.

On the default store the orders can be edited fine.

On secondary stores in mulit-store environments we get his error when trying to edit. Same thing happening on two separate installs.

ANy suggestiong GREATLY appreciated since we are paralyzed until we find a solution.