Title: PHP Warning With Plugin
Last modified: December 12, 2017

---

# PHP Warning With Plugin

 *  [poddys](https://wordpress.org/support/users/poddys/)
 * (@poddys)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/php-warning-with-plugin/)
 * 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)

 *  [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * (@mattyrob)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/php-warning-with-plugin/#post-9775181)
 * [@poddys](https://wordpress.org/support/users/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 );`
 *  [mechanicjay](https://wordpress.org/support/users/mechanicjay/)
 * (@mechanicjay)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/php-warning-with-plugin/#post-9800982)
 * 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.

 * ![](https://ps.w.org/subscribe2/assets/icon-256x256.png?rev=2318630)
 * [Subscribe2 - Form, Email Subscribers & Newsletters](https://wordpress.org/plugins/subscribe2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/subscribe2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/subscribe2/)
 * [Active Topics](https://wordpress.org/support/plugin/subscribe2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/subscribe2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/subscribe2/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 2 replies
 * 3 participants
 * Last reply from: [mechanicjay](https://wordpress.org/support/users/mechanicjay/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/php-warning-with-plugin/#post-9800982)
 * Status: not resolved