Jump to content

Can't load Carrier object - Presta 1.6


Recommended Posts

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 object
at 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,

 

 

Anyone can help me?

post-696344-0-81815100-1405188988_thumb.jpg

Link to comment
Share on other sites

  • 2 months later...
  • 4 weeks later...
  • 3 months later...
  • 1 month later...

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

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

  • 1 year later...
  • 1 month later...

 

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,

Link to comment
Share on other sites

  • 2 months later...
  • 8 months later...
  • 2 weeks later...
  • 1 month later...

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...