• I use the BulletProofSecurity Pro plugin to help protect my site, and one of the things it does is to log PHP warnings and errors.
    It’s logging the following for subscribe2:

    PHP Warning: preg_replace(): Unknown modifier ‘p’ in /home/MYSITE/wp-content/plugins/subscribe2/classes/class-s2-frontend.php on line 225

    Looks like this is maybe a coding error in the plugin rather than with my site.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @poddys

    That line has been like that for years yet you are the second person to raise this issue in the last 3 weeks or so, there is a typo in that line, it should be:

    return preg_replace( '/(<p>)?(\n)*<!--subscribe2-->(\n)*(<\/p>)?/', do_shortcode( '[subscribe2]' ), $content );

    Just hit this myself. Plug in had been working for years, we just noticed it wasn’t working today.

    The above edit fixed it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Warning With Plugin’ is closed to new replies.