hubhub Posted January 20, 2013 Share Posted January 20, 2013 Hello, Since I've upgraded my shop to 1.5.3.1, the order validation (last step) doesn't work whatever the payment method => blank page. When I activate the debugger, I've the following message : [PrestaShopException] Property OrderDetail->id_warehouse is empty at line 837 in file classes/ObjectModel.php 831. 832. $message = $this->validateField($field, $this->$field); 833. if ($message !== true) 834. { 835. if ($die) 836. throw new PrestaShopException($message); 837. return $error_return ? $message : false; 838. } 839. } 840. 841. return true; ObjectModelCore->validateFields - [line 264 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->getFields - [line 464 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->add - [line 426 - classes/ObjectModel.php] - [2 Arguments] ObjectModelCore->save - [line 579 - classes/order/OrderDetail.php] - [0 Argument] OrderDetailCore->create - [line 603 - classes/order/OrderDetail.php] - [7 Arguments] OrderDetailCore->createList - [line 283 - classes/PaymentModule.php] - [7 Arguments] PaymentModuleCore->validateOrder - [line 64 - modules/bankwire/controllers/front/validation.php] - [9 Arguments] BankwireValidationModuleFrontController->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 28 - index.php] - [0 Argument] This happens even with a new installation and with the default theme. Thank you for your help. Link to comment Share on other sites More sharing options...
shamun Posted January 30, 2013 Share Posted January 30, 2013 (edited) In /classes/orders/OrderDetail.php you need to change the following (line ~164): 'id_warehouse' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), to 'id_warehouse' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), Edited January 30, 2013 by shamun (see edit history) Link to comment Share on other sites More sharing options...
hubhub Posted January 30, 2013 Author Share Posted January 30, 2013 Hi, Thank you, it works. Link to comment Share on other sites More sharing options...
Caleydon Posted February 1, 2013 Share Posted February 1, 2013 Thanks for the fix. PrestaShop developers closed ticket about the bug without any result. Shame. http://forge.prestashop.com/browse/PSCFV-7415?focusedCommentId=68194 1 Link to comment Share on other sites More sharing options...
shamun Posted February 1, 2013 Share Posted February 1, 2013 I sent in a bug report after posting the fix. The report: http://forge.prestashop.com/browse/PSCFV-7580 The (official) bug fix: https://github.com/PrestaShop/PrestaShop/commit/95490676e42924d7d0739807d786b64fb0c999c6 Havent tested if it works or not. Link to comment Share on other sites More sharing options...
hubhub Posted February 1, 2013 Author Share Posted February 1, 2013 Hi, The problem happens when you have virtual products. In my shop I've only virtual products. is it your case ? Link to comment Share on other sites More sharing options...
shamun Posted February 1, 2013 Share Posted February 1, 2013 It should happen with any order. I recently added "physical" products and still caused problems. Link to comment Share on other sites More sharing options...
bibliopola Posted February 13, 2013 Share Posted February 13, 2013 I sent in a bug report after posting the fix. The report: http://forge.prestas...owse/PSCFV-7580 The (official) bug fix: https://github.com/P...786b64fb0c999c6 Havent tested if it works or not. It does not work for me, when I click on Order I get a screen which has new products on the left, and nothing in the centre or right... AB Link to comment Share on other sites More sharing options...
Luc1979 Posted March 10, 2015 Share Posted March 10, 2015 (edited) In /classes/orders/OrderDetail.php you need to change the following (line ~164): 'id_warehouse' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), to 'id_warehouse' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), Hello, I have the same problem, and the above fix does not work. What should I do? After I chose the payment (Cash on delivery or wire transfer), once I confirm the order, a blank screen appears. The error is: Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/splash31/public_html/themes/default-bootstrap/mails/ro/order_conf_product_list.txt" on line 2 "{$product[\'reference\']}" - Unexpected "\" <-- thrown in/home/splash31/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 2 Please help. Edited March 10, 2015 by luc1979 (see edit history) Link to comment Share on other sites More sharing options...
Luc1979 Posted March 10, 2015 Share Posted March 10, 2015 Hello, I have the same problem, and the above fix does not work. What should I do? After I chose the payment (Cash on delivery or wire transfer), once I confirm the order, a blank screen appears. The error is: Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/splash31/public_html/themes/default-bootstrap/mails/ro/order_conf_product_list.txt" on line 2 "{$product[\'reference\']}" - Unexpected "\" <-- thrown in/home/splash31/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 2 Please help. I solve it. It was a problem with the file order_conf_product_list.txt. Probably broked when I translated it. I replaced it with a new one from a fresh data base and works now. Link to comment Share on other sites More sharing options...
Luc1979 Posted March 12, 2015 Share Posted March 12, 2015 (edited) Edited March 19, 2015 by luc1979 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts