Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hi guys,

I just created my first Couch Cart website. problem I face now is this JS error when adding an item to the cart ( see code box )

the problem is it works 100% on my localhost, but as soon as I upload the live server, I get this JS error. please help me.

Code: Select all

jq191.js:5 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jq191.js:5
ajax @ jq191.js:5
domManip @ jq191.js:4
append @ jq191.js:4
(anonymous) @ jq191.js:4
access @ jq191.js:3
html @ jq191.js:4
(anonymous) @ cart-modal.js:55
c @ jq191.js:3
fireWith @ jq191.js:3
k @ jq191.js:5
r @ jq191.js:5

Hi Devan,

This JS error you mentioned, is it causing the cart not to work at all?
I ask this because, up till now, this used to simply be a deprecation notice in the console with no effect on the functioning.

Please let me know.
Hi KK,

thank you for your reply, the product still gets added to the cart, but the javascript does not update the cart box ( number of items & cart total ) that part just returns null ( empty ) and the cart-modal that pop's up when you add an item to the cart, still pops up but with no products/info listed ( and after a few seconds of showing the modal refreshes and loads the entire page into the modal.

the php side of things are working 100%, but the funny part is on my localhost, the javascript just works, as soon as I upload it, then I get this error. I tried different versions of JQuery too without success, same error. I tried JQ 1.8, 3 and back to my original version of 1.9.1.

see attached my cart box displayed on each page, on my localhost it updates perfectly when adding an item, on my live server, not the case, then the item QTY + cart TOTAL returns null ( empty )

Attachments

Devan, I'd like to see the problem first-hand.
Could you grant me Couch+FTP access to your site please?
Also please allow me this weekend to attend to this issue.

Thanks.
4 posts Page 1 of 1