• Resolved cleewp

    (@cleewp)


    When activating this plugin, I get the following warning across all admin pages.

    I am using the latest version (3.0.8)

    Unfortunately, I can’t seem to backtrace which filter is throwing the warning, but I do know it is coming from Member plugin (as deactivating it makes the issue go away).

    The error reads as following, and basically appears on any Admin page:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /app/wp-includes/class-wp-hook.php on line 289

    Thanks for any help. Please let me know if I can troubleshoot any more.

    • This topic was modified 4 years, 10 months ago by cleewp.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cleewp

    (@cleewp)

    So after a deeper dive, I found the issue was coming from the Members ACF Integration plugin.

    If possible I would suggest you update the adminMenuBump function at Line 158 of members/addons/members-acf-integration/src/Plugin.php
    to the following:

    public function adminMenuBump() {
    		if ( ! acf_get_setting( 'show_admin' ) ) {
    			return;
    		}
    		if(isset(acf()->admin)){
    		remove_action( 'admin_menu', [ acf()->admin, 'admin_menu' ]    );
    		add_action( 'admin_menu',    [ acf()->admin, 'admin_menu' ], 8 );
    		}
    	}
    • This reply was modified 4 years, 10 months ago by cleewp.

    Thank you cleewp!! This was instrumental in me tracking down the error. I ended up just disabling that integration plugin. Hopefully it will be resolved in a future update!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning appearing’ is closed to new replies.