Page 1 of 1

JSON Parse error: Unexpected EOF OK

Posted: Sat Jan 17, 2015 7:09 pm
by nuno
Hello, guys,

I am getting the following error when trying to update orders:

SyntaxError: JSON Parse error: Unexpected EOF
OK

Would you happen to have an idea on how to solve this issue? I am currently using Opencast 2.0.1.1, any help would be welcome.

Thank you

Re: JSON Parse error: Unexpected EOF OK

Posted: Sat Jan 17, 2015 7:48 pm
by opencarthow.com
nuno wrote:Hello, guys,

I am getting the following error when trying to update orders:

SyntaxError: JSON Parse error: Unexpected EOF
OK

Would you happen to have an idea on how to solve this issue? I am currently using Opencast 2.0.1.1, any help would be welcome.

Thank you
Hi,
You can follow this solution to fix it.

Re: JSON Parse error: Unexpected EOF OK

Posted: Sat Jan 17, 2015 11:01 pm
by nuno
Wow!! Thank you, opencarthow.com, you just saved my day :D

Re: JSON Parse error: Unexpected EOF OK

Posted: Sun Jan 18, 2015 1:09 am
by opencarthow.com
nuno wrote:Wow!! Thank you, opencarthow.com, you just saved my day :D
Glad to hear that you figurred out the problem :)

Re: JSON Parse error: Unexpected EOF OK

Posted: Thu Feb 05, 2015 6:23 pm
by AlphaAlpha
Hello,
excuse me btt the link you suggested is no longer available, could you be so kind to send the new link or publish the solution ?

Thank you very much

Tiziano

Re: JSON Parse error: Unexpected EOF OK

Posted: Thu Feb 05, 2015 9:12 pm
by viethemes
AlphaAlpha wrote:Hello,
excuse me btt the link you suggested is no longer available, could you be so kind to send the new link or publish the solution ?

Thank you very much

Tiziano
Is your site in the Maintenance Mode? If it is, you should disable it and check the problem again.

Re: JSON Parse error: Unexpected EOF OK

Posted: Thu Feb 05, 2015 10:25 pm
by AlphaAlpha
No it is not in Maintenace Mode but the problem is that the link suggested is not available, if you try to click on it, you receive a link error.

thanks

Re: JSON Parse error: Unexpected EOF OK

Posted: Thu Feb 05, 2015 11:14 pm
by viethemes
AlphaAlpha wrote:No it is not in Maintenace Mode but the problem is that the link suggested is not available, if you try to click on it, you receive a link error.

thanks
May the problem relates to your server. Could you provide your site url, a admin account and a FTP account via PM, so I can take a look at it closer?

Re: JSON Parse error: Unexpected EOF OK

Posted: Fri Feb 06, 2015 8:50 am
by fido-x
opencarthow.com wrote:
nuno wrote:Hello, guys,

I am getting the following error when trying to update orders:

SyntaxError: JSON Parse error: Unexpected EOF
OK

Would you happen to have an idea on how to solve this issue? I am currently using Opencast 2.0.1.1, any help would be welcome.

Thank you
Hi,
You can follow this solution to fix it.
@ viethemes: The link in the above quote is the one that AlphaAlpha was referring to.

Re: JSON Parse error: Unexpected EOF OK

Posted: Fri Feb 06, 2015 10:16 am
by viethemes
Yes, I see the link is not available. So I'm trying to help him to fix it :)

Re: JSON Parse error: Unexpected EOF OK

Posted: Fri Feb 06, 2015 4:21 pm
by fido-x
Under the "Options" tab in the store settings, there are three settings for order statuses. They are:
  • Order Status (the default status applied to orders)
    Processing Order Status (multiple selection)
    Complete Order Status (multiple selection)
When you update an order's history, you must use an order status that you have selected, either from the "Processing Order Status" list, or from the "Complete Order Status" list.

If you update to an order status that has not been selected, you will get a JSON error.

Re: JSON Parse error: Unexpected EOF OK

Posted: Sat Feb 07, 2015 4:43 am
by AlphaAlpha
All the three settings are properly set and the result is still the same.

Any possibility that the problem could be the server where I use to test the OC web site before to publish in the right domain ?

I use altervista.org for testing

Thanks

Re: JSON Parse error: Unexpected EOF OK

Posted: Wed Mar 11, 2015 10:29 am
by gbisqit
New link
http://www.viethemes.com/how-to-fix-err ... pencart-2/

1. Disable the Maintenance Mode in admin > System > Stores > Your store > tab Server.

2. Go to Admin > System > Users > API > Create new API account.

3. Go to Admin > System > Settings > Edit your store > Select tab Option > Checkout section > set API User to the created account.

Re: JSON Parse error: Unexpected EOF OK

Posted: Wed May 20, 2015 6:34 am
by conticreative
I am having this very error, but at checkout. I used to have the error when managing orders but thanks to a post in this thread I created a new API key and that solved that problem.

However, when I try to checkout right when the account is being created I get this:

Code: Select all

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

OK

<b>Notice</b>: Undefined variable: format in <b>/home/livelaughlove/public_html/system/modification/catalog/model/account/customer.php</b> on line <b>124</b>[] 
</snip>
NOTE: the error message goes on and on and looks like a JSON page full of addresses, zip codes, etc. Be happy to publish it if necessary.

What happens then is that the account is created, but the checkout page doesn't respond anymore. If I then login and checkout again, the checkout works fine, but this is clearly too convoluted for a regular customer to go through. The big error popup is going to scare everyone away.

Incidentally, if I checkout as guest, everything works fine.

I hope to find a solution for this. We are about to lunch but we can't until the checkout is fixed.

Re: JSON Parse error: Unexpected EOF OK

Posted: Sat Jun 27, 2015 8:16 pm
by jan499
The solution for me was to edit the etc/hosts file. Just add this:

wget www.yourdomain.com
curl www.yourdomain.com
telnet 0 80

Re: JSON Parse error: Unexpected EOF OK

Posted: Sun Jul 05, 2015 12:53 pm
by nick5000
jan499 wrote:The solution for me was to edit the etc/hosts file. Just add this:

wget http://www.yourdomain.com
curl http://www.yourdomain.com
telnet 0 80
This doesn't look like a correct format for hosts file. What did you write exactly?

Re: JSON Parse error: Unexpected EOF OK

Posted: Fri Jul 17, 2015 12:03 pm
by cargogirl
gbisqit wrote:New link
http://www.viethemes.com/how-to-fix-err ... pencart-2/

1. Disable the Maintenance Mode in admin > System > Stores > Your store > tab Server.

2. Go to Admin > System > Users > API > Create new API account.

3. Go to Admin > System > Settings > Edit your store > Select tab Option > Checkout section > set API User to the created account.
This Worked for me - THANK YOU

Re: JSON Parse error: Unexpected EOF OK

Posted: Tue Nov 24, 2015 2:20 pm
by shedloads
gbisqit wrote:
New link
http://www.viethemes.com/how-to-fix-err ... pencart-2/

1. Disable the Maintenance Mode in admin > System > Stores > Your store > tab Server.

2. Go to Admin > System > Users > API > Create new API account.

3. Go to Admin > System > Settings > Edit your store > Select tab Option > Checkout section > set API User to the created account.

This seems to work for ME too..........
Thanks

Bill

Re: JSON Parse error: Unexpected EOF OK

Posted: Mon Oct 31, 2016 7:39 pm
by mmarkoo
Thank You gbisqit