[email protected] Posted January 2, 2021 Share Posted January 2, 2021 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) Link to comment Share on other sites More sharing options...
[email protected] Posted January 10, 2021 Author Share Posted January 10, 2021 Request no longer needed, I've contacted the Prestashop checkout team to get it resolved, but they didn't response the root cause of it yet. Thanks Link to comment Share on other sites More sharing options...
sebweb Posted June 23, 2021 Share Posted June 23, 2021 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'] ); 1 Link to comment Share on other sites More sharing options...
makinero Posted November 8, 2022 Share Posted November 8, 2022 Merci sebweb pour ton aide ! Je cherche depuis 2h... Ça semble tellement évident de caster vu que le type est imposé... Ta réponse a été postée il y a plus d'un an. Si l'équipe de développement Prestashop consultait les forums, elle se serait aperçue que ça pouvait générer des problèmes de migration... 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