Title: Doesn&#8217;t work on PHP 8
Last modified: June 17, 2023

---

# Doesn’t work on PHP 8

 *  Resolved [mbrailer](https://wordpress.org/support/users/mbrailer/)
 * (@mbrailer)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/doesnt-work-on-php-8/)
 * I recently upgraded my site from PHP 7 to PHP 8, and Thumbs Rating stopped recording
   votes or displaying vote counts.
 * In an earlier thread on this topic, it was suggested that cache software might
   interfere with Thumbs Rating, so I disabled WP Super Cache and retested, with
   the same result: When I use PHP 7.x, Thumbs Rating works properly, but with PHP
   8.x, it doesn’t record votes.
 * I’m currently running the site on PHP 7.4, but since 7.4 is deprecated I’d like
   to upgrade to PHP 8 as soon as this issue can be resolved.
    -  This topic was modified 2 years, 11 months ago by [mbrailer](https://wordpress.org/support/users/mbrailer/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdoesnt-work-on-php-8%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Ricard Torres](https://wordpress.org/support/users/quicoto/)
 * (@quicoto)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/doesnt-work-on-php-8/#post-16828982)
 * Hello
 * Do you get any specific error in the browser console or the apache/nginx logs?
 * To be honest have not made any changes to this in a long time. I’ll see if I 
   can find a slot to try locally.
 *  Plugin Author [Ricard Torres](https://wordpress.org/support/users/quicoto/)
 * (@quicoto)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/doesnt-work-on-php-8/#post-16835769)
 * Hi there,
 * It turns out WordPress only has, at this moment, beta support for PHP8
   With that
   said, I’d encourage you to downgrade to PHP7 and wait until it’s fully supported
 * More on this:
 * > [Proposal: Criteria for Removing “Beta Support” from Each PHP 8+ Version](https://make.wordpress.org/core/2023/06/20/proposal-criteria-for-removing-beta-support-from-each-php-8-version/)
 * Thank you
 *  [sipxstream](https://wordpress.org/support/users/sipxstream/)
 * (@sipxstream)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/doesnt-work-on-php-8/#post-17177977)
 * I think I know why:
   On line 88 of thumbs-rating.php, the variable $post_ID is
   converted into an integer, so I believe the line, `if( $post_ID == '' ) $post_ID
   = get_the_ID();` should now be `if( ! $post_ID ) $post_ID = get_the_ID();` I’ve
   tested it and it works for me. Hope this helps. 😁
 *  Plugin Author [Ricard Torres](https://wordpress.org/support/users/quicoto/)
 * (@quicoto)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/doesnt-work-on-php-8/#post-17182433)
 * Thank you [@sipxstream](https://wordpress.org/support/users/sipxstream/) I have
   updated the codebase with this change and hopefully make it PHP 8.0 compatible.
 * You may update to the plugin version 5.0.0
 * Thank you!

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

The topic ‘Doesn’t work on PHP 8’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/thumbs-rating_d1a77d.svg)
 * [Thumbs Rating](https://wordpress.org/plugins/thumbs-rating/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/thumbs-rating/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/thumbs-rating/)
 * [Active Topics](https://wordpress.org/support/plugin/thumbs-rating/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/thumbs-rating/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/thumbs-rating/reviews/)

## Tags

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

 * 4 replies
 * 3 participants
 * Last reply from: [Ricard Torres](https://wordpress.org/support/users/quicoto/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/doesnt-work-on-php-8/#post-17182433)
 * Status: resolved