kalu Posted December 9, 2021 Share Posted December 9, 2021 (edited) Hi I have a big problem, the clients cant buy in site and give error 500 Because the number of order is wrong, prestashop give a number of one order from 2012, I have cheked the counters on database and are ok. Can I delete all orders from database, ands carts? Can some one help? Edited December 13, 2021 by kalu (see edit history) Link to comment Share on other sites More sharing options...
lordignus Posted December 9, 2021 Share Posted December 9, 2021 Is there any information in your server logs to explain the 500 errors? Speaking from experience, deleting orders and carts from the DB is a very bad idea because there are many other DB tables linked to them. Link to comment Share on other sites More sharing options...
kalu Posted December 9, 2021 Author Share Posted December 9, 2021 23 minutes ago, lordignus said: Is there any information in your server logs to explain the 500 errors? Speaking from experience, deleting orders and carts from the DB is a very bad idea because there are many other DB tables linked to them. The log have lot's of this error only. Frontcontroller::init - Cart cannot be loaded or an order has already been placed using this cart Link to comment Share on other sites More sharing options...
lordignus Posted December 9, 2021 Share Posted December 9, 2021 You said you've checked the counters in the database, I'm assuming for ps_orders. Have you also checked the counter for ps_cart? Link to comment Share on other sites More sharing options...
kalu Posted December 9, 2021 Author Share Posted December 9, 2021 (edited) 39 minutes ago, lordignus said: You said you've checked the counters in the database, I'm assuming for ps_orders. Have you also checked the counter for ps_cart? Yes, I have checked, and the counters are correct, if you see in image, sometimes the order number is correct and costumers can buy, but sometimes the order number goes mad. Edited December 9, 2021 by kalu add pics (see edit history) Link to comment Share on other sites More sharing options...
kalu Posted December 13, 2021 Author Share Posted December 13, 2021 I have solved this problem. I have buyed a Module por delete carts and orders, after delete 1000 orders, the site begins to work normaly with correct sequence. Thank's for help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now