Forums / General Questions / JSON syntax error on shopping cart page

JSON syntax error on shopping cart page

Views: 28,498

Results 1 to 8 of 8
1 Sep 2016, 12:07 AM
#1
sports_guy avatar

sports_guy

Totally Zenned

Join Date:
Apr 2007
Location:
Dayton, Ohio
Posts:
682
Plugin Contributions:
0

JSON syntax error on shopping cart page

I just upgraded an older store from v1.5.1 to 1.5.5a. But when I add an item to the cart I get this error:

An unknown response null: :text/html; charset=utf-8: :SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data was received while processing an ajax call. The action you requested could not be completed.

I found this post: https://www.zen-cart.com/showthread.php?217471-Duplicate-Login-page-error-in-1-5-4-when-Customer-Shop-Status-Must-login-to-brows that led me to this post: https://www.zen-cart.com/showthread.php?215694-Known-Bugs-%28and-fixes%29-with-v1-5-4 (Thread #6)

But in my Admin->Configuration->Customer Details I have set Customer Approval Status - Authorization Pending to 0 yet still see the error. Again my setting is both 0 and has the coding in the page recommended for the fix, so I don't know why I am seeing this error.

Building a better web, one site at a time: Dayton Web Design

1 Sep 2016, 2:12 AM
#2
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,970
Plugin Contributions:
8

Re: JSON syntax error on shopping cart page

a link to the site if available would be of some help....

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

1 Sep 2016, 5:07 AM
#4
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,970
Plugin Contributions:
8

Re: JSON syntax error on shopping cart page

i would like to help.... but i am now in the position to choose to not help sites that make use of a template from picaflor-azul.

perhaps anne and mark can help with this problem?

hopeful that you get it resolved. i find JSON errors some of the more interesting/difficult ones to figure out.

good luck!

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

9 Sep 2016, 6:40 PM
#5
sports_guy avatar

sports_guy

Totally Zenned

Join Date:
Apr 2007
Location:
Dayton, Ohio
Posts:
682
Plugin Contributions:
0

Re: JSON syntax error on shopping cart page

OK I don't know what I am doing here, but I can see this file: /includes/init_includes/init_customer_auth.php has the same coding as the file located in v1.5.5a (which is what I just upgraded too). So this file was upgraded like it was supposed to with my newest Zen Cart version. I know nothing of JSON and this error is preventing me from launching this store. I don't know where or what to look at here but my problem persists.

Please help as this problem is causing my store from being launched.

Building a better web, one site at a time: Dayton Web Design

9 Sep 2016, 6:54 PM
#6
sports_guy avatar

sports_guy

Totally Zenned

Join Date:
Apr 2007
Location:
Dayton, Ohio
Posts:
682
Plugin Contributions:
0

Re: JSON syntax error on shopping cart page

I get this same error when I hit the checkout or try and estimate shipping on the cart page as well.

Building a better web, one site at a time: Dayton Web Design

9 Sep 2016, 7:50 PM
#7
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,970
Plugin Contributions:
8

Re: JSON syntax error on shopping cart page

you are using a template meant for v1.5.4 not v1.5.5 or v.1.5.5a

you are getting a "method error" because the the function setNoscriptCookie existed in v1.5.4 in includes/classes/ajax/zcAjaxPayment.php and has since been removed from v1.5.5a.

i would encourage you to post in that template support forum, and encourage the template author to keep her templates up-to-date with the latest ZC versions.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

9 Sep 2016, 9:17 PM
#8
sports_guy avatar

sports_guy

Totally Zenned

Join Date:
Apr 2007
Location:
Dayton, Ohio
Posts:
682
Plugin Contributions:
0

Re: JSON syntax error on shopping cart page

Thank you Carlwhat. Given your last post about not wanting to work with picaflor-azul templates, I realized you really did me a big square. I will post this in the proper template area.

Building a better web, one site at a time: Dayton Web Design