Support » Plugin: Blackhole for Bad Bots » Warning: preg_match(): Unknown modifier ‘P’

  • Resolved panchorigail

    (@panchorigail)


    Hi. I have this error message, displayed at the top of my page:

    Warning: preg_match(): Unknown modifier ‘P’ in home/…/public_html/wp-content/plugins/blackhole-pro/inc/blackhole-helpers.php on line 131.

    I entered the file, and this is the line:
    if (!empty($whitelist_bots) && preg_match(“/(“. $whitelist_bots .”)/i”, $user_agent, $matches)) {
    return true;
    }

    Hi had to deactivate the plugin temporarily.
    Any solution please advise. Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Huh, weird but thanks for reporting. I’m not able to get this error on default WP running with default plugin settings. Can you provide steps to recreate the issue on default WP so I can investigate?

    These were my steps:

    I tried to activate the pro plugin, with the free version activated. A message was shown, to deactivate the free, and then activate the pro.
    I deleted the free version. Don’t know if this influenced somehow.

    Since I activated the pro plugin, I got the error message on top of the page. When deactivated, it disappears.

    This is my config:
    https://we.tl/t-Mid6aahdKW

    Plugin Author Jeff Starr

    (@specialk)

    Thanks for infos. The forum rules here at WordPress.org prohibit any discussion of pro plugins (it’s for free versions only), so to continue please contact via the form at Plugin Planet. Include a link to this thread for reference would be useful. Thank you @panchorigail.

    Plugin Author Jeff Starr

    (@specialk)

    Hi @panchorigail, just to let you know I responded to your email. Please check your spam folder if you don’t see it.

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