Title: Plugin generating errors under PHP 5.4
Last modified: August 21, 2016

---

# Plugin generating errors under PHP 5.4

 *  [Marcelo Pedra](https://wordpress.org/support/users/kent-brockman/)
 * (@kent-brockman)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/plugin-generating-errors-under-php-54/)
 * Hello, I just want to report that this plugin is generating a php error which
   slowdown sites using cache plugins.
 *     ```
       [16-Mar-2014 04:17:25 UTC] PHP Warning:  preg_match(): Empty regular expression in /home/accountttt/public_html/wp-content/plugins/pinterest-badge/pinterestbadgehelper.php on line 317
       [16-Mar-2014 04:17:25 UTC] PHP Warning:  preg_match(): Empty regular expression in /home/accountttt/public_html/wp-content/plugins/pinterest-badge/pinterestbadgehelper.php on line 332
       [16-Mar-2014 04:17:25 UTC] PHP Warning:  preg_match_all(): Empty regular expression in /home/accountttt/public_html/wp-content/plugins/pinterest-badge/pinterestbadgehelper.php on line 348
       ```
   
 * I think this behaviour begun with WP 3.8.
    I had to deactivate it because started
   generating long timeouts upon cache creation with W3 Total Cache and PHP 5.4.
   Please notice that your plugin used to behave very well. Now, in despite of timeouts,
   it still retrieved the images from Pinterest as expected. So, I don’t know why
   is this happenning. Can you check it out?
 * Thanks
 * [https://wordpress.org/plugins/pinterest-badge/](https://wordpress.org/plugins/pinterest-badge/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [skipser](https://wordpress.org/support/users/skipser/)
 * (@skipser)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/plugin-generating-errors-under-php-54/#post-4712290)
 * I don’t think this is a PHP issue. More of your server not able to perform post
   requests. If you still have this problem, please get back with a URL with the
   badge.

Viewing 1 replies (of 1 total)

The topic ‘Plugin generating errors under PHP 5.4’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pinterest-badge_c9cfd5.svg)
 * [Pinterest Badge](https://wordpress.org/plugins/pinterest-badge/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pinterest-badge/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pinterest-badge/)
 * [Active Topics](https://wordpress.org/support/plugin/pinterest-badge/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pinterest-badge/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pinterest-badge/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [skipser](https://wordpress.org/support/users/skipser/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/plugin-generating-errors-under-php-54/#post-4712290)
 * Status: not resolved