I have created custom admin module it's showing empty page without adding <stores/> tag in config.xml file if I adding <stores/> tag it's returning an error.

error is:

Fatal error: Maximum function nesting level of '1000' reached, aborting! in C:\xampp\htdocs\magento\app\Mage.php on line 185

//config.xml file


Can you tell my bug where it is?

thanks in advance.


This error is quite good. It normally means that you implemented some circle, endless recursion or something like that.

After this error you normally get a stack trace where you can see, what functions are called. Have a look, hook into the methods and check why you have a so much nested methods.

Anshu is right, if it is necessary to call a lot of functions, it might help to increase the max_nesting_level.

  • And note that this max nesting level is not native to PHP, it's added by xdebug as is the error message. The intent is to prevent endless recursion, which would ultimately result in a memory limit error. – davidalger Oct 28 '13 at 2:08
  • @Fabian, where is xedug config file? – Magento007 Oct 28 '13 at 7:42
  • @davidalger, where is xedug config file? – Magento007 Oct 28 '13 at 7:43
  • It is called php.ini ;-) xdebug.org/docs/all_settings – Fabian Blechschmidt Oct 28 '13 at 11:54

If you have xdebug installed then try to increase xdebug.max_nesting_level in your xedug config file or your php.ini

  • where is xedug config file? – Magento007 Oct 28 '13 at 7:42
  • If you are using any linux machine, then you can try to find using something like find / -name 'xdebug.so' – Anshu Mishra Oct 28 '13 at 15:53

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.