Jump to content
djform

Erreur dans fichier SortOrder.php

Recommended Posts

Bonjour.

Je suis sous Prestashop 1.7.5.2 sous PHP 7.

J'ai une erreur qu'on rencontre dans pas mal de sites en production :

mod_fcgid: stderr: PHP Fatal error:  Uncaught Exception: Invalid SortOrder direction ``. Expecting one of: `ASC`, `DESC`, or `RANDOM`. in /home/djform/public_html/prestashop/src/Core/Product/Search/SortOrder.php:120
mod_fcgid: stderr: Stack trace:
mod_fcgid: stderr: #0 /home/djform/public_html/prestashop/src/Core/Product/Search/SortOrder.php(43): PrestaShop\\PrestaShop\\Core\\Product\\Search\\SortOrder->setDirection(NULL)
mod_fcgid: stderr: #1 /home/djform/public_html/prestashop/src/Core/Product/Search/SortOrder.php(77): PrestaShop\\PrestaShop\\Core\\Product\\Search\\SortOrder->__construct('test', NULL, NULL)
mod_fcgid: stderr: #2 /home/djform/public_html/prestashop/classes/controller/ProductListingFrontController.php(290): PrestaShop\\PrestaShop\\Core\\Product\\Search\\SortOrder::newFromString('test')
mod_fcgid: stderr: #3 /home/djform/public_html/prestashop/classes/controller/ProductListingFrontController.php(545): ProductListingFrontControllerCore->getProductSearchVariables()
mod_fcgid: stderr: #4 /home/djform/public_html/prestashop/controllers/front/listing/CategoryController.php(137): ProductListingFrontControllerCore->doProductSearch('catalog/listing...', Array)
mod_fcgid: stderr: #5  in /home/djform/public_html/prestashop/src/Core/Product/Search/SortOrder.php on line 120

Cette erreur apparait dans mes logs mais pas sur le site en mode debug (ou alors je ne sais pas ce qu'il faut faire pour qu'elle apparaisse).

Je ne comprends pas d'où ça vient.

Une idée ?

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More