Jump to content

Outstanding Orders Error in back office


Recommended Posts

I checked and here what is missing. What does this mean? Is it affecting the outstanding orders tab?

 

Missing files (6)

  • modules/blockreinsurance/img/reinsurance-1-1.jpg
  • modules/blockreinsurance/img/reinsurance-2-1.jpg
  • modules/blockreinsurance/img/reinsurance-3-1.jpg
  • modules/blockreinsurance/img/reinsurance-4-1.jpg
  • modules/blockreinsurance/img/reinsurance-5-1.jpg
  • modules/blockstore/store.jpg

Link to comment
Share on other sites

I checked and here what is missing. What does this mean? Is it affecting the outstanding orders tab?

 

Missing files (6)

  • modules/blockreinsurance/img/reinsurance-1-1.jpg
  • modules/blockreinsurance/img/reinsurance-2-1.jpg
  • modules/blockreinsurance/img/reinsurance-3-1.jpg
  • modules/blockreinsurance/img/reinsurance-4-1.jpg
  • modules/blockreinsurance/img/reinsurance-5-1.jpg
  • modules/blockstore/store.jpg

 

So as we can see in this case: nope. everything is ok with files. Problem is somewhere else.... hmmmm....

Link to comment
Share on other sites

Does this help?

 

[PrestaShopException]

 

object Order can't be loaded

at line 147 in file controllers/admin/AdminOutstandingController.php

 

141. $order_invoice = new OrderInvoice($id_invoice);

142. if (!Validate::isLoadedObject($order_invoice))

143. throw new PrestaShopException('object OrderInvoice can\'t be loaded');

144. $order = new Order($order_invoice->id_order);

145. if (!Validate::isLoadedObject($order))

146. throw new PrestaShopException('object Order can\'t be loaded');

147. $customer = new Customer((int)$order->id_customer);

148. if (!Validate::isLoadedObject($order_invoice))

149. throw new PrestaShopException('object Customer can\'t be loaded');

150.

151. return '<b>'.$customer->getOutstanding().'</b>';

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

I have some problem

My version as 1.5.3.1

 

[PrestaShopException]

 

object Order can't be loaded

at line 146 in file controllers/admin/AdminOutstandingController.php

 

140. $order_invoice = new OrderInvoice($id_invoice);

141. if (!Validate::isLoadedObject($order_invoice))

142. throw new PrestaShopException('object OrderInvoice can\'t be loaded');

143. $order = new Order($order_invoice->id_order);

144. if (!Validate::isLoadedObject($order))

145. throw new PrestaShopException('object Order can\'t be loaded');

146. $customer = new Customer((int)$order->id_customer);

147. if (!Validate::isLoadedObject($order_invoice))

148. throw new PrestaShopException('object Customer can\'t be loaded');

149.

150. return '<b>'.$customer->getOutstanding().'</b>';

http://tienda.adatelis.com

Edited by Juanmax (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...
  • 1 year later...
  • 1 month later...
  • 6 months later...

As Juanmax says...

This error occours if you delete an order.. but NOT the invoice...

There are several free modules that deletes the orders from the list.. but the invoice still exists in the database. (ps_invoice)

And if the function in "Outstanding orders" can't find an order that macthes the invoice.. the the error occours,

 

So... don't delete orders.. or delete the invoice too.

Edited by R. Svinding (see edit history)
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...