: preg_match(): Unknown modifier in 403.php on line 159

Home Forums BulletProof Security Pro : preg_match(): Unknown modifier in 403.php on line 159

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #41676
    AITpro Admin
    Keymaster

    Email Question:

    Hello!
    Hope you are well!

    I am getting a PHP error in the logs which seems related to BPS plugin:

    [18-Mar-2022 19:22:50 UTC] PHP Warning: preg_match(): Unknown modifier '5' in /home/xxxxx/public_html/wp-content/plugins/bulletproof-security/403.php on line 159
    #41677
    AITpro Admin
    Keymaster

    Answer|Solution:

    The line of code in the 403.php logging file deals with Security Log user agents that you have chosen to ignore. Most likely what has happened is that a user agent that you added in the “Add User Agents|Bots to Ignore|Not Log” option setting on the Security Log page has a: / or ( or ) code character in the user agent name.  User agents should not include any code characters.

    Go to the BPS Pro Logs|Info menu > Security Log page
    Click the Remove|Allow button, which will display all user agents that you have chosen to ignore.
    Delete/Remove any user agents that contain any code characters.
    Click the Remove button to delete any user agents that contain code characters.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.