• Howdy,

    We just recently migrated our site to Lightsail, since then we have noticed that when adding products to the cart (we have a pop out using Caddy Cart that shows a glimpse of your cart and what was added) that logged in users get the pop out stating that the cart is empty, but when browsing to another page it updates. Non logged in users seem to be able to add to cart and the pop out shows correctly.

    I have been on this for 14 hours straight, in devtools, examining the network tab I can see that the wc-ajax=cc_add_to_cart is fired but the “response” is {“success”:false,”data”:”Invalid nonce”}.

    Inspecting the payload all the product info is there.

    When browsing to another page wc-ajax=get_cart_fragments is called and then the pop out menu when clicked shows what you had added.

    I have tried using documentation of all sorts, AI assistance and Googling, but just can’t seem to figure out the issue.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello sarephza,

    Thank you for contacting WooCommerce support.

    I understand that after migrating to Lightsail, logged-in users see an empty cart in the pop-out until they browse to another page, while non-logged-in users see it correctly.

    This behaviour sounds like a caching issue. If you still have access to the old server, sharing both the old and new site’s System Status Reports would help compare the setups. You can paste them into https://pastebin.com and share the link here to help diagnose the issue.

    Lastly, I suggest contacting Caddy Cart support to check if this is a known problem for them.

    Looking forward to your response. ??

    Thread Starter sarephza

    (@sarephza)

    Thanks for the speedy response, we worked with a very un reliable dev on the migration as I am new to Lightsal. So unfortunatley I don’t think I will receive an old copy of the site, but the issue began as we migrated.

    So I am leaning towards either Bitnami permissions or something up with the way Woo handles the nonce requests as I can see how Caddy handles it and replaces Woo’s add_to_cart with their cc_add_to_cart.

    I have downloaded a copy of the site and will spin up a localhost to see if the issue is still present there.

    I have also logged a case with Caddy to see from their side but no response as yet.

    Would it be ok for me to share the status report from a Google shared folder?

    Kind regards, Greg

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello sarephza,

    Thank you for your reply.

    That is a good idea, please go ahead and set up your old site on a localhost and check if the issue also appears there. This will clarify whether the issue is related to the server or not.

    Also, let me know once you hear back from Caddy support.
    Their insights can help diagnose the issue.

    You can share system status report in any way as long as it is publicly accessible. ??

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.