7

I got this error after installing Magento 2 on my local machine over wamp software:

Fatal error: Maximum function nesting level of ’100′ reached, aborting! in \magento2\lib\internal\Magento\Framework\ObjectManager\Config\Config.php on line 69

  • You can self answer your question but that still requires your question and it's answer to be inline with the standards needed on this site. – rene Aug 2 '14 at 9:38
  • Summarize the link in an answer, please. Links have a habit of dying and the information becomes useless. Just had this happen over on Magento Commerce of all places. The answer to the issue was a comment in a bugfix request. The bugfix database was upgraded and as usual over there all older references deleted. No more resolution to the issue. – Fiasco Labs Aug 2 '14 at 14:20
18

You can still use xdebug in Magento 2, but it will require modifying the default max_nesting_level value of 100 that xdebug uses.

Open up the php.ini file being used by your server and update or add the following config, depending on if it already exists in your file:

xdebug.max_nesting_level = 200

This works for me, but if you still see the error you can try doubling the value again.

  • Yes, it worked for me too, Have configured the same in PHP.ini and it worked. – Yogesh Trivedi Jul 5 '16 at 10:44
  • Hey, i updated from 200 to 300, xdebug.max_nesting_level = 300 . but still i get the same error – Sushivam Jul 20 '16 at 10:28
  • Hey, i updated from 200 to 300, xdebug.max_nesting_level = 300 . but still i get the same error – Magento2 Devloper Mar 2 '17 at 5:44
  • Would suggest keep doubling and see if it goes away (200, 400, 800, 1600). If not then open an issue with full trace to the Magento GitHub – Chris O'Toole Mar 2 '17 at 13:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.