Order numbers duplicating, resetting, prefix duplicating
-
Hi,
We launched a new site on Woocart. Site ran well for a day, took around 30 orders then suddenly we started getting failing payments via paypal. We checked the logs and discovered it was due to duplicate order numbers. We checked the orders and ran a test order and we found that for some reason the order numbers were not advancing. So when you created an order the order number Sequential Order Number would create was the same as the last order. We tested with our credit card gateway and it did the same thing, started creating orders with the same number.
We rebooted the PHP/Nginx servers and the problem seemed to go away. 30 minutes later it started again.
While trying to debug the plugin and work with Woocart on the issue another issue presented itself. Our order number are formatted prefix=2, length=10, start number set e.g 20000032569. Suddenly the orders started showing up with duplicated prefixes. e.g 22221000032573 . Notice the prefix is appended 4 times instead of 1 and a number 1 has been added!
Also at one point the starting number seemed to reset to 1…we had it set to 32000ish as we had orders from an old system imported. This obviously caused more issues as 20000000001 already existed in the system.
What is strange is when i go into the setting tab everything looks correct. e.g right now the settings tab shows a Prefix of 2, length of 10 and start number as 32553. Preview shows 20000032554. yet the last order is 22221000032575. If i checkout the wt_last_order_number field in the options table it is 22221000032575.
So from all this we, and Woocart, felt it was some sort of cache which is screwing up the plugin. We thought maybe this plugin doesn’t work well with Redis. So we disabled Redis. This seemed to be a temp fix and for a few days it ran ok. But just now it has started happening again and Redis is disabled.
Any ideas?
- The topic ‘Order numbers duplicating, resetting, prefix duplicating’ is closed to new replies.