( ! ) 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.0000481248{main}( ).../index.php:0
20.05624854512Dispatcher->dispatch( ).../index.php:28
30.05775026224DispatcherCore->dispatch( ).../Dispatcher.php:298
40.06245456856ControllerCore->run( ).../Dispatcher.php:510
50.09056929864CategoryControllerCore->initContent( ).../Controller.php:319
60.252710177680ProductListingFrontControllerCore->doProductSearch( $template = 'catalog/listing/category', $params = ['entity' => 'category', 'id' => 1145], $locale = ??? ).../CategoryController.php:134
70.252710177680ProductListingFrontControllerCore->getProductSearchVariables( ).../ProductListingFrontController.php:635
80.252810177840CategoryController->getProductSearchQuery( ).../ProductListingFrontController.php:308
90.252810178176PrestaShop\PrestaShop\Core\Product\Search\ProductSearchQuery->setSortOrder( $sortOrder = 'asc' ).../CategoryController.php:19