Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upInfinite loop and order blocked with two specific cart rules #15574
Comments
This comment has been minimized.
This comment has been minimized.
Hi @jf-viguier, I manage to reproduce the issue with PS1.7.6.1 & develop branch & PS1.7.6.0. With PS1.7.5.2 => OK
|
This comment has been minimized.
This comment has been minimized.
Thanks @khouloudbelguith |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Unfortunately, after reviewing the PR, we have considered it does not fix the issue, so we put it back on the To do column and are going to work on it asap. |
This comment has been minimized.
This comment has been minimized.
ok @colinegin and what's the plan to fix it ? |
This comment has been minimized.
This comment has been minimized.
We go deeper in the code |
This comment has been minimized.
This comment has been minimized.
Thanks @PierreRambaud : you've got all my support. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
We maybe found a fix with #15691 |
This comment has been minimized.
This comment has been minimized.
Hi all, have you validated the fix #15691 for this bug ? |
This comment has been minimized.
This comment has been minimized.
@jf-viguier Still waiting for review and QA :/ |
This comment has been minimized.
This comment has been minimized.
ok thanks |
This comment has been minimized.
This comment has been minimized.
Fixed by #15691 |
Describe the bug
Infinite loop and order blocked with two specific cart rules.
To Reproduce
Steps to reproduce the behavior:
With a fresh Prestashop 1.7.6.1 installation in debug mode. Follow this exactly in this order :
If xdebug is enabled, You'll get the error "Maximum function nesting level of '256' reached, aborting!" If not, php will crash and you'll only have a 500 error.
This bug is not present in 1.6, It's a regression.
It seems that cart rules are recursively evaluated and product list is reconstructed each call of cart computation.
As already disscussed with @matks, this PR should fix the bug #12878
Screenshots


Additional information
PrestaShop version: 1.7.6.1
PHP version: 7.0