• Resolved patbell101

    (@patbell101)


    received this upon network activation. Is this mine or the plugin’s problem?

    Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /srv/users/serverpilot/apps/wordpress/public/wp-includes/functions.php on line 2599

    Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /srv/users/serverpilot/apps/wordpress/public/wp-includes/functions.php on line 2599

    Warning: include(/srv/users/serverpilot/apps/wordpress/public/wp-content/plugins/cptui_main_menu): failed to open stream: No such file or directory in /srv/users/serverpilot/apps/wordpress/public/wp-admin/admin.php on line 250

    Warning: include(): Failed opening ‘/srv/users/serverpilot/apps/wordpress/public/wp-content/plugins/cptui_main_menu’ for inclusion (include_path=’.:/opt/sp/php7.0/lib/php’) in /srv/users/serverpilot/apps/wordpress/public/wp-admin/admin.php on line 250

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not sure what’s going on there, almost feels like an incomplete install of the plugin, or something else.

    The only time we use “cptui_main_menu” is in the following spots, and that’s all just to set up the menu items. The numbers are the line where the code appears.

    custom-post-type-ui.php
    81:    	$query_args = array( 'page' => 'cptui_main_menu' );
    87:    			cptui_admin_url( 'admin.php?page=cptui_main_menu' )
    136:   	$parent_slug = 'cptui_main_menu';
    156:   	remove_submenu_page( $parent_slug, 'cptui_main_menu' );
    157:   	add_submenu_page( $parent_slug, __( 'About CPT UI', 'custom-post-type-ui' ), __( 'About CPT UI', 'custom-post-type-ui' ), 'manage_options', 'cptui_main_menu', 'cptui_settings' );
    
    inc/utility.php
    32:    		'<a href="' . admin_url( 'admin.php?page=cptui_main_menu' ) . '">' . __( 'About', 'custom-post-type-ui' ) . '</a>',
    97:    	if ( ! is_object( $screen ) || 'cptui_main_menu' !== $screen->parent_base ) {
    

    Based on the errors you provided, it’s like your install is trying to load cptui_main_menu as a file.

    Thread Starter patbell101

    (@patbell101)

    Its still seems to work though so no harm done, I guess

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    If more people start reporting issues like this, I’ll definitely look into it closer, but I can’t say I’ve ever seen this one before. Going to mark as resolved for the time being.

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

The topic ‘bad activation’ is closed to new replies.