Jump to content

Bug BO - Client - Encours autorisés


Recommended Posts

Quand je clic sur "encours autorisés" dans l'onglet "client" du back office, cela me donne : 

 

[PrestaShopException]

object Order can't be loaded
at line 139 in file controllers/admin/AdminOutstandingController.php

133.         $order_invoice = new OrderInvoice($id_invoice);
134.         if (!Validate::isLoadedObject($order_invoice))
135.             throw new PrestaShopException('object OrderInvoice can\'t be loaded');
136.         $order = new Order($order_invoice->id_order);
137.         if (!Validate::isLoadedObject($order))
138.             throw new PrestaShopException('object Order can\'t be loaded');
139.         $customer = new Customer((int)$order->id_customer);
140.         if (!Validate::isLoadedObject($order_invoice))
141.             throw new PrestaShopException('object Customer can\'t be loaded');
142.
143.         return '<b>'.Tools::displayPrice($customer->getOutstanding(), Context::getContext()->currency).'</b>';

 

D'autres personnes dans mon cas???

Link to comment
Share on other sites

  • 1 month later...

Je le même problème 

[PrestaShopException]

object Order can't be loaded
at line 139 in file controllers/admin/AdminOutstandingController.php

133.         $order_invoice = new OrderInvoice($id_invoice);
134.         if (!Validate::isLoadedObject($order_invoice))
135.             throw new PrestaShopException('object OrderInvoice can\'t be loaded');
136.         $order = new Order($order_invoice->id_order);
137.         if (!Validate::isLoadedObject($order))
138.             throw new PrestaShopException('object Order can\'t be loaded');
139.         $customer = new Customer((int)$order->id_customer);
140.         if (!Validate::isLoadedObject($order_invoice))
141.             throw new PrestaShopException('object Customer can\'t be loaded');
142.
143.         return '<b>'.Tools::displayPrice($customer->getOutstanding(), Context::getContext()->currency).'</b>';
Link to comment
Share on other sites

  • 2 months later...

Salut !

 

Même probléme sous presta 1.6 !

 

Vous avez probablement supprimé des commandes non ? j'ai résolue mon probléme en supprimant les lignes de la table "#_order_invoice" qui faisait références a des commandes supprimé.

 

La fonction de suppression des commandes est bugé (incomplète), j'ai pas la fois de faire remonter l'info "plus haut"..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...