satyen Posted July 3, 2014 Share Posted July 3, 2014 Hi, My customer are facing one problem while placing order from front-end. I have enabled only 'Cash On Delivery' module. On last step when user clicks on "I confirm my order", it gives 500 Server error, but in actual order placed successfully. I tried to check and solve but with no help from any other post. Can any one please tell me what is the wrong. Also I want to assign default order status to "Preparation in progress", in previous version that was happening but after upgrading it is just assigning blank - to every new order. Is this causing problem on confirm page. Please provide details. Link to comment Share on other sites More sharing options...
El Patron Posted July 4, 2014 Share Posted July 4, 2014 when you get a 500 or blank page, you need to get the underlying (hidden) error open config/defines.inc.php set to true define('_PS_MODE_DEV_', false); note: set to false when done now recreate the error, and search on the error to find possible solution. Link to comment Share on other sites More sharing options...
RJ1 Posted July 4, 2014 Share Posted July 4, 2014 Hi, My customer are facing one problem while placing order from front-end. I have enabled only 'Cash On Delivery' module. On last step when user clicks on "I confirm my order", it gives 500 Server error, but in actual order placed successfully. I tried to check and solve but with no help from any other post. Can any one please tell me what is the wrong. Also I want to assign default order status to "Preparation in progress", in previous version that was happening but after upgrading it is just assigning blank - to every new order. Is this causing problem on confirm page. Please provide details. Satyen, I have enabled the COD module but I cannot reproduce your error. I am using a fresh install of 1.6.0.8 with default theme. Can you give more info on your setup - what PS version, upgrade or fresh install, default theme or not, etc.. regards. RJ Link to comment Share on other sites More sharing options...
satyen Posted July 4, 2014 Author Share Posted July 4, 2014 (edited) Satyen, I have enabled the COD module but I cannot reproduce your error. I am using a fresh install of 1.6.0.8 with default theme. Can you give more info on your setup - what PS version, upgrade or fresh install, default theme or not, etc.. regards. RJ Hi, Thanks for trying, I did upgrade from PS1.5 to PS1.6.0.6. Initially this module and all other things were working correct but after recent updates of few modules this problem came into notice. Right now I am using PS 1.6.0.6 with default theme. Regards. when you get a 500 or blank page, you need to get the underlying (hidden) error open config/defines.inc.php set to true define('_PS_MODE_DEV_', false); note: set to false when done now recreate the error, and search on the error to find possible solution. @El Patron I will try this and put more information here. Thanks. Edited July 4, 2014 by satyen (see edit history) 1 Link to comment Share on other sites More sharing options...
satyen Posted July 9, 2014 Author Share Posted July 9, 2014 when you get a 500 or blank page, you need to get the underlying (hidden) error open config/defines.inc.php set to true define('_PS_MODE_DEV_', false); note: set to false when done now recreate the error, and search on the error to find possible solution. Hi, Thanks this helped me to identify where error comes from, it was coming from one module named "Order reference change module". Thank you El Patron. Link to comment Share on other sites More sharing options...
bobletens Posted September 7, 2014 Share Posted September 7, 2014 I'm having the same problem, below you can find the error message. It was working perfect until it suddenly stopped. Can't load Order status at line 174 in file classes/PaymentModule.php 168. 169. $order_status = new OrderState((int)$id_order_state, (int)$this->context->language->id); 170. if (!Validate::isLoadedObject($order_status)) 171. { 172. PrestaShopLogger::addLog('PaymentModule::validateOrder - Order Status cannot be loaded', 3, null, 'Cart', (int)$id_cart, true); 173. throw new PrestaShopException('Can\'t load Order status'); 174. } 175. 176. if (!$this->active) 177. { 178. PrestaShopLogger::addLog('PaymentModule::validateOrder - Module is not active', 3, null, 'Cart', (int)$id_cart, true); PaymentModuleCore->validateOrder - [line 59 - modules/cashondelivery/controllers/front/validation.php] - [9 Arguments] CashondeliveryValidationModuleFrontController->postProcess - [line 171 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php] Link to comment Share on other sites More sharing options...
El Patron Posted September 7, 2014 Share Posted September 7, 2014 I'm having the same problem, below you can find the error message. It was working perfect until it suddenly stopped. Can't load Order status at line 174 in file classes/PaymentModule.php 168. 169. $order_status = new OrderState((int)$id_order_state, (int)$this->context->language->id); 170. if (!Validate::isLoadedObject($order_status)) 171. { 172. PrestaShopLogger::addLog('PaymentModule::validateOrder - Order Status cannot be loaded', 3, null, 'Cart', (int)$id_cart, true); 173. throw new PrestaShopException('Can\'t load Order status'); 174. } 175. 176. if (!$this->active) 177. { 178. PrestaShopLogger::addLog('PaymentModule::validateOrder - Module is not active', 3, null, 'Cart', (int)$id_cart, true); PaymentModuleCore->validateOrder - [line 59 - modules/cashondelivery/controllers/front/validation.php] - [9 Arguments] CashondeliveryValidationModuleFrontController->postProcess - [line 171 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php] maybe missing bo-->orders-->statues, please check to clean shop http://screencast.com/t/fOCFhmtEi7 Link to comment Share on other sites More sharing options...
bobletens Posted September 7, 2014 Share Posted September 7, 2014 I did a cleanup off these ... apparently to much removed ... which one should I add? Link to comment Share on other sites More sharing options...
El Patron Posted September 7, 2014 Share Posted September 7, 2014 I did a cleanup off these ... apparently to much removed ... which one should I add? I am not sure that adding them will help as this has changed somewhat since I did any payment type modules. If you have access to phpmyadmin, and can create a native (vanialla) install of your ps version, then you can export from good db the ps_order_state and ps_order_state_langs files, then remove those tables from your production shop (rename them for back up) and then import good table. Link to comment Share on other sites More sharing options...
bobletens Posted September 7, 2014 Share Posted September 7, 2014 (edited) Thanks for this feedback, I'll give it a try and let you know Jihaa!!!! - it works again thanks a lot El Patron Edited September 7, 2014 by bobletens (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted September 7, 2014 Share Posted September 7, 2014 Thanks for this feedback, I'll give it a try and let you know Jihaa!!!! - it works again thanks a lot El Patron con mucho gusto (with much pleasure). closing topic, if you can not find answer to your question in post please open new topic. Link to comment Share on other sites More sharing options...
Recommended Posts