Title: Plugin causes ‘Maximum function nesting level’ error
Last modified: September 28, 2022

---

# Plugin causes ‘Maximum function nesting level’ error

 *  [Erix Kivuti](https://wordpress.org/support/users/elzix/)
 * (@elzix)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/plugin-causes-maximum-function-nesting-level-error/)
 * I keep getting the error:
 *     ```
       Fatal error: Uncaught Error: Maximum function nesting level of '256' reached, aborting!
       in /.../consciouskenya.com/wp-content/object-cache.php on line 2411
       ```
   
 * I tried increasing the level to 4096 (xdebug.max_nesting_level), and got the 
   error:
 *     ```
       Fatal error: Uncaught Error: Maximum function nesting level of '4096' reached, aborting!
       in /.../consciouskenya.com/wp-content/object-cache.php on line 2411
       ```
   
 * I checked with Redis Object Cache plugin and found the thread:
    [https://wordpress.org/support/topic/redis-plugin-causes-maximum-function-nesting-level-error/](https://wordpress.org/support/topic/redis-plugin-causes-maximum-function-nesting-level-error/)
 * The thread states that the issue is with another plugin and confirmed by the 
   last comment in the thread.
 * The Call Stack has a loop of:
 *     ```
       Plf_filter::plf_filter()
       wp-content/mu-plugins/plf-filter.php:240
       Plf_filter::active_plugins()
       wp-includes/class-wp-hook.php:309
       WP_Hook::apply_filters()
       wp-includes/plugin.php:191
       apply_filters()
       wp-includes/option.php:132
       get_option()
       wp-content/plugins/wc-frontend-manager/helpers/wcfm-core-functions.php:185
       wcfm_is_marketplace()
       wp-content/plugins/wc-frontend-manager/helpers/wcfm-core-functions.php:222
       wcfm_is_vendor()
       wp-content/plugins/wc-multivendor-marketplace/helpers/wcfmmp-core-functions.php:867
       {closure}()
       wp-includes/class-wp-hook.php:307
       WP_Hook::apply_filters()
       wp-includes/class-wp-hook.php:331
       WP_Hook::do_action()
       wp-includes/plugin.php:524
       do_action_ref_array()
       wp-includes/class-wp-query.php:1805
       WP_Query::get_posts()
       wp-includes/class-wp-query.php:3586
       WP_Query::query()
       wp-includes/class-wp-query.php:3718
       WP_Query::__construct()
       wp-content/mu-plugins/plf-filter.php:961
       Plf_filter::plf_filter()
       wp-content/mu-plugins/plf-filter.php:240
       Plf_filter::active_plugins()
       wp-includes/class-wp-hook.php:309
       ```
   
 * The initial call stack, before the loop is:
 *     ```
       WP_Object_Cache::is_group_of_type()
       wp-content/object-cache.php:2391
       WP_Object_Cache::is_global_group()
       wp-content/object-cache.php:2358
       WP_Object_Cache::fast_build_key()
       wp-content/object-cache.php:1741
       WP_Object_Cache::get()
       wp-content/object-cache.php:156
       wp_cache_get()
       wp-content/mu-plugins/plf-filter.php:789
       ```
   
 * Deactivating this plugin fixes the issues, but I still need a way to disable 
   plugins not being used across the site.
    -  This topic was modified 3 years, 7 months ago by [Erix Kivuti](https://wordpress.org/support/users/elzix/).
    -  This topic was modified 3 years, 7 months ago by [Erix Kivuti](https://wordpress.org/support/users/elzix/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Erix Kivuti](https://wordpress.org/support/users/elzix/)
 * (@elzix)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/plugin-causes-maximum-function-nesting-level-error/#post-16051801)
 * Hmm.. Flushing the cache after increasing the nesting level seems to have fixed
   the issue..
 * Alas.. Spoke too soon..
    -  This reply was modified 3 years, 7 months ago by [Erix Kivuti](https://wordpress.org/support/users/elzix/).
 *  Thread Starter [Erix Kivuti](https://wordpress.org/support/users/elzix/)
 * (@elzix)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/plugin-causes-maximum-function-nesting-level-error/#post-16051808)
 * Alas.. Spoke too soon..

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin causes ‘Maximum function nesting level’ error’ is closed to new
replies.

 * ![](https://ps.w.org/plugin-load-filter/assets/icon-256x256.png?rev=1202972)
 * [Plugin Load Filter](https://wordpress.org/plugins/plugin-load-filter/)
 * [Support Threads](https://wordpress.org/support/plugin/plugin-load-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/plugin-load-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/plugin-load-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/plugin-load-filter/reviews/)

## Tags

 * [object-cache](https://wordpress.org/support/topic-tag/object-cache/)

 * 3 replies
 * 1 participant
 * Last reply from: [Erix Kivuti](https://wordpress.org/support/users/elzix/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/plugin-causes-maximum-function-nesting-level-error/#post-16051808)
 * Status: not resolved