Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Prevent fatal error on invalid sort order#41504

Open
gross-nvs wants to merge 1 commit into
PrestaShop:developfrom
gross-nvs:fix/34819-sort-fatal-error
Open

Prevent fatal error on invalid sort order#41504
gross-nvs wants to merge 1 commit into
PrestaShop:developfrom
gross-nvs:fix/34819-sort-fatal-error

Conversation

@gross-nvs
Copy link
Copy Markdown
Contributor

Questions Answers
Branch? develop
Description? Invalid sort order on product list used to trigger a PHP Fatal error, this PR implements a friendly way to deal with an invalid URL by redirecting to the canonical one. When triggered in debug mode, error will be displayed in a similar fashion with canonical redirects
Type? improvement
Category? FO
BC breaks? no
Deprecations? no
How to test? Go to a product listing, change the sorting order, manually change the order value with an invalid sort direction: desc' or remove part of the sort parameter: product.desc
UI Tests No UI change
Fixed issue or discussion? Fixes #34819
Related PRs
Sponsor company Novius

@gross-nvs gross-nvs requested a review from a team as a code owner May 19, 2026 09:12
@github-project-automation github-project-automation Bot moved this to Ready for review in PR Dashboard May 19, 2026
@ps-jarvis ps-jarvis added Improvement Type: Improvement develop Branch labels May 19, 2026
@github-actions github-actions Bot added this to the 9.2.0 milestone May 19, 2026
@kpodemski kpodemski modified the milestone: 9.2.0 May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

develop Branch Improvement Type: Improvement

Projects

Status: Ready for review

Development

Successfully merging this pull request may close these issues.

PHP Fatal Error SortOrder

3 participants