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, 2014 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. Aug 2, 2014 at 14:20

1 Answer 1


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.

  • 1
    Yes, it worked for me too, Have configured the same in PHP.ini and it worked. Jul 5, 2016 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, 2016 at 10:28
  • Hey, i updated from 200 to 300, xdebug.max_nesting_level = 300 . but still i get the same error Mar 2, 2017 at 5:44
  • 1
    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 Mar 2, 2017 at 13:50
  • it helped .......put value 1000
    – Asad Ullah
    Aug 4, 2020 at 16:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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