Jump to content

Internal php error


Smithikakart

Recommended Posts

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

  • 4 weeks later...
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

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...