Jump to content
thirty bees forum
  • 0

Impossible to add items to the cart


movieseals

Question

Hello again!

 

For the past three weeks, customers are unable to add anything to the cart.  I tried disabling all overrrides and non-TB modules to see where the issue lies but the best I get in Debugmode is this:

Impossible to add the product to the cart.<br/>textStatus: 'parsererror'<br/>errorThrown: 'SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data'<br/>responseText:<br/>

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Thank you for your answer.  I did some tests, mostly related to modules, but I tried them on a demo site.  Once I was sure they worked, I installed them on the live site.

I did not touch the JSON files to my knowledge.  Where would I find those?

Link to comment
Share on other sites

  • 0

Your server respond with 301 REDIRECT for 'add to cart' POST request 🤦‍♂️

image.png.14dcf72af2f9beb68e0ab3ecf7eec34b.png

and ask your browser to fetch page to https://<domain>/en/?rand=<rand>

Browser do exactly that, and perform GET request for that page

image.png.83318ff6363602c8bb3c60c0d503faff.png

Now, this is GET request without original POST parameters, so nothing is added to the cart.

Link to comment
Share on other sites

  • 0
On 3/17/2023 at 3:53 AM, datakick said:

Your server respond with 301 REDIRECT for 'add to cart' POST request 🤦‍♂️

image.png.14dcf72af2f9beb68e0ab3ecf7eec34b.png

and ask your browser to fetch page to https://<domain>/en/?rand=<rand>

Browser do exactly that, and perform GET request for that page

image.png.83318ff6363602c8bb3c60c0d503faff.png

Now, this is GET request without original POST parameters, so nothing is added to the cart.

OK.  So how do I fix that?  What might be causing it?

Link to comment
Share on other sites

  • 0
On 3/25/2023 at 7:58 PM, movieseals said:

OK.  So how do I fix that?  What might be causing it?

You have to investigate. We don't know what your server stack looks like. It could be misconfiguration of any component, really - cloudflare, nginx, proxy server, cache server, apache, php-fpm, or even application issue (some thirty bees module). I don't think this is core issue, as nobody else is affected.

Link to comment
Share on other sites

  • 0
On 3/26/2023 at 11:40 PM, movieseals said:

You probably caught it while it was renewing.  Just checked and everything is fine: https://www.whynopadlock.com/results/b6467bb6-d31e-4837-9104-5dc0cc4ca4b6

The padl
ock is working even when there was cart issues.

Your SSL problems are still there. https://librairiezbookstore.com works but https://www.librairiezbookstore.com gives an error.

Also when I am on the checkout page (https://librairiezbookstore.com/en/quick-order) and I open the browser console I see several errors.

 

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...