Closed (fixed)
Project:
Ubercart
Version:
6.x-2.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2011 at 08:00 UTC
Updated:
21 Nov 2011 at 14:24 UTC
Hi all,
On the stock page for all of my products whenever I click save I get a duplicate entry error. I was not getting this before upgrading to the latest Ubercart. Any help would be much appreciated.
Here is the error again:
user warning: Duplicate entry 'ROB001' for key 1 query: INSERT INTO uc_product_stock (sku, nid, active, stock, threshold) VALUES ('ROB001', 136, 0, 0, 0) in /usr/www/users/eclosguaxd/sites/all/modules/ubercart/uc_stock/uc_stock.admin.inc on line 253.
user warning: Duplicate entry 'ROB001_01' for key 1 query: INSERT INTO uc_product_stock (sku, nid, active, stock, threshold) VALUES ('ROB001_01', 136, 1, 1, 0) in /usr/www/users/eclosguaxd/sites/all/modules/ubercart/uc_stock/uc_stock.admin.inc on line 253.Thanks!!
| Comment | File | Size | Author |
|---|---|---|---|
| stock_issue.PNG | 35.47 KB | ratinakage |
Comments
Comment #1
Aleksey Zubko commentedsame issue
Comment #2
longwaveThe error is only cosmetic; the stock levels are still being saved and updated correctly.
Fix committed: http://drupalcode.org/project/ubercart.git/commitdiff/51bd11b
(based on #805858-3: Affected rows inconsistent across database engines)
Comment #3
Aleksey Zubko commentedthanks, longwave
Comment #4
ratinakage commentedThanks longwave!!
Problem resolved...
Comment #6
ratinakage commentedHi,
Was this fix committed?
I am still seeing it in Ubercart 2.7.
Comment #7
longwaveThis was committed after 2.7 was released, it will be in 2.8.
Comment #8
ratinakage commentedAh - my bad...
Thanks!
Comment #8.0
ratinakage commentedfixed issue path