Post by da.gallery.au » Fri Apr 19, 2019 2:44 am

Fatal error: Uncaught Exception: Error: Duplicate entry '0' for key 'PRIMARY'<br />Error No: 1062<br />INSERT INTO `oc_product_advertise_google` (`product_id`, `store_id`, `google_product_category`) SELECT p.product_id, p2s.store_id, (SELECT c2gpc.google_product_category FROM `oc_product_to_category` p2c LEFT JOIN `oc_category_path` cp ON (p2c.category_id = cp.category_id) LEFT JOIN `oc_category_to_google_product_category` c2gpc ON (c2gpc.category_id = cp.path_id AND c2gpc.store_id = 0) WHERE p2c.product_id = p.product_id AND c2gpc.google_product_category IS NOT NULL ORDER BY cp.level DESC LIMIT 0,1) as `google_product_category` FROM `oc_product` p LEFT JOIN `oc_product_to_store` p2s ON (p2s.product_id = p.product_id AND p2s.store_id = 0) LEFT JOIN `oc_product_advertise_google` pag ON (pag.product_id = p.product_id AND pag.store_id=p2s.store_id) WHERE pag.product_id IS NULL AND p2s.store_id IS NOT NULL AND p.product_id IN (166) in /home3/dagallery/da-gallery-au.com/system/library/db/mysqli.php:40 Stack trace: #0 /home3/da in /home3/dagallery/da-gallery-au.com/system/library/db/mysqli.php on line 40


I am thinking if i go to phpmyadmin and turn on the auto increment in the oc_category_to_google_product_category but am trully not sure ?

Newbie

Posts

Joined
Mon Mar 11, 2019 7:17 am

Post by OSWorX » Fri Apr 19, 2019 4:00 am

da.gallery.au wrote:
Fri Apr 19, 2019 2:44 am
I am thinking if i go to phpmyadmin and turn on the auto increment in the oc_category_to_google_product_category ..
Correct.

See also: https://github.com/opencart/opencart/issues/7322
https://github.com/opencart/opencart/is ... -458217940
and more there ..

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria
Who is online

Users browsing this forum: Baidu [Spider] and 36 guests