ryancramerdesign / ProcessWire-2.0

THIS IS AN OLD VERSION. Get the new one at the URL below:
https://github.com/ryancramerdesign/ProcessWire
GNU General Public License v2.0
39 stars 5 forks source link

Fatal error: Maximum function nesting level of '100' reached, aborting! #17

Closed adamkiss closed 9 years ago

adamkiss commented 13 years ago

How to recreate:

  1. clean install on default MAMP + xdebug
  2. move everything to trash [everything except Trash and admin, unsure about 404]
  3. empty trash

I find the wording of this particular error funny, though.

adamkiss commented 13 years ago
  1. seems to be caused by xdebug's 'max_recursion_limit' directive set to default [100]
  2. not sure which functions specifically in PW2 causes this
  3. sidenote: literally every CMS and framework has at least one post with this problem.
ryancramerdesign commented 13 years ago

Can you clarify this sentence (just want to make sure I got the exact details right):

"move everything to trash [everything except and admin, unseru about 404"

Thanks, Ryan

adamkiss commented 13 years ago

Hi, of course I can:)

*note: I'm not sure about 404 I don't remeber after even seeing it after install.

ryancramerdesign commented 13 years ago

Adam,

You mentioned that this appears as an issue in literally every CMS and framework. Do you think it's something to do with xdebug? I'm just trying to figure out whether this is a problem with ProcessWire that needs to be fixed, or if it's a side effect of xdebug?

Also on the line you mentioned "everything except and admin" -- I think a word is missing... everything except [what?] and admin? :)

Thanks, Ryan

adamkiss commented 13 years ago

*Edited original issue

Also, it might be xdebug issue – at least google thinks so, I just thought I'll post it here in case it happens to somebody without xdebug.

ocorreiododiogo commented 11 years ago

Old issue, but since it appears on Google here is a confirmation of Adam's suspicion http://processwire.com/talk/topic/339-urgent-matter-fatal-error-maximum-function-nesting-level-of-100-reached/

kauaicreative commented 10 years ago

I am getting this same error when creating a template with a simple repeater. Error: Maximum function nesting level of '100' reached, aborting! (line 113 of WireData.php)

I can confirm that setting max_nesting_level to 200 in the index.php file fixes the issue. ini_set('xdebug.max_nesting_level', 200);

christianesperar commented 10 years ago

Adding xdebug.max_nesting_level = 200 on the last line of php.ini solved my problem.