Woocommerce 6.5.1. checkout: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

After updating woocommerce to latest version 6.5.1. i'm unable to order products because of:

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

casued by checkout.min.js screenshots here:

https://i.stack.imgur.com/JAf4D.png

https://i.stack.imgur.com/11Vvg.png

I tried to deactivate all plugins and after deactivating one of them i managed to finish order but orded did not containt ordered product. I just got customer info without product info.

Debug.log wasn't helpfull because it showed me only the warning about that one plugin. Also, WooCommerce Status seems fine.

I'm trying to fix this without any succes for 10 hours now and I could really use some fresh ideas, so please help.

Thanks in advance.

Topic woocommerce-offtopic Wordpress

Category Web


In case someone have the same issue:

Problem was in mySQL database, with primary keys.

After importing database from backup everything works fine.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.