• Resolved pidasek29

    (@pidasek29)


    Hello,
    I have a fresh WP install with multisite enabled and there are 2 sites in total. In the main site’s administration there are no warnings.
    Bellow you see 5 PHP warnings that show in administration of the second site. I have already run the setup wizard again (which was possible only from the main site).

    Warning: Trying to access array offset on value of type bool in /data/web/virtuals/66275/virtual/www/wp-content/plugins/bulletproof-security/admin/includes/admin.php on line 408

    Warning: Trying to access array offset on value of type bool in /data/web/virtuals/66275/virtual/www/wp-content/plugins/bulletproof-security/admin/includes/admin.php on line 414

    Warning: Cannot modify header information – headers already sent by (output started at /data/web/virtuals/66275/virtual/www/wp-content/plugins/bulletproof-security/admin/includes/admin.php:408) in /data/web/virtuals/66275/virtual/www/wp-includes/functions.php on line 6712

    Warning: Cannot modify header information – headers already sent by (output started at /data/web/virtuals/66275/virtual/www/wp-content/plugins/bulletproof-security/admin/includes/admin.php:408) in /data/web/virtuals/66275/virtual/www/wp-admin/includes/misc.php on line 1310

    Warning: Cannot modify header information – headers already sent by (output started at /data/web/virtuals/66275/virtual/www/wp-content/plugins/bulletproof-security/admin/includes/admin.php:408) in /data/web/virtuals/66275/virtual/www/wp-admin/admin-header.php on line 9

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter pidasek29

    (@pidasek29)

    BPS version: 5.5
    PHP version: 8.0
    WP version: 5.8.2
    I have activated the plugin from the main site and not from the network admin.

    Plugin Author AITpro

    (@aitpro)

    Oops yeah the cause of the php errors is missing isset() conditions. This will be fixed in the next BPS version release.

    To manually fix this now do these steps:
    The missing isset() conditions have been added in the code below.
    Copy this modified/fixed code into the /bulletproof-security/admin/includes/admin.php file at code lines: 405-416 and overwrite the existing code.

    	// Do not display the Maintenance Mode menu for GDMW hosted sites
    	$BPS_wpadmin_Options = get_option('bulletproof_security_options_htaccess_res');
    	$GDMW_options = get_option('bulletproof_security_options_GDMW');
    	if ( isset($BPS_wpadmin_Options['bps_wpadmin_restriction']) && $BPS_wpadmin_Options['bps_wpadmin_restriction'] != 'disabled' || isset($GDMW_options['bps_gdmw_hosting']) && $GDMW_options['bps_gdmw_hosting'] != 'yes' ) {		
    	add_submenu_page('bulletproof-security/admin/login/login.php', __('Maintenance Mode', 'bulletproof-security'), __('Maintenance Mode', 'bulletproof-security'), 'manage_options', 'bulletproof-security/admin/maintenance/maintenance.php' );
    	}
    	
    	// 3.2: Setup Wizard Option: Multisite Hide|Display System Info Page for Subsites
    	$Mu_Sysinfo_page_options = get_option('bulletproof_security_options_mu_sysinfo');
    	if ( isset($Mu_Sysinfo_page_options['bps_sysinfo_hide_display']) && $Mu_Sysinfo_page_options['bps_sysinfo_hide_display'] != 'hide' ) {		
    	add_submenu_page('bulletproof-security/admin/login/login.php', __('System Info', 'bulletproof-security'), __('System Info', 'bulletproof-security'), 'manage_options', 'bulletproof-security/admin/system-info/system-info.php' );
    	}
    Plugin Author AITpro

    (@aitpro)

    Assuming all questions have been answered – the thread has been resolved. If the issue/problem is not resolved or you have additional questions about this specific thread topic then you can post them at any time. We still receive email notifications when threads have been resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multisite warnings in administration’ is closed to new replies.