Jump to content

FatalThrowableError


Cuquel

Recommended Posts

Bonjour a tous et meilleurs vœux !

Pour bien commencer l'année, j'ai un joli bug sur mon site depuis que je suis passé a la dernière version 1.7.7.0

Lorsque je clique sur une commande qui vient de cdiscount, je ne peux pas visualiser le détail de celle ci, j'ai une page avec ce message d'erreur :

 

Est ce que quelqu'un pourrait m'aider car je ne suis pas un développeur et je n'y comprend pas grand chose :(

 

Type error: Argument 6 passed to PrestaShop\PrestaShop\Core\Domain\Order\QueryResult\OrderProductForViewing::__construct() must be of the type string, null given, called in /home/marquelffg/www/src/Adapter/Order/QueryHandler/GetOrderProductsForViewingHandler.php on line 259

Exception

Logs 2

Stack Trace

Symfony\Component\Debug\Exception\FatalThrowableError

in src/Core/Domain/Order/QueryResult/OrderProductForViewing.php (line 189)

     * @param string $type

     * @param bool $availableOutOfStock

     * @param array $packItems

     * @param OrderProductCustomizationsForViewing|null $customizations

     */

    public function __construct(

        ?int $orderDetailId,

        int $id,

        int $combinationId,

        string $name,

        string $reference,

OrderProductForViewing->__construct(2969, 0, 0, 'Frais de gestion', 'Frais de gestion', null, '1', '1,98 €', '1,98 €', 0, null, '1.98', '1.98', '0', '0,00 €', 0, '1,98 €', '1.98', false, '2452', '#FA002373', 'product_without_combinations', false, array(), null)in src/Adapter/Order/QueryHandler/GetOrderProductsForViewingHandler.php (line 259)

GetOrderProductsForViewingHandler->handle(object(GetOrderProductsForViewing))in src/Adapter/Order/QueryHandler/GetOrderForViewingHandler.php (line 801)

GetOrderForViewingHandler->getOrderProducts(object(OrderId))in src/Adapter/Order/QueryHandler/GetOrderForViewingHandler.php (line 188)

GetOrderForViewingHandler->handle(object(GetOrderForViewing))in vendor/league/tactician/src/Handler/CommandHandlerMiddleware.php (line 71)

CommandHandlerMiddleware->execute(object(GetOrderForViewing), object(Closure))in vendor/league/tactician/src/CommandBus.php (line 62)

CommandBus->League\Tactician\{closure}(object(GetOrderForViewing))in src/Core/CommandBus/Middleware/CommandRegisterMiddleware.php (line 79)

CommandRegisterMiddleware->execute(object(GetOrderForViewing), object(Closure))in vendor/league/tactician/src/CommandBus.php (line 62)

CommandBus->League\Tactician\{closure}(object(GetOrderForViewing))in vendor/league/tactician/src/CommandBus.php (line 42)

CommandBus->handle(object(GetOrderForViewing))in src/Core/CommandBus/TacticianCommandBusAdapter.php (line 54)

TacticianCommandBusAdapter->handle(object(GetOrderForViewing))in src/PrestaShopBundle/Controller/Admin/Sell/Order/OrderController.php (line 401)

OrderController->viewAction(2477, object(Request))in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 151)

HttpKernel->handleRaw(object(Request), 1)in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68)

HttpKernel->handle(object(Request), 1, false)in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 200)

Kernel->handle(object(Request), 1, false)in admin1033/index.php (line 82)

Link to comment
Share on other sites

  • 1 month later...

Avec la dernière mise a jour de prestashop, le message a changé, ce n'est pas sur toutes les commandes mais certaines.. Et je ne sais pas pourquoi. Voici le message d'erreur que j'ai :

Type error: Argument 6 passed to PrestaShop\PrestaShop\Core\Domain\Order\QueryResult\OrderProductForViewing::__construct() must be of the type string, null given, called in /home/marquelffg/www/src/Adapter/Order/QueryHandler/GetOrderProductsForViewingHandler.php on line 272

[Symfony\Component\Debug\Exception\FatalThrowableError 0]

Est ce que quelqu'un qui comprends le langage pourrait m'expliquer ce que cela veut dire ?

Merci d'avance pour votre aide car je suis coincé depuis plusieurs mois maintenant...

Link to comment
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
×
×
  • Create New...