Jump to content

Property Order->payment is empty at line 837 in file classes/ObjectModel.php


Recommended Posts

After last upgrade of modules I've got an error, when trying to change status of order.

 

[PrestaShopException]

Property Order->payment 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;

I use prestashop 1.5.4.0. How can I fix it?

Link to comment
Share on other sites

  • 4 months later...

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

  • 1 year later...

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

×
×
  • Create New...