Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 7.3 Fatal error: Nesting level too deep - recursive dependency? #995

Closed
gkopec opened this issue May 20, 2020 · 1 comment
Closed

PHP 7.3 Fatal error: Nesting level too deep - recursive dependency? #995

gkopec opened this issue May 20, 2020 · 1 comment

Comments

@gkopec
Copy link

gkopec commented May 20, 2020

After switching from PHP 7.2 to PHP 7.3 when I tried to add a bundle product to the cart I got this Fatal:
Fatal error: Nesting level too deep - recursive dependency? in /data/my/magento/app/code/core/Mage/Sales/Model/Quote/Item/Abstract.php on line 134

Possible solution is adding third parameter "true" to in_array function:
https://github.com/OpenMage/magento-lts/blob/1.9.4.x/app/code/core/Mage/Sales/Model/Quote/Item/Abstract.php#L134
founded here:
https://stackoverflow.com/questions/3834791/fatal-error-nesting-level-too-deep-recursive-dependency

This worked for me:
if (!in_array($this, $parentItem->getChildren(), true))

I am just wondering if Magento core is really ready for PHP 7.3...

@gkopec
Copy link
Author

gkopec commented May 20, 2020

Sorry, there's already similar issue #716

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants