( ! ) Fatal error: Uncaught TypeError: PrestaShop\PrestaShop\Core\Product\Search\ProductSearchQuery::setSortOrder(): Argument #1 ($sortOrder) must be of type PrestaShop\PrestaShop\Core\Product\Search\SortOrder, string given, called in /home/patrick/premibel.fr/www/override/controllers/front/CategoryController.php on line 19 and defined in /home/patrick/premibel.fr/www/src/Core/Product/Search/ProductSearchQuery.php on line 220
( ! ) TypeError: PrestaShop\PrestaShop\Core\Product\Search\ProductSearchQuery::setSortOrder(): Argument #1 ($sortOrder) must be of type PrestaShop\PrestaShop\Core\Product\Search\SortOrder, string given, called in /home/patrick/premibel.fr/www/override/controllers/front/CategoryController.php on line 19 in /home/patrick/premibel.fr/www/src/Core/Product/Search/ProductSearchQuery.php on line 220
Call Stack
#TimeMemoryFunctionLocation
10.0001482144{main}( ).../index.php:0
20.889227631952Dispatcher->dispatch( ).../index.php:28
30.890627803664DispatcherCore->dispatch( ).../Dispatcher.php:298
40.894828329792ControllerCore->run( ).../Dispatcher.php:510
51.401731527152CategoryControllerCore->initContent( ).../Controller.php:319
61.510935011608ProductListingFrontControllerCore->doProductSearch( $template = 'catalog/listing/category', $params = ['entity' => 'category', 'id' => 413], $locale = ??? ).../CategoryController.php:134
71.510935011608ProductListingFrontControllerCore->getProductSearchVariables( ).../ProductListingFrontController.php:635
81.511035011768CategoryController->getProductSearchQuery( ).../ProductListingFrontController.php:308
91.511035012104PrestaShop\PrestaShop\Core\Product\Search\ProductSearchQuery->setSortOrder( $sortOrder = 'asc' ).../CategoryController.php:19