• Resolved mbrailer

    (@mbrailer)


    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 1 year, 5 months ago by mbrailer.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ricard Torres

    (@quicoto)

    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

    (@quicoto)

    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

    Thank you

    sipxstream

    (@sipxstream)

    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

    (@quicoto)

    Thank you @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.