-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.23
-- PHP version -- : 7.4.13
-- Browser(s) name and version -- : Firefox 83.0
-- Error-message(debug-mod must be tuned on) -- : cart_id was not returned in addToCart AJAX call hikashop.js:1134:13
null hikashop.js:1135:13
I am now receiving this error on one of my sites when trying to place items in the shopping cart:
cart_id was not returned in addToCart AJAX call hikashop.js:1134:13
null hikashop.js:1135:13
The error message is shown in the Console tab of the Web Developer tools in Firefox and Google Chrome browsers.
My problem is similar to:
Ajax error when I add a prouct with options in the cart
and
Erreur Javascript panier
I can't determine from those two threads how to solve my problem. I have a two test sites that both work as expected and do not exhibit the error. One is on a LAMP installation on my own desktop computer. The other is on the
fptest subdomain on my client's hosting account. Only the public site has the error.
I have compared the configuration among the sites but can't see the reason for the error. I have reinstalled the HikaShop software but the error persists.
The site was working before as expected. The last successful order was entered three days ago. At about that time I upgraded the PHP version of both the public and the
fptest site. They are both at version 7.4.13.
What shall I do to diagnose this error?
By the way, I'm also seeing the following warnings on the problem site in my Firefox browser:
Some cookies are misusing the recommended “SameSite“ attribute 2
Cookie “hikashop_cart_id” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite order
Cookie “hikashop_cart_session_id” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite order
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. order