Solution for “Fatal error: Maximum function nesting level of '100' reached, aborting!” in PHP

后端 未结 22 2039
我寻月下人不归
我寻月下人不归 2020-11-22 16:45

I have made a function that finds all the URLs within an html file and repeats the same process for each html content linked to the discovered URLs. The function is recursiv

相关标签:
22条回答
  • 2020-11-22 16:54

    on Ubuntu using PHP 5.59 :
    got to `:

    /etc/php5/cli/conf.d

    and find your xdebug.ini in that dir, in my case is 20-xdebug.ini

    and add this line `

    xdebug.max_nesting_level = 200


    or this

    xdebug.max_nesting_level = -1

    set it to -1 and you dont have to worry change the value of the nesting level.

    `

    0 讨论(0)
  • 2020-11-22 16:55

    If you're using Laravel, do

    composer update
    

    This should be work.

    0 讨论(0)
  • 2020-11-22 16:56
    <?php
    ini_set('xdebug.max_nesting_level', 9999);
    ... your code ...
    

    P.S. Change 9999 to any number you want.

    0 讨论(0)
  • 2020-11-22 17:03

    Increase the value of xdebug.max_nesting_level in your php.ini

    0 讨论(0)
  • 2020-11-22 17:04

    I had a error when i was installing many plugins So the error 100 showed including the location of the last plugin that i installed C:\wamp\www\mysite\wp-content\plugins\"..." so i deleted this plugin folder on the C: drive then everything was back to normal.I think i have to limit the amount of plug-in i install or have activated .good luck i hope it helps

    0 讨论(0)
  • 2020-11-22 17:04

    I had the same problem and i reslove like this :

    Open MySQL my.ini file

    In [mysqld] section, add the following line: innodb_force_recovery = 1

    Save the file and try starting MySQL

    Remove that line which you just added and Save

    0 讨论(0)
提交回复
热议问题