Maximum function nesting level of '256' reached

Created on 9 August 2022, almost 3 years ago
Updated 23 April 2025, 26 days ago

I attempted to install multiple modules in the Message stack and it took my website down. I cannot access any pages front or backend. I cannot clear cache or uninstall any modules via drush. I am able to see the watchdog log via drush, and this is the error I'm seeing:

Error: Maximum function nesting level of '256' reached, aborting! in Drupal\key\KeyConfigOverrides->getCacheSuffix() (line 114 of C:\wamp64\www\list\modules\contrib\key\src\KeyConfigOverrides.php

The research I've found related to this error message suggests some kind of endless loop is happening.

🐛 Bug report
Status

Closed: works as designed

Version

1.15

Component

Code

Created by

🇺🇸United States arlingtonvoicellc

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India vipin.mittal18 Greater Noida

    Hello Zack,

    I'm not sure if any fixes are required on the module's end. Increasing the xdebug.max_nesting_level in php.ini to a higher value can help to investigate further, but this is just a temporary workaround.

    Your issue might be resolved by switching PHP versions, as this could have cleared the opcode cache (like OPCache), which may fix issues caused by stale or corrupted cached data.

  • 🇺🇸United States japerry KVUO

    Its possible this could be a bug? but without other reports or ways to reproduce, can't really do much with it.

  • 🇺🇸United States mglaman WI, USA

    I don't know why this isn't breaking more, but KeyConfigOverrides::getMapping is loading multiple config. Which loading config applies overrides. And that is then re-running KeyConfigOverrides

  • 🇺🇸United States mglaman WI, USA

    Actually the inOverride flag should be preventing the recursiveness I described. But sounds like it didn't in the original IS

  • 🇺🇸United States mglaman WI, USA

    Actually, inOverride should be static so that it is set across all instances and not just individual instances of the class.

  • 🇺🇸United States mglaman WI, USA

    Reopening, I think there is a bug and has a quick fix by converting to a static property

  • First commit to issue fork.
Production build 0.71.5 2024