gianni_bracciali Posted November 16, 2012 Share Posted November 16, 2012 Can someone help me with this error? I get this when I visit my back office and go to my outstanding orders tab. object Order can't be loaded at line 147 in file controllers/admin/AdminOutstandingController.php Link to comment Share on other sites More sharing options...
vekia Posted November 16, 2012 Share Posted November 16, 2012 can you check Advanced parameters -> configuration information page in your prestashop back office for some missing files? 1 Link to comment Share on other sites More sharing options...
gianni_bracciali Posted November 16, 2012 Author Share Posted November 16, 2012 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 More sharing options...
vekia Posted November 16, 2012 Share Posted November 16, 2012 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 More sharing options...
gianni_bracciali Posted November 16, 2012 Author Share Posted November 16, 2012 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>'; AdminOutstandingControllerCore->printOutstandingCalculation - [line - ] - [2 Arguments] call_user_func_array - [line 292 - classes/helper/HelperList.php] - [2 Arguments] HelperListCore->displayListContent - [line 144 - classes/helper/HelperList.php] - [0 Argument] HelperListCore->generateList - [line 1449 - classes/controller/AdminController.php] - [2 Arguments] AdminControllerCore->renderList - [line 1383 - classes/controller/AdminController.php] - [0 Argument] AdminControllerCore->initContent - [line 168 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 43 - adminvat/index.php] - [0 Argument] Link to comment Share on other sites More sharing options...
gianni_bracciali Posted November 17, 2012 Author Share Posted November 17, 2012 Does anyone know what this error is? object Order can't be loaded at line 147 in file controllers/admin/AdminOutstandingController.php Link to comment Share on other sites More sharing options...
nextday_se Posted January 11, 2013 Share Posted January 11, 2013 Did you solve this somehow? I have the same issue... Link to comment Share on other sites More sharing options...
mehnihma Posted January 13, 2013 Share Posted January 13, 2013 I am getting HTTP Error 500 when I go to Outstanding ih BO Did anyone find the solution for this? Link to comment Share on other sites More sharing options...
Juanmax Posted January 23, 2013 Share Posted January 23, 2013 (edited) 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>'; AdminOutstandingControllerCore->printOutstandingCalculation - [line - ] - [2 Arguments] call_user_func_array - [line 294 - classes/helper/HelperList.php] - [2 Arguments] HelperListCore->displayListContent - [line 143 - classes/helper/HelperList.php] - [0 Argument] HelperListCore->generateList - [line 1480 - classes/controller/AdminController.php] - [2 Arguments] AdminControllerCore->renderList - [line 1414 - classes/controller/AdminController.php] - [0 Argument] AdminControllerCore->initContent - [line 167 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 50 - administrador/index.php] - [0 Argument] http://tienda.adatelis.com Edited January 23, 2013 by Juanmax (see edit history) Link to comment Share on other sites More sharing options...
Ledwis Posted February 8, 2013 Share Posted February 8, 2013 i have this problem when add a video, can solve? Link to comment Share on other sites More sharing options...
Juanmax Posted February 21, 2013 Share Posted February 21, 2013 Delete from your ps_order_invoice table the orders that you have deleted and just stop to delete orders.... There are many reasons if we don't allow to delete the orders... 1 Link to comment Share on other sites More sharing options...
mehnihma Posted February 21, 2013 Share Posted February 21, 2013 (edited) Why test orders cannot be deleted? I have deleted orders and it works Edited February 21, 2013 by mehnihma (see edit history) Link to comment Share on other sites More sharing options...
Sivop Posted August 9, 2014 Share Posted August 9, 2014 Thank's Juanmax ! Link to comment Share on other sites More sharing options...
jcasanova Posted September 24, 2014 Share Posted September 24, 2014 Hi Igot the same problem... any ideas? version 1.6.0.9 Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2014 Share Posted September 25, 2014 Hi Igot the same problem... any ideas? version 1.6.0.9 can you paste full error log report, like Juanmax pasted above in #9 post Link to comment Share on other sites More sharing options...
R. Svinding Posted April 24, 2015 Share Posted April 24, 2015 (edited) 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 April 24, 2015 by R. Svinding (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts