wielkablaga Posted January 23, 2014 Share Posted January 23, 2014 After last upgrade of modules I've got an error, when trying to change status of order. [PrestaShopException]Property Order->payment is emptyat 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 265 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->getFields - [line 269 - classes/order/Order.php] - [0 Argument] OrderCore->getFields - [line 599 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->update - [line 266 - classes/order/OrderHistory.php] - [0 Argument] OrderHistoryCore->changeIdOrderState - [line 347 - controllers/admin/AdminOrdersController.php] - [3 Arguments] AdminOrdersControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 349 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 50 - 7hquafoyquozxch6/index.php] - [0 Argument] I use prestashop 1.5.4.0. How can I fix it? Link to comment Share on other sites More sharing options...
NemoPS Posted January 24, 2014 Share Posted January 24, 2014 Do you still have the modules that were used to pay the order? Link to comment Share on other sites More sharing options...
wielkablaga Posted January 24, 2014 Author Share Posted January 24, 2014 (edited) Do you still have the modules that were used to pay the order? Yes, but one of them was upgraded. Edited January 24, 2014 by wielkablaga (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted January 25, 2014 Share Posted January 25, 2014 DOes it happen with all orders? If not, can you check that order id in the database (ps_orders table) and see what it says under payment? If not, check anyway and see which orders have the payment column empty Link to comment Share on other sites More sharing options...
Skapamento Posted June 10, 2014 Share Posted June 10, 2014 Hello nemo1 I have the same problem with COD module here is my issue, please check and advice? http://www.prestashop.com/forums/topic/336626-cash-on-delivery-error-after-order-confirmation/?do=findComment&comment=1699937 Link to comment Share on other sites More sharing options...
Skapamento Posted June 10, 2014 Share Posted June 10, 2014 I've checked the ps_orders 1. all orders with that error have a null value in the fields ( gift_message, shipping_number ) 2. Delivery_number value = 0 3. valid value = 0 4. invoice number = 0 5. invoice_date = 0 any help here please? Link to comment Share on other sites More sharing options...
doekia Posted August 8, 2015 Share Posted August 8, 2015 Make a check of your order status ... what append is that 2 consecutive starus you are transforming your order in are try to setInvoice() since they thinkthey are the first one to emit the invoice. It is usually that you have tick the delivery flag on the status list screen on some status that does not have the "Consider the associated order as validated." is not ticked. As general rule, all awaiting payment statuses shoud be: Consider the associated order as validated.: false Delivery: false It is in some senses some sort of a bug, but I recommend to not tamper with thoses flags unless you really know what they are doing. Link to comment Share on other sites More sharing options...
Recommended Posts