PHP Notice: Undefined property when activated on Network
-
Hello and seasons greetings,
We have been using the extremely useful plugin (now on v.4.7.0) for ages on single WordPress installations with no issues.
We currently tried activating it on a multisite/network and get:
PHP Notice: Undefined property: stdClass::$tested in /wp-content/plugins/better-plugin-compatibility-control/better-plugin-compatibility-control.php on line 199
We tried both network activation as well as only to our main site (ID:1) with the exact same warning. On top of that, the admin pages started loading very slowly.
We do have a couple more plugins activated but they do not seem to be involved or justify the behaviour.This is line 199:
add_filter('network_admin_plugin_action_links', array(&$this, 'bpcc_pluginversioninfo'), 10, 2);
Which actually is part of the following piece:
function bpcc_init() { global $pagenow; if ( !function_exists("add_action") ) return; if((defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE || defined('MULTISITE') && MULTISITE) && function_exists('is_network_admin') && is_network_admin()) { add_filter('network_admin_plugin_action_links', array(&$this, 'bpcc_pluginversioninfo'), 10, 2); if( current_user_can( 'manage_network_plugins' ) ) { add_filter('plugin_action_links', array(&$this, 'bpcc_pluginversioninfo'), 10, 2); } } else { if( current_user_can( 'install_plugins' ) ) { add_filter('plugin_action_links', array(&$this, 'bpcc_pluginversioninfo'), 10, 2); } } if( $pagenow == 'plugins.php' ) { add_action('admin_head', array(&$this, 'bpcc_css_admin_header')); } }
EDIT:
After closer look we noticed that the warning is produced when visiting the “Inactive” or “All” plugins screens. There is no warning present under “Active” “Recently Activated” or “Must Use” plugins.
Could you please look into it?
Thank you in advance
- The topic ‘PHP Notice: Undefined property when activated on Network’ is closed to new replies.