dvir Posted December 11, 2014 Share Posted December 11, 2014 hi to all , i would be happy if i get some help : this is my website : www.allsoft.co.il after making an order and paying with "pay by phone" option. i get a blank page the log writes: [11-Dec-2014 16:35:07 Israel] PHP Fatal error: Uncaught exception 'PrestaShopException' with message 'Can't load Order status' in /home/adobesa1/public_html/classes/log/PaymentModule.php:174 Stack trace: #0 /home/adobesa1/public_html/modules/paybyphone/validation.php(17): PaymentModuleCore->validateOrder(181, '1', 519.26, 'Pay By Phone', NULL, Array, 2, false, '47b93fbf9ddf6e1...') #1 {main} thrown in /home/adobesa1/public_html/classes/log/PaymentModule.php on line 174 what is the problem ? Link to comment Share on other sites More sharing options...
vekia Posted December 11, 2014 Share Posted December 11, 2014 order status associated with payment module doesnt exist perhaps you removed it from orders > statuses section ? Link to comment Share on other sites More sharing options...
dvir Posted December 11, 2014 Author Share Posted December 11, 2014 yes, i did some changes.. can i change the order status in this module ? Link to comment Share on other sites More sharing options...
vekia Posted January 10, 2015 Share Posted January 10, 2015 yes you can in this case you will have to open module controller and change id of the order status that is used by this module. id of status that you will use must exists in orders > statuses section in your back office. Link to comment Share on other sites More sharing options...
n_s_simpson Posted January 26, 2015 Share Posted January 26, 2015 (edited) I think there is a fault within the statuses. I upgraded from 1.6.0.9 to 1.6.0.11 and then installed the Braintree module by Bellini. I went into the Statuses options to add "Pending Order Validation" as per Bellini's instructions, which became ID 14. I noticed there was ID 13 calling "Payment accepted". Since this was a duplication of ID 2 I deleted it. When testing Braintree as a customer I was getting either an "Invalid new order status" error or the page was blank. I asked Bellini to help and WOW I was really impressed with his level of aftersales! Anyway, turns out the 'fault' was due to me deleting ID 13 and caused all forms of payment to break when ordering items not in stock on my store. When upgrading PS I believe it created ID 13 but called it "Payment accepted" instead of "On backorder (not paid)", hence why I deleted it. Also PS shouldn't let you delete ID 13 but it does. I'd like to thank Bellini for fixing this for me Edited January 26, 2015 by n_s_simpson (see edit history) 1 Link to comment Share on other sites More sharing options...
n_s_simpson Posted January 26, 2015 Share Posted January 26, 2015 Hi So just to make sure I wasn't imaging things I went to an old backup and tried upgrading again from 1.6.0.9 to 1.6.0.11. I took a screenshot of the statuses before and after the upgrade (see attached). My mistake, the new status it adds is "On backorder", which is ID 13. Since ID 9 has the same status I deleted ID 13 thinking it's an unnecessary duplicate. In the Prestashop Demo ID 13 is called "On backorder (not paid)". Hopefully that clarifies things somewhat. Cheers Nick Link to comment Share on other sites More sharing options...
n_s_simpson Posted January 28, 2015 Share Posted January 28, 2015 (edited) I've logged this issue here: http://forge.prestashop.com/browse/PSCSX-4504 Edited January 28, 2015 by n_s_simpson (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts