• Resolved marikamitsos

    (@marikamitsos)


    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

    • This topic was modified 7 years, 11 months ago by marikamitsos.
    • This topic was modified 7 years, 11 months ago by marikamitsos.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpseek

    (@alphawolf)

    Hi marikamitsos,

    sorry for the late reply, but holidays and family were keeping me busy. ??

    I think the issue is the plugins_api() part of my plugin which tries to fetch plugin information data from www.ads-software.com

    I just released a plugin update which hopefully fixes the issue. If it’s not, would you please provide a list of plugins (and their versions) you have installed? Thank you!

    • This reply was modified 7 years, 11 months ago by wpseek.
    Thread Starter marikamitsos

    (@marikamitsos)

    ….holidays and family were keeping me busy.

    Don’t even mention it. Please do not miss the best times of the year to be with family. Really.

    Still. On our behalf, I have to -unfortunately- let you know that even after updating to the latest release (version 4.7.0.1), we still get the same PHP notice:

    PHP Notice: Undefined property: stdClass::$tested in /wp-content/plugins/better-plugin-compatibility-control/better-plugin-compatibility-control.php on line 200

    The thing changed is that it now appears to be on line 200 instead of 199.
    Whenever you find some time.

    Kind wishes to you and your family,
    marikamitsos

    EDIT: We only tried network activating it.

    • This reply was modified 7 years, 11 months ago by marikamitsos. Reason: clarification given
    Plugin Author wpseek

    (@alphawolf)

    Would you please provide a list of plugins (and their versions) you have installed? Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Notice: Undefined property when activated on Network’ is closed to new replies.