Fatal error: ‘Error: Duplicate entry ’0′ for key ‘PRIMARY’

ThemeBurn SupportForumsOpenCart ThemesBurnEngineFatal error: ‘Error: Duplicate entry ’0′ for key ‘PRIMARY’

This topic has been marked as not resolved.

When ever I click save when adding a new product i get this; and by the way there is no duplicates, its a new item

 

Fatal error: ‘Error: Duplicate entry ’0′ for key ‘PRIMARY’
Error No: 1062
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 (59)

in /home/rv2k3xrnrfy2/public_html/Blendedmamas/system/library/db/mysqli.php:40
Stack trace:
#0 system/storaget0vmxplfdblp/modification/system/library/db.php(59): DB\MySQLi->query(‘INSERT INTO `oc…’)
#1 admin/model/extension/advertise/google.php(279): DB->query(‘INSERT INTO `oc…’)
#2 system/storaget0vmxplfdblp/modification/system/engine/loader.php(273): ModelExtensionAdvertiseGoogle->insertNewProducts(Array, ’0′)
#3 system/engine/proxy.php(47): Loader->{closure}(Array, Array)
#4 admin/controller/extension/advertise/google.php(1663): Proxy->__call(‘insertNewProduc…’, Array)
#5 system/storaget0vmxplfdblp/modification/system/engine/action.php(79): ControllerExtensionAdvertiseGoogle->addProduct(‘catalog/product…’, Array, 59)
#6 system/storaget0vmxplfdblp/modification/system/engine/event.php(66): Action->execute(Object(Registry), Array)
#7 system/storaget0vmxplfdblp/modification/system/engine/loader.php(280): Event->trigger(‘model/catalog/p…’, Array)
#8 system/engine/proxy.php(47): Loader->{closure}(Array, Array)
#9 system/storaget0vmxplfdblp/modification/admin/controller/catalog/product.php(23): Proxy->__call(‘addProduct’, Array)
#10 system/storaget0vmxplfdblp/modification/system/engine/action.php(79): ControllerCatalogProduct->add()
#11 admin/controller/startup/router.php(26): Action->execute(Object(Registry), Array)
#12 system/storaget0vmxplfdblp/modification/system/engine/action.php(79): ControllerStartupRouter->index()
#13 system/storaget0vmxplfdblp/modification/system/engine/router.php(71): Action->execute(Object(Registry))
#14 system/storaget0vmxplfdblp/modification/system/engine/router.php(60): Router->execute(Object(Action))
#15 system/framework.php(165): Router->dispatch(Object(Action), Object(Action))
#16 system/startup.php(104): require_once(‘/home/rv2k3xrnr…’)
#17 admin/index.php(19): start(‘admin’)
#18 {main}

May 29, 2019 at 10:39 pm #67826
Viewing 1 post
  • You must be logged in to reply to this topic.