Title: PHP warning call_user_func_array()
Last modified: October 1, 2021

---

# PHP warning call_user_func_array()

 *  Resolved [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-7/)
 * Hello,
 * I’m getting those warnings once a day since yesterday at only 1 website out of
   over 50 where this plugin is installed:
 * > Warning: call_user_func_array() expects parameter 1 to be a valid callback,
   > function ‘**disable_gutenberg_reset_options**‘ not found or invalid function
   > name in /wp-includes/class-wp-hook.php on line 303
   > Warning: call_user_func_array() expects parameter 1 to be a valid callback,
   > function ‘**disable_gutenberg_register_settings**‘ not found or invalid function
   > name in /wp-includes/class-wp-hook.php on line 303
 * Any clues?
    Thanks.
    -  This topic was modified 4 years, 8 months ago by [John](https://wordpress.org/support/users/dsl225/).

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

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-7/#post-14926980)
 * Yeah something is off, usually there are no such warnings. The only sure-fire
   way of determining the cause of the issue is to do a bit of troubleshooting. 
   I can provide a guide if it will be useful for you.
 * Also before troubleshooting, you might want to try simply deleting and reinstalling
   the plugin from scratch. The warnings you mention seem indicate that some core
   plugin files/functions are missing.
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-7/#post-14928709)
 * Thanks Jeff,
 * I start by downloading and uploading your files from here to the installation
   and see whether the warnings re-appear tomorrow.
 * Will get back here to update you.
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-7/#post-14933763)
 * Doesn’t seem to work.
 * I first re-downloaded/uploaded the package and as nothing changed I deleted and
   re-installed but still getting the same error once/day.
 * What else can we do?
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-7/#post-14933869)
 * As with all things on the Web, the only sure way to diagnose any issue is to 
   do some basic [troubleshooting](https://digwp.com/2020/09/troubleshoot-wordpress-guide/).
   That linked article explains two ways of going about it, definitely recommended
   skills for anyone planning on working online. After going thru the steps of either
   method, you should have a clear idea of what’s causing the issue. If it were 
   me, given the scenario you describe, I would go with the “ground-up” method probably
   would be easiest/fastest.
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-7/#post-14934610)
 * Thanks for this but it’s not worth the time for performing such sort of investigations,
   sorry.
 * I’ll leave it as is for some time to see if there is any change, otherwise I’ll
   have to remove it and just replace it with the standard 2 Classic plugins.
 * Thanks again!
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-7/#post-14936393)
 * Totally understand, cheers John.
 *  [Aharon](https://wordpress.org/support/users/spaceling/)
 * (@spaceling)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-7/#post-15097508)
 * I can only add to this support topic the following warning I am receiving in 
   my error_log:
 * > PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback,
   > function ‘disable_gutenberg_menu_pages’ not found or invalid function name 
   > in /…/wp-includes/class-wp-hook.php on line 303
 * The only difference here from the error John reported is the specific function
   that is not found. For me it’s with the disable_gutenberg_menu_pages function.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-7/#post-15097529)
 * [@spaceling](https://wordpress.org/support/users/spaceling/) I am glad to investigate
   and try resolve any issue. Just need to be able to recreate the warning on default
   WordPress site. So far, I’ve not been able to do it. If you have the steps, I’ll
   check it out asap.
 *  [Aharon](https://wordpress.org/support/users/spaceling/)
 * (@spaceling)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-7/#post-15097572)
 * Yes, I should have provided more details:
 * WP Version: 5.8.2
    PHP Version: 7.4.25 Database Version: 5.7.36 Disable Gutenberg:
   2.5.1
 * Do you think it could be a conflict brought about with my theme? (That’s Atahualpa
   version 3.7.26. It’s EOL with a minor update from last year.)
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-7/#post-15097592)
 * Thanks. Yes, it may be a theme- or plugin-related issue, especially if the theme
   adds/removes any post-editing functionality. The quickest way to find out is 
   to troubleshoot the theme and plugins. I would be glad to provide a guide if 
   it will be useful for you.
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-7/#post-15097809)
 * In my case, this was happening with the Generatepress theme but I have a dozen
   other sites with the same theme but no error.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-7/#post-15097814)
 * Understood. Likely there is some other factor involved, perhaps another plugin
   or config is clashing somewhere.
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-7/#post-15097867)
 * I just checked to see which plugins this site is using that are not installed
   anywhere else where Disable Gutenberg is running and I found those 2 for what
   is worth:
 * – Visualizer: Tables and Charts for WordPress
    – Category Posts Widget
 * [@spaceling](https://wordpress.org/support/users/spaceling/) : are you using 
   any of those?
 *  [Aharon](https://wordpress.org/support/users/spaceling/)
 * (@spaceling)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-7/#post-15097899)
 * Neither

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

The topic ‘PHP warning call_user_func_array()’ is closed to new replies.

 * ![](https://ps.w.org/disable-gutenberg/assets/icon-256x256.png?rev=1925990)
 * [Disable Gutenberg](https://wordpress.org/plugins/disable-gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/disable-gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/disable-gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/disable-gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disable-gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disable-gutenberg/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 14 replies
 * 3 participants
 * Last reply from: [Aharon](https://wordpress.org/support/users/spaceling/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/php-warning-call_user_func_array-7/#post-15097899)
 * Status: resolved