• Resolved zanonnicola

    (@zanonnicola)


    I am using woocommerce on a custom theme. Everything is good in my site but when I click add to cart on any product I get this massage –

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '( id int(11) NOT NULL AUTO_INCREMENT, user_id int(11) NOT NULL, ' at line 1]
    CREATE TABLE IF NOT EXISTS ( id int(11) NOT NULL AUTO_INCREMENT, user_id int(11) NOT NULL, abandoned_cart_info text COLLATE utf8_unicode_ci NOT NULL, abandoned_cart_time int(11) NOT NULL, abandoned_cart_date datetime NOT NULL, cart_ignored enum('0','1') COLLATE utf8_unicode_ci NOT NULL, recovered_cart int(11) NOT NULL, post_id int(11) NOT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci

    I would be eternally grateful to anyone who will be able to help me!
    Thanks in advance

    https://www.ads-software.com/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Unfortunately, I probably can’t provide technical assistance. I can, however, suggest that you post a link to your site. This would allow people to at least look at the code for your Add to Cart buttons.

    Thread Starter zanonnicola

    (@zanonnicola)

    Hi there, thanks for your answer first of all.
    A guy discovered that if you have installed this plugin “Conversion Tracker Plugin” it will throw that error.

    Disabling the plugin everything works fine.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Database error when you click on "add to cart"’ is closed to new replies.