( ! ) 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.0001481760{main}( ).../index.php:0
20.04764860600Dispatcher->dispatch( ).../index.php:28
30.04895032312DispatcherCore->dispatch( ).../Dispatcher.php:298
40.05285464232ControllerCore->run( ).../Dispatcher.php:510
50.07616845008CategoryControllerCore->initContent( ).../Controller.php:319
60.199210192168ProductListingFrontControllerCore->doProductSearch( $template = 'catalog/listing/category', $params = ['entity' => 'category', 'id' => 413], $locale = ??? ).../CategoryController.php:134
70.199210192168ProductListingFrontControllerCore->getProductSearchVariables( ).../ProductListingFrontController.php:635
80.199210192328CategoryController->getProductSearchQuery( ).../ProductListingFrontController.php:308
90.199310192664PrestaShop\PrestaShop\Core\Product\Search\ProductSearchQuery->setSortOrder( $sortOrder = 'asc' ).../CategoryController.php:19