-
AuthorPosts
-
February 5, 2020 at 1:42 am #1181598
Hi,
I’ve had a number of customers complain that they are having errors trying to checkout. These errors are happening across all browsers:1) Some are seeing “SyntaxError:JSON.parse: unexpected character at line 1 column 1 of the JSON data” at the top of the page when hitting the checkout submit button – Once the error appears they are not able to proceed. They get stuck on the checkout page. When I was able to replicate this Json syntax error, the javascript console was showing another error that said “TypeError t.order_data is undefined”. It seems that the order data wasn’t getting set on the Cart page so when it got sent to checkout, there was nothing for the system to work with.
2) At other times, just after selecting a country in the drop down menu of the checkout page, the rest of the payment options (stripe and paypal) get greyed out and the user cannot continue the checkout process.
Troubleshooting I’ve done so far:
-
After copying the live site over to a staging environment…
- I disabled all plugins – that didn’t fix any errors
- I disabled the theme and switched to TwentyNineteen. The errors seemed to disappear after that so this appears to be a theme related issue.
- I’ve enabled logging of PayPal and Stripe payments, but since the user doesn’t actually get to submit the payment, the logs aren’t showing anything.
Important Note: For some reason, I was only able to replicate these checkout errors while logged in as a non admin user. However, the users that are experiencing these errors are not users of my site. They are attempting to make their first purchase so they do not havea a user account already.
I’ve left you credentials for the staging site in the private content. Please advise on the next steps for solving this issue and let me know if you can figure out why these errors are occurring.
Thanks,
CodyFebruary 6, 2020 at 7:33 pm #1182142Hey dancedojo,
Over the staging I see a different theme no Enfold.
Do u still need help?Best regards,
BasilisFebruary 6, 2020 at 7:56 pm #1182147Yes, I need help urgently! This error has been persisting for 2 weeks and people can’t pay on the site.
The parent theme is enfold, the child theme is called “dancedojo”.
I have confirmed that this is a theme issue. Please advise on next steps
February 10, 2020 at 8:22 pm #1183224Hi,
Are you using Subscriptions to your web site?
This is a known issue from WooCommerce Subscriptions.Best regards,
BasilisFebruary 28, 2020 at 3:13 am #1188699Hi,
I’ve solved the problem now. There was a redirect implemented in the functions.php file that was causing a conflict with checkout. Once I got rid of it, everything started working again.February 28, 2020 at 5:48 am #1188717Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Various Errors Occurring During WooCommerce Checkout’ is closed to new replies.