Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Uncaught Error: Maximum function nesting level of '5000' reached, aborting! #656

Closed
danieldekay opened this issue Mar 6, 2018 · 13 comments

Comments

@danieldekay
Copy link

When trying to access /wp-admin/update-core.php I get a white page. Enabling WP_DEBUG and displaying the error message I get the following:

Fatal error: Uncaught Error: Maximum function nesting level of '256' reached, aborting!

Increasing the nesting level in wp-config.php via

ini_set('xdebug.max_nesting_level', 5000);

does not help.
it is stuck here, and loops through the latter lines...

0.5426 12124688 6. Fragen\GitHub_Updater\Settings->page_init() /public/wp-includes/class-wp-hook.php:286
0.5440 12132872 7. Fragen\Singleton::get_instance() /public/wp-content/plugins/github-updater/src/GitHub_Updater/Settings.php:351
0.5440 12133768 8. Fragen\GitHub_Updater\API\GitLab_API->__construct() /public/wp-content/plugins/github-updater/src/Singleton.php:47
0.5440 12134144 9. Fragen\GitHub_Updater\API\GitLab_API->set_default_credentials() /public/wp-content/plugins/github-updater/src/GitHub_Updater/API/GitLab_API.php:58
0.5446 12138776 10. Fragen\GitHub_Updater\Messages->create_error_message() /public/wp-content/plugins/github-updater/src/GitHub_Updater/API/GitLab_API.php:77
0.5446 12138816 11. Fragen\Singleton::get_instance() /public/wp-content/plugins/github-updater/src/GitHub_Updater/Messages.php:67
0.5446 12139712 12. Fragen\GitHub_Updater\API\GitLab_API->__construct() public/wp-content/plugins/github-updater/src/Singleton.php:47
0.5447 12139448 13. Fragen\GitHub_Updater\API\GitLab_API->set_default_credentials() public/wp-content/plugins/github-updater/src/GitHub_Updater/API/GitLab_API.php:58

@afragen
Copy link
Owner

afragen commented Mar 6, 2018

Which branch and version are you using?

@danieldekay
Copy link
Author

danieldekay commented Mar 6, 2018

Version 7.5.0.9, as pulled from the "inactivated plugins" tab.

@afragen
Copy link
Owner

afragen commented Mar 6, 2018

Can you paste tail of the last 100 or so lines from the PHP error log to a gist?

@afragen
Copy link
Owner

afragen commented Mar 6, 2018

Can you try switching to the no-backtrace branch too?

@danieldekay
Copy link
Author

@afragen
Copy link
Owner

afragen commented Mar 6, 2018

Can you try switching to a default theme and removing any GitLab plugins?

@danieldekay
Copy link
Author

Don't know how to switch to the no-backtracebranch. Can't activate the plugin because of the error.

@afragen
Copy link
Owner

afragen commented Mar 6, 2018

Try switching to a default theme and removing any GitLab plugins first.

@danieldekay
Copy link
Author

OK, I did the following:

  1. Activate Debug Mode
  2. Deactivate all plugins
  3. Switch to Twentyseventeen
  4. Activate Github-Updater

Here's the debug.log when activating github-updater

[07-Mar-2018 12:36:43 UTC] PHP Fatal error: Uncaught Error: Maximum function nesting level of '256' reached, aborting! in /home/dk/domains/tangomarathons.com/public/wp-includes/load.php:796
Stack trace:
#0 /home/dk/domains/tangomarathons.com/public/wp-includes/load.php(828): is_multisite()
#1 /home/dk/domains/tangomarathons.com/public/wp-includes/option.php(1186): get_current_network_id()
#2 /home/dk/domains/tangomarathons.com/public/wp-includes/option.php(1109): get_network_option(0, 'ghu-94615ed13c0...', false)
#3 /home/dk/domains/tangomarathons.com/public/wp-content/plugins/github-updater/src/GitHub_Updater/API.php(318): get_site_option('ghu-94615ed13c0...')
#4 /home/dk/domains/tangomarathons.com/public/wp-content/plugins/github-updater/src/GitHub_Updater/API/GitLab_API.php(51): Fragen\GitHub_Updater\API->get_repo_cache()
#5 /home/dk/domains/tangomarathons.com/public/wp-content/plugins/github-updater/src/Singleton.php(47): Fragen\GitHub_Updater\API\GitLab_API->__construct(Object(stdClass))
#6 /home/dk/domains/tangomarathons.com/public/wp-content/plu in /home/dk/domains/tangomarathons.com/public/wp-includes/load.php on line 796

@danieldekay
Copy link
Author

@danieldekay
Copy link
Author

danieldekay commented Mar 7, 2018

Tried to install the no-backtrace branch via wp plugin install --activate https://github.com/afragen/github-updater/archive/no-backtrace.zip -- alas, still white page on plugin list (/wp-admin/plugins.php)

@afragen
Copy link
Owner

afragen commented Mar 7, 2018

It’s odd the error seems to be related to getting the cached data from the database. Can you delete all the GHU related data from the database?

Running this plugin should do it. https://github.com/afragen/clear-github-updater-cache

@afragen afragen closed this as completed in 94d03c8 Mar 8, 2018
afragen added a commit that referenced this issue Mar 8, 2018
@afragen
Copy link
Owner

afragen commented Mar 8, 2018

Fixed in both develop and no-backtrace 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants