paulormf Posted July 12, 2014 Share Posted July 12, 2014 Hello for all!! I'm updated my store of 1.5 to 1.6. When i change the carrier number and click in update, return this error.. [PrestaShopException]Can't load Carrier objectat line 442 in file controllers/admin/AdminOrdersController.php 436. $customer = new Customer((int)$order->id_customer);437. $carrier = new Carrier((int)$order->id_carrier, $order->id_lang);438. if (!Validate::isLoadedObject($customer))439. throw new PrestaShopException('Can\'t load Customer object');440. if (!Validate::isLoadedObject($carrier))441. throw new PrestaShopException('Can\'t load Carrier object');442. $templateVars = array(443. '{followup}' => str_replace('@', $order->shipping_number, $carrier->url),444. '{firstname}' => $customer->firstname,445. '{lastname}' => $customer->lastname,446. '{id_order}' => $order->id, AdminOrdersControllerCore->postProcess - [line 171 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] Anyone can help me? Link to comment Share on other sites More sharing options...
Teapot Creative Posted October 7, 2014 Share Posted October 7, 2014 bump Link to comment Share on other sites More sharing options...
reinoplantae Posted November 2, 2014 Share Posted November 2, 2014 I have exaclty the same issue. Did you figure out how to solve it??? Link to comment Share on other sites More sharing options...
Vendas Bellas Posted February 19, 2015 Share Posted February 19, 2015 ??? Link to comment Share on other sites More sharing options...
Gipielle Posted March 25, 2015 Share Posted March 25, 2015 Same problem with PS 1.5.6.1 Link to comment Share on other sites More sharing options...
paulormf Posted March 25, 2015 Author Share Posted March 25, 2015 unset and set friendly urls, clear cache, enable to force compilation..solved to me.. ps: unset force compilation after.. Link to comment Share on other sites More sharing options...
Gipielle Posted March 26, 2015 Share Posted March 26, 2015 Friendly urls ? Link to comment Share on other sites More sharing options...
paulormf Posted March 26, 2015 Author Share Posted March 26, 2015 Friendly urls ? ---- Link to comment Share on other sites More sharing options...
Gipielle Posted March 27, 2015 Share Posted March 27, 2015 How is associated, the url rewrite with the carriers? does not seem a logical solution ... maybe I'm wrong Link to comment Share on other sites More sharing options...
paulormf Posted March 27, 2015 Author Share Posted March 27, 2015 solved for me, you may need to collect more data from your error for a more detailed analysis. Please enable debug mode, maybe some installed module is causing the error for you. The intention is to always help everyone to have a stable and free platform and thus succeed in sales. As can help I will be available. Link to comment Share on other sites More sharing options...
Gipielle Posted March 27, 2015 Share Posted March 27, 2015 Correct, I think the problem is due to the order, the courier is not recorded. I solve assigning the courier directly to the DB. I wanted to know if it was possible to change the page of prestashop to avoid having to change the DB. Since we are not the only one, maybe there was an official fix, apparently even the 1.6 presents all the problems of version 1.5 Link to comment Share on other sites More sharing options...
hakeryk2 Posted July 14, 2016 Share Posted July 14, 2016 I am having this error right now when I try to edit shipping number field. Any idea? Link to comment Share on other sites More sharing options...
Klemart3D Posted August 18, 2016 Share Posted August 18, 2016 Same problem here, with Prestashop 1.6.0.13 : [PrestaShopException] Can't load Carrier object at line 475 in file controllers/admin/AdminOrdersController.php 470. $customer = new Customer((int)$order->id_customer);471. $carrier = new Carrier((int)$order->id_carrier, $order->id_lang); 472. if (!Validate::isLoadedObject($customer)) 473. throw new PrestaShopException('Can\'t load Customer object'); 474. if (!Validate::isLoadedObject($carrier)) 475. throw new PrestaShopException('Can\'t load Carrier object'); 476. $templateVars = array( 477. '{followup}' => str_replace('@', $order->shipping_number, $carrier->url), 478. '{firstname}' => $customer->firstname, 479. '{lastname}' => $customer->lastname, 480. '{id_order}' => $order->id, AdminOrdersControllerCore->postProcess - [line 171 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] Link to comment Share on other sites More sharing options...
filippodb Posted October 28, 2016 Share Posted October 28, 2016 Any ideas about this bug? Link to comment Share on other sites More sharing options...
tumil Posted July 26, 2017 Share Posted July 26, 2017 Old topic but well, I'm getting the same error on Prestashop 1.6.1.6 Link to comment Share on other sites More sharing options...
Gipielle Posted August 5, 2017 Share Posted August 5, 2017 Open a ticket in prestashop forge Link to comment Share on other sites More sharing options...
Grayaa Posted September 15, 2017 Share Posted September 15, 2017 Hello guys, i have the same exception : Can't load Carrier object, did any one solved it yet ? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now