10

I am working with Civicrm with Drupal. I created one custom import section. Whenever I submit mapped form it shows this kind of an error:

Fatal error: Maximum function nesting level of '100' reached, aborting! in C:\wamp\www\crmdev\includes\common.inc on line 290

How can I fix this, and how to reset the nesting level?

halfer
  • 19,824
  • 17
  • 99
  • 186
DEVOPS
  • 18,190
  • 34
  • 95
  • 118

3 Answers3

45

If you are using xdebug extension
You can do this ini_set('xdebug.max_nesting_level', 200)

xdebug.max_nesting_level

azat
  • 3,545
  • 1
  • 28
  • 30
  • This was useful for the Commerce Paypal WPS module (http://drupal.org/node/1611570), as well. – Meetai.com Oct 22 '12 at 22:53
  • This was also useful for Commerce FedEx module (http://drupal.org/project/commerce_fedex) – subhojit777 Feb 11 '13 at 08:32
  • This also happens generall when [addding `collection` types to Symfony Forms](http://symfony.com/doc/master/cookbook/form/form_collections.html) – Adam Apr 13 '13 at 17:05
4

Your code almost certainly has a bottomless recursion, but it's difficult to be sure without seeing the code.

TML
  • 12,813
  • 3
  • 38
  • 45
1

Max nesting level is typically set by zend/xDebug, if infinite recursion occurs without those you will get a segfault instead, you should focus on fixing that infinite recursion instead ...

yent
  • 1,303
  • 1
  • 8
  • 10
  • Yeah, xdebug is causing this notice, but without xdebug it would be worse. Try to fix it, xdebug will help to pinpoint the exact issue. – Scorchio Aug 09 '11 at 12:45