Jump to content

Add to Cart - Your Cart is empty


Danny

Recommended Posts

Hi All, i have encountered a problem with the cart: i add the product in the cart, the cart open and says "Your cart is Empty", i can open the cart on the side and it still says "Empty" till i hit F5 or manually refresh the page, then the cart shows the item i added. So the cart work but it don't show until i refresh the page.

Prestashop 1.7.6.7

Cart Module 2.0.4

Theme Modez

What i tried:

- different Browsers

- different phones, computer

- cache clean

i am able to replicate the error every time.

Any suggestion on how to debug this error?

 

 

Link to comment
Share on other sites

I did few test and i think it have something to do with ajax/java

Using firefox with the console i receive this message when adding to cart

XHRPOST https://www.*******.it/it/module/ps_shoppingcart/ajax
[HTTP/2 500 Internal Server Error 401ms]

    
POST
    https://www.*******.it/it/module/ps_shoppingcart/ajax
Stato
500
Internal Server Error
VersioneHTTP/2
Trasferito1,39 kB (dim. 0 B)
Referrer Policystrict-origin-when-cross-origin

        
    content-length
        0
    content-type
        text/html; charset=utf-8
    date
        Mon, 04 Oct 2021 07:55:31 GMT
    server
        Apache
    X-Firefox-Spdy
        h2
        
    Accept
        */*
    Accept-Encoding
        gzip, deflate, br
    Accept-Language
        it-IT,it;q=0.8,en-US;q=0.5,en;q=0.3
    Connection
        keep-alive
    Content-Length
        59
    Content-Type
        application/x-www-form-urlencoded; charset=UTF-8
    Cookie
        PHPSESSID=648f5b11290e3f70d61a2cfbab126afb; PrestaShop-36c964a7fac68732a857b568610df961=def50200eb01365f2a3c393ce12bea441277b99e95496facbec60af379e949906ee3ba9689235b03f0cbe43df30e70a1e762d718d3df5a2519c424550a0a3c19bcc13f56fc4253b694fe91f31716db66cd1a935997145a1bf5a7064389c299fb3d13dce59ccf4c66389e280bcb0e7305b0537d9ccf26806feb4f5c23f4be45c29b688e16ce74fad2f007ecd598c23e658f4f64aa5359d5078225e6149c84db2e473573181d23c7d3b5684d6b53b90a50e12f16fe2664c0bc65e979b3d9a46bd8f29b1c49c524b00687cc918f63920bef3056f3fbd6; cp-popup-last-displayed=1633334048; cp-popup-8=1633334048
    DNT
        1
    Host
        www.********.it
    Origin
        https://www.*********.it
    Referer
        https://www.*******.it/it/*****/*************-white.html
    Sec-Fetch-Dest
        empty
    Sec-Fetch-Mode
        cors
    Sec-Fetch-Site
        same-origin
    Sec-GPC
        1
    TE
        trailers
    User-Agent
        Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0
    X-Requested-With
        XMLHttpRequest

Link to comment
Share on other sites

[03-Oct-2021 01:46:20 UTC] PHP Warning:  Declaration of Ps_ShoppingcartOverride::renderModal(Cart $cart, $id_product, $id_product_attribute) should be compatible with Ps_Shoppingcart::renderModal(Cart $cart, $id_product, $id_product_attribute, $id_customization) in /***/****/public_html/override/modules/ps_shoppingcart/ps_shoppingcart.php on line 0

This is the Log on the webserver

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...