Smithikakart Posted August 25, 2020 Share Posted August 25, 2020 PHP Fatal error: Uncaught PrestaShop\PrestaShop\Core\Product\Search\Exception\InvalidSortOrderDirectionException: Invalid SortOrder direction `asc/`. Expecting one of: `ASC`, `DESC`, or `RANDOM` #0 /home/smithikakart/public_html/src/Core/Product/Search/SortOrder.php(67): PrestaShop\PrestaShop\Core\Product\Search\SortOrder->setDirection('asc/') #1 /home/smithikakart/public_html/src/Core/Product/Search/SortOrder.php(125): PrestaShop\PrestaShop\Core\Product\Search\SortOrder->__construct('product', 'position', 'asc/') #2 /home/smithikakart/public_html/classes/controller/ProductListingFrontController.php(286): PrestaShop\PrestaShop\Core\Product\Search\SortOrder::newFromString('product.positio...') #3 /home/smithikakart/public_html/classes/controller/ProductListingFrontController.php(580): ProductListingFrontControllerCore->getProductSearchVariables() #4 /home/smithikakart/public_html/controllers/front/listing/CategoryController.php(137): Prod in /home/smithikakart/public_html/src/Core/Product/Search/SortOrder.php on line 199 Link to comment Share on other sites More sharing options...
Smithikakart Posted September 21, 2020 Author Share Posted September 21, 2020 any one help me to fix this one? Link to comment Share on other sites More sharing options...
musicmaster Posted September 27, 2020 Share Posted September 27, 2020 On 8/26/2020 at 1:33 AM, Smithikamobiles said: PHP Fatal error: Uncaught PrestaShop\PrestaShop\Core\Product\Search\Exception\InvalidSortOrderDirectionException: Invalid SortOrder direction `asc/`. Expecting one of: `ASC`, `DESC`, or `RANDOM` It is not hard to see that the slash behind "asc" in "asc/" is the problem. The big question is how it comes there. The most likely explanation is a human error. But given that you don't explain when the error happens it is hard to guess the exact cause. Link to comment Share on other sites More sharing options...
Smithikakart Posted September 29, 2020 Author Share Posted September 29, 2020 these errors are coming in to the cpanel php error log.... Link to comment Share on other sites More sharing options...
musicmaster Posted September 29, 2020 Share Posted September 29, 2020 6 hours ago, Smithikamobiles said: these errors are coming in to the cpanel php error log.... So you need to experiment to see when they happen. What were you doing in the front or backside when that happened? 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