nzrobert Posted April 12, 2011 Share Posted April 12, 2011 Hi there,I have a blank screen with “invalid new order state”. I have droped all the order_state and order_state_lang and re-created them, i have also reinstalled the paypal module. I am still getting the error.I am using version 1.2.5.0 and i have read almost all forums regarding this error in Presta shop.The website is live and i really need this working, please help me with suggestions if you can. Link to comment Share on other sites More sharing options...
nzrobert Posted April 12, 2011 Author Share Posted April 12, 2011 bump, please help.. this is pretty urgent. Link to comment Share on other sites More sharing options...
shokinro Posted April 12, 2011 Share Posted April 12, 2011 I have droped all the order_state and order_state_lang and re-created them, i have also reinstalled the paypal module. I just guess, maybe the order status ID is changed and they does not match the original one.You must make sure all id of order state is correct as original installed.Just a thought. maybe you can install a new copy of 1.2.5 with new database at other folder and then copy exactly the data for order status related tables from this database. Link to comment Share on other sites More sharing options...
nzrobert Posted April 12, 2011 Author Share Posted April 12, 2011 Hi there,Yes all the statuses have been re copied from the origional install.sql file.Can you think of anything else that would be causing this?CheersRobert Link to comment Share on other sites More sharing options...
shokinro Posted April 12, 2011 Share Posted April 12, 2011 maybe the only way is to debug source code by finding out what is the new order state. and how this new order state comes from. Did this happened some day suddently or because of some changes you made? Link to comment Share on other sites More sharing options...
nzrobert Posted April 12, 2011 Author Share Posted April 12, 2011 Possibly after using the the delete all orders plugin, but im not sure. Where would i look to find out where the paypal module declares the order state?Thanks for your help! Link to comment Share on other sites More sharing options...
shokinro Posted April 12, 2011 Share Posted April 12, 2011 it seems that you are using Paypal API version, not standard version.I checked the related files, related code is as followingFile: \modules\paypalapi\ipn.php( line 54) $history->changeIdOrderState(intval($id_order_state), intval($order->id)); File: \classes\OrderHistory.php(line 77): if (!Validate::isLoadedObject($newOS) OR !Validate::isLoadedObject($order)) die(Tools::displayError('Invalid new order state')); Hope this helps Link to comment Share on other sites More sharing options...
nzrobert Posted April 13, 2011 Author Share Posted April 13, 2011 Hi Mate,Thanks heaps for your response. I am definitely using the standard version of the PayPal so not sure this information is relevant in that case?Let me know if you think otherwise,Thanks! Link to comment Share on other sites More sharing options...
nzrobert Posted April 13, 2011 Author Share Posted April 13, 2011 Hi There,Thanks so much for your help mate.I fixed the issue, i added a status, which should have been installed when i installed the paypal module, but for some reason it didn't.I added a status of "Awaiting Paypal Payment" with a template of 'preparation' which now seems to fix the issue.Thanks for all your support. Link to comment Share on other sites More sharing options...
shokinro Posted April 13, 2011 Share Posted April 13, 2011 that was my suspect of cause at the beginning.I am glad you have fixed the problem. Link to comment Share on other sites More sharing options...
diocio Posted November 24, 2011 Share Posted November 24, 2011 thank you guys this information help me to solve my problem Link to comment Share on other sites More sharing options...
benignus Posted September 29, 2014 Share Posted September 29, 2014 I have same problem... i will tray with 1.4.9 file.. 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