If this is your first visit, check our documentation. To post, register or login.
Forums / Built-in Shipping and Payment Modules / AJAX error when every page is displayed

AJAX error when every page is displayed

Started by austinjim on 18 Jul 2022, 9:14 PM · Views: 3,812

Results 1 to 2 of 2
18 Jul 2022, 9:14 PM
#1
austinjim avatar

austinjim

New Zenner

Join Date:
Sep 2010
Posts:
13
Plugin Contributions:
0

AJAX error when every page is displayed

Hi,
I'm running a recent download of v1.57c. I have configured some but not all settings I will need.

When I click on the cart icon I get a popup dialog with a 400 error whether anything is in the cart or not. If something IS in the cart the error popup is displayed on every page of the checkout process.

This popup is displayed before any of the page is displayed.

I'm hoping someone can point me in the right direction to fix this.

Thanks!

Here are the details:

URL submitted
https://<my domain>.com/abcdcart/ajax.php?act=ajaxPayment&method=setNoscriptCookie

Stack Trace
(anonymous) @ :1
send @ https://code.jquery.com/jquery-1.11.1.min.js:4
ajax @ https://code.jquery.com/jquery-1.11.1.min.js:4
(anonymous) @ https://<my domain>.com/abcdcart/index.php?main_page=shopping_cart:64
Deferred @ https://code.jquery.com/jquery-1.11.1.min.js:2
zcJS.ajax @ https://<my domain>.com/abcdcart/index.php?main_page=shopping_cart:37
(anonymous) @ https://<my domain>.com/abcdcart/index.php?main_page=shopping_cart:146

19 Jul 2022, 10:31 AM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,140
Plugin Contributions:
56

Re: AJAX error when every page is displayed

AustinJim:

Hi,
I'm running a recent download of v1.57c. I have configured some but not all settings I will need.

When I click on the cart icon I get a popup dialog with a 400 error whether anything is in the cart or not. If something IS in the cart the error popup is displayed on every page of the checkout process.

This popup is displayed before any of the page is displayed.

I'm hoping someone can point me in the right direction to fix this.

Thanks!

Here are the details:

URL submitted
https://<my domain>.com/abcdcart/ajax.php?act=ajaxPayment&method=setNoscriptCookie

Stack Trace
(anonymous) @ :1
send @ https://code.jquery.com/jquery-1.11.1.min.js:4
ajax @ https://code.jquery.com/jquery-1.11.1.min.js:4
(anonymous) @ https://<my domain>.com/abcdcart/index.php?main_page=shopping_cart:64
Deferred @ https://code.jquery.com/jquery-1.11.1.min.js:2
zcJS.ajax @ https://<my domain>.com/abcdcart/index.php?main_page=shopping_cart:37
(anonymous) @ https://<my domain>.com/abcdcart/index.php?main_page=shopping_cart:146
I'm not sure where you got that download, but if you downloaded, extracted the zip-file and installed Zen Cart, the default responsive_classic template makes use of jQuery 3.5.1 (1.11.1 is woefully old and buggy). There's also no mention use of the ajaxPayment module until a customer arrives at the checkout_payment page, nor is there any mention of a setNoScriptCookie method within that file (as delivered).

What template is in use and what other plugins have been installed?

I'll note also that the currently released version of Zen Cart is 1.5.7d, which has some fairly important corrections.