Jump to content

Erreur dans fichier SortOrder.php

Recommended Posts


Je suis sous Prestashop 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

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