Title: Plugin stopped working on PHP8
Last modified: October 12, 2022

---

# Plugin stopped working on PHP8

 *  Resolved [nicisme](https://wordpress.org/support/users/nicisme/)
 * (@nicisme)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-php8/)
 * My hosting has forced an update to PHP8 and as a result, the post notification
   cron job has stopped working.
 * Does anybody have any solutions to this?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [bret.miller](https://wordpress.org/support/users/bretmiller/)
 * (@bretmiller)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-php8/#post-16095939)
 * I reported the error already, but here’s the fix:
 * in `wp-content/plugins/email-posts-to-subscribers/query/dbquery-notification.
   php`
 * change
 * `if( count($post) == 0 ) {`
 * to
 * `if( $post ) {`
 *  Thread Starter [nicisme](https://wordpress.org/support/users/nicisme/)
 * (@nicisme)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-php8/#post-16116962)
 * Thanks for the response!
 * Unfortunately, this didn’t work for me. I even downgraded back to PHP7.4 and 
   the fix still didn’t send off the post notifications.
 *  [bret.miller](https://wordpress.org/support/users/bretmiller/)
 * (@bretmiller)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-php8/#post-16118221)
 * Indeed. While this stopped the plugin from producing errors, it’s not sending
   out post notifications anymore. No idea if gopiplus will fix this anytime soon.
   I have just been manually sending them when I know one should happen. It’s frustrating.
 *  Thread Starter [nicisme](https://wordpress.org/support/users/nicisme/)
 * (@nicisme)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-php8/#post-16118339)
 * Ah okay. Thanks for the help! Hope they respond soon.
 *  Plugin Author [gopiplus](https://wordpress.org/support/users/gopiplus/)
 * (@gopiplus)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-php8/#post-16276965)
 * The code has been fixed. Please update to the latest version.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Plugin stopped working on PHP8’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/email-posts-to-subscribers_f5f9fd.
   svg)
 * [Email posts to subscribers](https://wordpress.org/plugins/email-posts-to-subscribers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-posts-to-subscribers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-posts-to-subscribers/)
 * [Active Topics](https://wordpress.org/support/plugin/email-posts-to-subscribers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-posts-to-subscribers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-posts-to-subscribers/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [gopiplus](https://wordpress.org/support/users/gopiplus/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/plugin-stopped-working-on-php8/#post-16276965)
 * Status: resolved