Title: Incorrect last star
Last modified: December 20, 2018

---

# Incorrect last star

 *  Resolved [Geleosan](https://wordpress.org/support/users/geleosan/)
 * (@geleosan)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/incorrect-last-star/)
 * Hi. After last update I have a problem with last star in rating.
 * If post have rating 4.3-4.9 last star must be use file “rating_half.gif”.
    But
   now last star use file “rating_off.gif”.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/incorrect-last-star/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/incorrect-last-star/page/2/?output_format=md)

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/incorrect-last-star/#post-11014885)
 * Hmm I can’t reproduce this problem though
 * This is 4.6: [https://lesterchan.net/wordpress_dev/2018/11/27/poll-id-17/](https://lesterchan.net/wordpress_dev/2018/11/27/poll-id-17/)
 * This is 4.3: [https://lesterchan.net/wordpress_dev/2018/11/27/poll-id-16/](https://lesterchan.net/wordpress_dev/2018/11/27/poll-id-16/)
 * This is 4.9: [https://lesterchan.net/wordpress_dev/2018/10/16/poll-id-15/](https://lesterchan.net/wordpress_dev/2018/10/16/poll-id-15/)
    -  This reply was modified 7 years, 5 months ago by [Lester Chan](https://wordpress.org/support/users/gamerz/).
 *  Thread Starter [Geleosan](https://wordpress.org/support/users/geleosan/)
 * (@geleosan)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/incorrect-last-star/#post-11016125)
 * Version plugin 1.84.1. [http://take.ms/tC58U](http://take.ms/tC58U)
    Version 
   plugin 1.86.1. [http://take.ms/ussYa](http://take.ms/ussYa)
 * Wordpress is 4.9.9
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/incorrect-last-star/#post-11020720)
 * I am using WordPress 5.0.2, though the version of WP should not matter. Since
   I can’t reproduce it, I will wait to see if there are more ppl facing the same
   problem.
 *  [Angelos Kyritsis](https://wordpress.org/support/users/angelos-kyritsis/)
 * (@angelos-kyritsis)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/incorrect-last-star/#post-11021083)
 * I have the same problem too, in WordPress 4.9.9.
 * [https://drive.google.com/file/d/1mcJQ0iRtv4fLBfCjs2nYCt_Wq1AbLSqM/view](https://drive.google.com/file/d/1mcJQ0iRtv4fLBfCjs2nYCt_Wq1AbLSqM/view)
 * Here is the post where I tried it
 * [https://www.pcsteps.gr/57819-%CE%B3%CE%B5%CE%BC%CE%AF%CE%B6%CE%B5%CE%B9-%CE%BF-%CE%B4%CE%AF%CF%83%CE%BA%CE%BF%CF%82-%CF%80%CE%B9%CE%B8%CE%B1%CE%BD%CE%BF%CE%AF-%CE%AD%CE%BD%CE%BF%CF%87%CE%BF%CE%B9/](https://www.pcsteps.gr/57819-%CE%B3%CE%B5%CE%BC%CE%AF%CE%B6%CE%B5%CE%B9-%CE%BF-%CE%B4%CE%AF%CF%83%CE%BA%CE%BF%CF%82-%CF%80%CE%B9%CE%B8%CE%B1%CE%BD%CE%BF%CE%AF-%CE%AD%CE%BD%CE%BF%CF%87%CE%BF%CE%B9/)
 * However, I am having the same problem on one of my other sites with WordPress
   5.0.2
 * [https://www.pcsteps.com/630-create-a-windows-installation-disc-or-usb/](https://www.pcsteps.com/630-create-a-windows-installation-disc-or-usb/)
    -  This reply was modified 7 years, 5 months ago by [Angelos Kyritsis](https://wordpress.org/support/users/angelos-kyritsis/).
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/incorrect-last-star/#post-11022659)
 * [@angelos-kyritsis](https://wordpress.org/support/users/angelos-kyritsis/) Weird,
   I copied the stats of [https://www.pcsteps.com/630-create-a-windows-installation-disc-or-usb/](https://www.pcsteps.com/630-create-a-windows-installation-disc-or-usb/)
   to
    [https://lesterchan.net/wordpress_dev/2018/11/27/poll-id-17/](https://lesterchan.net/wordpress_dev/2018/11/27/poll-id-17/)
 * It is fine.
    -  This reply was modified 7 years, 5 months ago by [Lester Chan](https://wordpress.org/support/users/gamerz/).
 *  [Angelos Kyritsis](https://wordpress.org/support/users/angelos-kyritsis/)
 * (@angelos-kyritsis)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/incorrect-last-star/#post-11022860)
 * Well, maybe there is a problem with the Genesis Framework? Because I also have
   the problem in a smaller site [https://www.websloth.gr/1114-%CE%BD%CE%AD%CE%B5%CF%82-%CE%B5%CE%BE%CE%B5%CE%BB%CE%AF%CE%BE%CE%B5%CE%B9%CF%82-%CF%83%CF%84%CE%B7%CE%BD-%CE%BF%CE%B9%CE%BA%CE%AF%CE%B1-%CF%84%CE%BF%CF%85-%CE%B8%CE%B5%CE%BF%CF%8D/](https://www.websloth.gr/1114-%CE%BD%CE%AD%CE%B5%CF%82-%CE%B5%CE%BE%CE%B5%CE%BB%CE%AF%CE%BE%CE%B5%CE%B9%CF%82-%CF%83%CF%84%CE%B7%CE%BD-%CE%BF%CE%B9%CE%BA%CE%AF%CE%B1-%CF%84%CE%BF%CF%85-%CE%B8%CE%B5%CE%BF%CF%8D/)
   and I have disabled every other plugin, to no avail. The only thing in common
   is the Genesis Framework and the child theme.
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/incorrect-last-star/#post-11022877)
 * The thing is I don’t see how a theme or WP or other plugins is affecting this
   since the stats are calculated on the PostRatings side.
 * Are you able to set up a fresh install of WP with just WP-PostRatings on the 
   same server may be in another folder to see if the issues persist?
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/incorrect-last-star/#post-11022896)
 * The other thing I am thinking of is caching. On my dev/test site, they are no
   caching plugins.
 *  [Angelos Kyritsis](https://wordpress.org/support/users/angelos-kyritsis/)
 * (@angelos-kyritsis)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/incorrect-last-star/#post-11022923)
 * PCsteps.gr and Websloth.gr are on the same server, PCsteps.com is in a separate
   server. Also, on Websloth.gr I disabled all caching, and it didn’t make a difference.
 * Can you provide a copy of the previous version, and point out the changes in 
   the code? I can run some tests to see which of the changes is breaking the latest
   version.
 *  [Angelos Kyritsis](https://wordpress.org/support/users/angelos-kyritsis/)
 * (@angelos-kyritsis)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/incorrect-last-star/#post-11022929)
 * I even changed temporarily Websloth.gr to the 2019 WordPress theme, and I am 
   still getting the same error.
 * > [View post on imgur.com](https://imgur.com/VpU2RBq)
 *  [Sho-Down](https://wordpress.org/support/users/sho-down/)
 * (@sho-down)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/incorrect-last-star/#post-11025774)
 * Same issue here. On my test site which is a mirror of my live site, the rating
   of a post is 3.25 but it shows 3 full stars. On my live site, that exact same
   post with a rating of 3.25 shows 3 and a half stars. No caching on either site
   and I’m on the latest WordPress.
 * Checking all my posts on my test site and it seems the latest update is not showing
   any half star images.
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/incorrect-last-star/#post-11026178)
 * Just wondering what PHP version are you all using?
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/incorrect-last-star/#post-11026181)
 * [@angelos-kyritsis](https://wordpress.org/support/users/angelos-kyritsis/) Here
   u go [https://plugins.trac.wordpress.org/changeset?new=1999547@wp-postratings/tags/1.86.1&old=1771179@wp-postratings/tags/1.85](https://plugins.trac.wordpress.org/changeset?new=1999547@wp-postratings/tags/1.86.1&old=1771179@wp-postratings/tags/1.85)
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/incorrect-last-star/#post-11026184)
 * [@angelos-kyritsis](https://wordpress.org/support/users/angelos-kyritsis/) Checking
   for 1/2 stars [https://github.com/lesterchan/wp-postratings/blob/master/wp-postratings.php#L1122-L1129](https://github.com/lesterchan/wp-postratings/blob/master/wp-postratings.php#L1122-L1129)
 * Thanks for your help!
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/incorrect-last-star/#post-11026204)
 * I finally found the problem. It is a double vs int. I am moving towards more 
   of a strict check
 * This is the commit that should fix it [https://github.com/lesterchan/wp-postratings/commit/6a81f08aa4348e45d48126cfb66fe61f49aa2a0f](https://github.com/lesterchan/wp-postratings/commit/6a81f08aa4348e45d48126cfb66fe61f49aa2a0f)
 * For the less technical, just replace wp-postratings.php with the contents of 
   [https://raw.githubusercontent.com/lesterchan/wp-postratings/master/wp-postratings.php](https://raw.githubusercontent.com/lesterchan/wp-postratings/master/wp-postratings.php).
 * Once you guys have verified, I will push an update.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/incorrect-last-star/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/incorrect-last-star/page/2/?output_format=md)

The topic ‘Incorrect last star’ is closed to new replies.

 * ![](https://ps.w.org/wp-postratings/assets/icon.svg?rev=978014)
 * [WP-PostRatings](https://wordpress.org/plugins/wp-postratings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-postratings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-postratings/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-postratings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-postratings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-postratings/reviews/)

 * 18 replies
 * 4 participants
 * Last reply from: [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/incorrect-last-star/page/2/#post-11026644)
 * Status: resolved