Undefined variable: matches in /bulletproof-security/includes/db-security.php on line 486

Home Forums BulletProof Security Pro Undefined variable: matches in /bulletproof-security/includes/db-security.php on line 486

This topic contains 1 reply, has 2 voices, and was last updated by  AITpro Admin 2 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #27911

    Michael Friedlander

    This same error is added to the PHP Error Log every time I do anything on the site:

    PHP Notice:  Undefined variable: matches in /home/xxxxx/public_html/wp-content/plugins/bulletproof-security/includes/db-security.php on line 486

    These are the lines from the file:
    485: // Prevents BackWPup coding mistake from displaying BPS Pro Dashboard alerts on the BackWPup Backups page
    486: if ( ! preg_match( ‘/page=backwpupbackups/’, esc_html( $_SERVER[‘QUERY_STRING’], $matches ) ) ) {

    I even went so far as to install BackWPup just to see if the error would stop, but the error continues with or without the BackWPup plugin.

    Yes, the suggestion to do troubleshooting is all fine and well, but the error occurs whether or not BackWPup is installed. The undefined variable is in your code, not someone else’s code.


    AITpro Admin

    This php error has been fixed in BPS Pro 11.6, which will be released very soon.  The php error is insignificant and is considered a nuisance error so just disregard the error since it does not impact anything negatively.  Also if you have WP_DEBUG turned on/set to true in your wp-config.php file then make sure you turn off/set to false WP_DEBUG in your wp-config.php file once you are done debugging things.  Leaving WP_DEBUG turned on permanently will cause website performance problems and other website problems.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.