PHP Notice: Trying to access array offset on value of type bool in firewall-autopilot.php on line 209

Home Forums BulletProof Security Pro PHP Notice: Trying to access array offset on value of type bool in firewall-autopilot.php on line 209

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39879
    Terry
    Participant

    I noticed the following error in the PHP log. Any thoughts.

    [18-Jan-2021 22:31:24 UTC] PHP Notice: Trying to access array offset on value of type bool in /home/ntorganix1/public_html/wp-content/plugins/bulletproof-security/includes/firewall-autopilot.php on line 310
    [18-Jan-2021 22:31:24 UTC] PHP Notice: Trying to access array offset on value of type bool in /home/ntorganix1/public_html/wp-content/plugins/bulletproof-security/includes/firewall-autopilot.php on line 209
    #39881
    AITpro Admin
    Keymaster

    These php errors are insignificant and can be ignored.  The variable (DB option value) is not set so an additional isset() condition is needed.  These php errors will be fixed in BPS Pro 15.2.  Note: Remember to turn Off WP Debugging when you are done debugging.

    Code Line: 209

    if ( $PFWTM_options['bps_pfw_test_mode'] == 'On' ) {
    return;
    }

    Code Line: 310

    if ( $PFWTM_options['bps_pfw_test_mode'] == 'On' ) {
    return;
    }

    Corrected Code:

    if ( isset($PFWTM_options['bps_pfw_test_mode']) && $PFWTM_options['bps_pfw_test_mode'] == 'On' ) {
    return;
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.