• Hi, I am quite new to WordPress. I am building my website with latest wordpress version (v5.4.2) on Local by Flywheel v5.6.6 where web server is Nginx, Php version is 7.4.1 and Database is MySQL 8.0.16. While I create a new page and preview or publish it, this page will show a fatal error “Fatal error: Uncaught Error: Maximum function nesting level of ‘256’ reached, aborting! in /Users/myloginname/Local Sites/avant/app/public/wp-includes/class-wp-object-cache.php on line 472” and the page cannot be displayed properly. I tried to add xdebug.max_nesting_level into php.ini.hbs in Local by FlyWheel and increase the value to 15000. after restarting, it still shows me the message fatal error: Uncaught Error: Maximum function nesting level of ‘15000’ reached. I think that it seems unreasonable. I have no idea about what is the problem with it. Can you please help me? Millions thanks.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Some errant code is causing an infinite loop. It’s not really related to the object cache, that’s just the symptom that reveals there is a problem, the problem lies elsewhere. To narrow down the source, deactivate all plugins and switch to the default twentytwenty theme. You should be able to create a page now.

    Restore your normal theme and plugins, one at a time, testing after each. When the problem recurs, the last activated module is the cause.

Viewing 1 replies (of 1 total)

The topic ‘A fatal error found in class-wp-object-cache.php file’ is closed to new replies.