I have added three new fields called products_vendor_upc, products_final_sale, products_ship_info to table zen_products. All data is usually uploaded to the site via EP4, and everything works fine. I just realized when I add products manually to the cart, I get the "WARNING: An Error occurred, please refresh the page and try again." error.
I repeated this 4 times and error log produces the following errors (error: 1062 : Duplicate entry) and zen_products table dispalys the correpconding data.
When product was first added
table zen_products[14-Apr-2014 17:53:53 America/Denver] PHP Fatal error: 1062 : Duplicate entry '5332' for key 'PRIMARY' :: insert into zen_products (products_vendor_upc, products_final_sale, products_ship_info, products_id) values ('', '', '', '5332') in /public_html/includes/classes/db/mysql/query_factory.php on line 120
5332 1 10 STER_01 NULL NULL NULL 100.0000 0.0000 0.0000 0 2014-04-14 16:53:53 NULL NULL 0 0 0 33 0 1 1 0 0 0 1 0 1 0 0 0 0 100.0000 61 1 0 0 0 0 0 NULL
Second time
table zen_products[14-Apr-2014 17:55:54 America/Denver] PHP Fatal error: 1062uplicate entry '5333' for key 'PRIMARY' :: insert into zen_products (products_vendor_upc, products_final_sale, products_ship_info, products_id) values ('12345', 'Final Sale', '<p>Ship UPS Ground</p>', '5333') in /public_html/includes/classes/db/mysql/query_factory.php on line 120
5333 1 10 STER_02 NULL NULL NULL 100.0000 0.0000 0.0000 0 2014-04-14 16:55:54 NULL NULL 0 0 0 33 0 1 1 0 0 0 1 0 1 0 0 0 0 100.0000 61 1 0 0 0 0 0 NULL
3rd time
table zen_products[14-Apr-2014 18:00:21 America/Denver] PHP Fatal error: 1062 : Duplicate entry '5334' for key 'PRIMARY' :: insert into zen_products (products_vendor_upc, products_final_sale, products_ship_info, products_id) values ('12345', 'Final Sale', '<p>Ship UPS Ground</p>', '5334') in /public_html/includes/classes/db/mysql/query_factory.php on line 120
5334 1 10 STER_03 12345 Final Sale <p>Ship by USPS</p> 100.0000 0.0000 0.0000 0 2014-04-14 17:00:21 2014-04-14 18:29:05 NULL 0 0 0 33 0 1 1 0 0 0 1 0 1 0 0 0 0 100.0000 61 1 0 0 0 0 0 NULL
Fourth time
table zen_products[14-Apr-2014 19:25:09 America/Denver] PHP Fatal error: 1062 : Duplicate entry '5335' for key 'PRIMARY' :: insert into zen_products (products_vendor_upc, products_final_sale, products_ship_info, products_id) values ('12345', 'Sale is final', '<p>Ships FEDEX</p>', '5335') in /public_html/includes/classes/db/mysql/query_factory.php on line 120
5335 1 10 STER_04 NULL NULL NULL 100.0000 0.0000 0.0000 0 2014-04-14 18:25 NULL NULL 0 0 0 33 0 1 1 0 0 0 1 0 1 0 0 0 0 100.0000 61 1 0 0 0 0 0 NULL
Going back to the admin and checking for ie: products_id 5332, all information is there, and when I update anything; no more errors gets generated and everything is fine. It's only when a new product is added, the error gets generated.
Any ideas?


uplicate entry '5333' for key 'PRIMARY' :: insert into zen_products (products_vendor_upc, products_final_sale, products_ship_info, products_id) values ('12345', 'Final Sale', '<p>Ship UPS Ground</p>', '5333') in /public_html/includes/classes/db/mysql/query_factory.php on line 120
Reply With Quote

