Jarkko Muhonen Posted March 25, 2021 Share Posted March 25, 2021 I updated PrestaShop from 1.6.20 to 1.7.7.2. After Migration everything else works fine but I can't open orders because of error in the subject (more specific error in attachment). Can somebody help me? I have tried to find answer but couldn't find the reason. Link to comment Share on other sites More sharing options...
Jarkko Muhonen Posted March 25, 2021 Author Share Posted March 25, 2021 I found the reason. id_currency was 0 in every order. I updated it and it works now. 2 Link to comment Share on other sites More sharing options...
corrigerunbug Posted July 2, 2021 Share Posted July 2, 2021 Yes, i was having exaclty same issue due migration using Migration Pro and it was solved by changing id_currency from 0 to right ID of currency. 1 Link to comment Share on other sites More sharing options...
Ali Samie Posted January 16, 2022 Share Posted January 16, 2022 (edited) I love you man. you helped me and my friend a lot. i hope to see you in heaven. Edited July 22, 2022 by stifler97 (see edit history) Link to comment Share on other sites More sharing options...
corrigerunbug Posted January 16, 2022 Share Posted January 16, 2022 Great Link to comment Share on other sites More sharing options...
PPSA Posted July 4, 2022 Share Posted July 4, 2022 Yeah this was the same issue I had with the Migration Pro Module for past orders which seemed to not align with payment id's The tables that need fixing is ps_orders and ps_order_payment under the id_currency column/field 1 Link to comment Share on other sites More sharing options...
hokat Posted July 22, 2022 Share Posted July 22, 2022 Same problem here on PS 1.7.7.3 with the Classic theme. I have found past orders in ps_orders and ps_order_payment with id_currency = 0. I updated id_currency to the single currency existting in the shop: id = 1. Not solved. In backoffice the orders listing, for those orders only, returns http500. I have 988 orders and only 31 (the very first orders from 2016 - 2018 period) of them had id_currency = 0. In the backoffice listing of orders, with a setting of showing 20 orders on page, every page loads but the last one and the one before. Link to comment Share on other sites More sharing options...
ecentury Posted August 13, 2022 Share Posted August 13, 2022 Thank you for posting solution. Worked for me. Strange that this error only showed a year afer migration, but seems good now. Link to comment Share on other sites More sharing options...
Nicolas Unic-3D Posted September 19, 2022 Share Posted September 19, 2022 Hello guys. Could you help me? Im having exactly the same issue. The ID is "2" here. Should I dare to open a PHP file to insert data somewhere? Thanks for your help. I'm stuck. Link to comment Share on other sites More sharing options...
PPSA Posted September 20, 2022 Share Posted September 20, 2022 Have you checked what data is in the Database in tables ps_orders and ps_order_payment under the id_currency column/field Link to comment Share on other sites More sharing options...
Nicolas Unic-3D Posted September 20, 2022 Share Posted September 20, 2022 Hi PPSA, Thanks for your reply. Only number 2. So I don't understand what's happening. Any other idea? The problem happened when I was updating the status of my orders. I modified quite a lot in a short period of time. And suddenly impossible to access my list of orders. Weird. Link to comment Share on other sites More sharing options...
PPSA Posted September 20, 2022 Share Posted September 20, 2022 So from what I have experienced, is that the entire orders list is queried even though it only displays 20,30,50,100 of your choosing. So you need to go back to the tables ps_orders and ps_order_payment and sort by the id_currency column/field to make sure there is no other values there besides the value "2" If there is just one pre-existing order with another value that does not tie up to the ps_currency table "2" then it will throw the error you are experiencing. Link to comment Share on other sites More sharing options...
Nicolas Unic-3D Posted September 20, 2022 Share Posted September 20, 2022 I was doing the modifications in the wrong database 🤪 I've done what you told me in the good one and everything works fine now. Yiiiiiiiihaaaaaaaaaaaaaaaaaa !!! Thanks a lot for your help man. You ROCK ! 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