Jump to content

Help please checkout crashes with PrestaShop V1.7.7.0  and Checkout v2.3.0


qian.li.ok@gmail.com
 Share

Recommended Posts

PrestaShop V1.7.7.0  and PrestaShop Checkout v2.3.0 crashing at card checkout and throws Exceptions to end customer. I upgraded the PrestaShop with 1-click-upgrade to the latest version, but unfortunately, I've not made any backups. So I'm not sure if it's related to the upgrade. I hope someone may able to help or point me some direction for me about the crashes. Thanks so much in advance. 

(1/1) FatalThrowableError
Call to a member function getPluginConfig() on null
in sendinblue.php line 3640 
at Sendinblue->getApiConfigValue()in sendinblue.php line 3455 
at Sendinblue->hookOrderConfirmation(array('order' => object(Order), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2))in Hook.php line 988 
at HookCore::coreCallHook(object(Sendinblue), 'hookOrderConfirmation', array('order' => object(Order), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2))in Hook.php line 412 
at HookCore::callHookOn(object(Sendinblue), 'OrderConfirmation', array('order' => object(Order), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2))in Hook.php line 925 
at HookCore::exec('displayOrderConfirmation', array('order' => object(Order), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2))in OrderConfirmationController.php line 126 
at OrderConfirmationControllerCore->displayOrderConfirmation(object(Order))in OrderConfirmationController.php line 96 
at OrderConfirmationControllerCore->initContent()in Controller.php line 306 
at ControllerCore->run()in Dispatcher.php line 518 
at DispatcherCore->dispatch()in index.php line 28 

 

And I can see the order in the Orders page, but if "view" order details causes another Fater Error Stack trace:

FatalThrowableError
Symfony\Component\Debug\Exception\FatalThrowableError:
Type error: Argument 3 passed to PrestaShop\PrestaShop\Core\Domain\Order\QueryResult\OrderStatusForViewing::__construct() must be of the type string, null given, called in /homepages/7/d855898724/htdocs/clickandbuilds/PrestaShop/OEShop/src/Adapter/Order/QueryHandler/GetOrderForViewingHandler.php on line 326

  at src/Core/Domain/Order/QueryResult/OrderStatusForViewing.php:83
  at PrestaShop\PrestaShop\Core\Domain\Order\QueryResult\OrderStatusForViewing->__construct(5, 16, null, '#34209E', object(DateTimeImmutable), false, null, null)
     (src/Adapter/Order/QueryHandler/GetOrderForViewingHandler.php:326)
  at PrestaShop\PrestaShop\Adapter\Order\QueryHandler\GetOrderForViewingHandler->getOrderHistory(object(Order))
     (src/Adapter/Order/QueryHandler/GetOrderForViewingHandler.php:189)
  at PrestaShop\PrestaShop\Adapter\Order\QueryHandler\GetOrderForViewingHandler->handle(object(GetOrderForViewing))
     (vendor/league/tactician/src/Handler/CommandHandlerMiddleware.php:71)
  at League\Tactician\Handler\CommandHandlerMiddleware->execute(object(GetOrderForViewing), object(Closure))
     (vendor/league/tactician/src/CommandBus.php:62)
  at League\Tactician\CommandBus->League\Tactician\{closure}(object(GetOrderForViewing))
     (src/Core/CommandBus/Middleware/CommandRegisterMiddleware.php:79)
  at PrestaShop\PrestaShop\Core\CommandBus\Middleware\CommandRegisterMiddleware->execute(object(GetOrderForViewing), object(Closure))
     (vendor/league/tactician/src/CommandBus.php:62)
  at League\Tactician\CommandBus->League\Tactician\{closure}(object(GetOrderForViewing))
     (vendor/league/tactician/src/CommandBus.php:42)
  at League\Tactician\CommandBus->handle(object(GetOrderForViewing))
     (src/Core/CommandBus/TacticianCommandBusAdapter.php:54)
  at PrestaShop\PrestaShop\Core\CommandBus\TacticianCommandBusAdapter->handle(object(GetOrderForViewing))
     (src/PrestaShopBundle/Controller/Admin/Sell/Order/OrderController.php:401)
  at PrestaShopBundle\Controller\Admin\Sell\Order\OrderController->viewAction(2, object(Request))
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, false)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request), 1, false)
     (lblahcpfy7fv57ef/index.php:82)

 

 

Share this post


Link to post
Share on other sites

  • 2 weeks later...
  • 5 months later...

Bonjour,

il s'agit du type non défini ... éditez le fichier

/src/Adapter/Order/QueryHandler/GetOrderForViewingHandler.php on line 326

et remplacez par 

            $statuses[] = new OrderStatusForViewing(
                (int) $item['id_order_history'],
                (int) $item['id_order_state'],
                (string) $item['ostate_name'],
                (string) $item['color'],
                new DateTimeImmutable($item['date_add']),
                (bool) $item['send_email'],
                (string) $item['employee_firstname'],
                (string) $item['employee_lastname']
            );

  • Like 1

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More