[resolved] Ratings stopped working... (7 posts)

  1. jpanizzoli
    Posted 2 years ago #

    Not sure when or why this plugin stopped working, but I recently updated WordPress and many of the other plugins. I'm really not sure if this is what caused the problem, or if it occurred for another reason prior to this update.

    All the ratings are showing up, but when you place the cursor over the stars it won't let you select a rating. Here's a sample page:


    Any idea what's going on here???


  2. Lester Chan
    Plugin Author

    Posted 2 years ago #

    It seems your theme doesn't have <?php wp_footer(); ?> in your theme footer.php http://codex.wordpress.org/Function_Reference/wp_footer

    I have no idea why it will work in the first place.

  3. Julian Magnone
    Posted 2 years ago #

    Hi Lester, I am facing the same trouble. I just discovered that since July 30, 2013 (that's where I had the last vote) the ratings in my site stopped working (people can't vote).

    I tried to debug the AJAX call to wp-postratings.php and even if it is called from the view, there is no response.

    I am using WordPress 3.6 (I have wp_head and wp_footer in my theme).

    Was there any recent change or incompatibility? Or where can I start looking for a solution?

  4. Lester Chan
    Plugin Author

    Posted 2 years ago #

    I don't think so it is compatibility issue, it works fine on both my test and production site on 3.6

    What is your site URL?

  5. Julian Magnone
    Posted 2 years ago #

    Hi Lester, thank you for your response.

    Here is an example or URL:


    If you click the rating below the description you will see that there is no effect (I didn't see any output coming after the Ajax call). I will appreciate your comments. Thanks.

  6. Lester Chan
    Plugin Author

    Posted 2 years ago #

    Hmm, your page is very weird.

    1. The postratings.js file should be at the bottom and not suppose to be at the top. Did you do something to it?
    2. Also at the footer there is missing javascript variables for postratings which is related to 1.
    3. Please try on the default theme to see if it works first. I got a feeling it has nothing to do with the plugin.

  7. Julian Magnone
    Posted 2 years ago #

    Hi Lester.

    Thanks for your response. The problem was related to the jQuery dependency. I noticed some js files in my theme were deregistered and and instead my theme was loading the jQuery and postrating JS files manually, which is discouraged. What was worked fine for long time got broken in a recent upgrade.

    Any way, what I did to fix it was letting WordPress load the jQuery stuff and this time wp-postratings was able to insert the js reference in the footer.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.