WordPress.org

Forums

kk Star Ratings
[resolved] An error occured (21 posts)

  1. Li-An
    Member
    Posted 1 year ago #

    On a test blog with Twenty Ten and no other plugin, I've got this message "An error occured" when clicking on the stars... Too bad.

    http://wordpress.org/extend/plugins/kk-star-ratings/

  2. jamk
    Member
    Posted 1 year ago #

    The same goes for me, when using Firefox. With Internet Exploter 8 or 9 it works fine and displays the votes so far after clicking the stars.

    The votes are saved anyways, even with the "An error occured" msg.

  3. jamk
    Member
    Posted 1 year ago #

    In addendum, I noticed that when this "An error occured" happens - the IP restriction doesn't seem to work. AKA the person can change their vote afterwards, but apparently can't vote multiple times which would be much worse.

    Can developer comment on this issue in any way?

  4. Kamal Khan
    Member
    Plugin Author

    Posted 1 year ago #

    May I know if this issue is on a specific browser or across all browsers?

    Thank you

  5. jamk
    Member
    Posted 1 year ago #

    After some debugging with Firebug - I tracked down that the problem was in the additional php file that the javascript calls in the Ajax functions: kk-ratings-ajax.php. This file is served (at least in my server) in ISO 8859-1 charset - instead of UTF-8. This probably happens because of the way it is called from a js file instead of normal browser request. If UTF-8 isn't forced in the server-side, the file is (at least in Firefox or some of it's versions) handled as ISO 8859-1. If ISO is embedded in UTF-8, it causes the output of the ISO-formatted file to start with few extra characters that seemed to mess up the javascript handling - causing the problems mentions above:
    SUCCESS|||54|||2.7/5(54%) 24 votes|||no
    instead of the error free version:
    SUCCESS|||54|||2.7/5(54%) 24 votes|||no

    UTF-8 force-fed can be enabled from the .htaccess in the root of the www-site, by adding this line:
    AddDefaultCharset UTF-8

    That's a way to go around it, but I'd love to see a proper fix into the issue. BTW this also fixes WP Stats plugin's dashboard box which has the same characters appearing inside the box!

  6. Kamal Khan
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for this research.

    Highly appreciated.

    I will try and fix this now

  7. Kamal Khan
    Member
    Plugin Author

    Posted 1 year ago #

    I have fixed this. Update to version 1.5

    Thanks

  8. jamk
    Member
    Posted 1 year ago #

    Thanks for reacting fast! Just the way open-source community should work :)

  9. jeremie74
    Member
    Posted 1 year ago #

    I have the same problem with the last version. Firefox IE.

  10. jeremie74
    Member
    Posted 1 year ago #

  11. Kamal Khan
    Member
    Plugin Author

    Posted 1 year ago #

    This error has been resolved. Please use the latest version of the plugin.

  12. jeremie74
    Member
    Posted 1 year ago #

    Hi Kamal, i have the last version. 1.7

  13. Kamal Khan
    Member
    Plugin Author

    Posted 1 year ago #

    Well, the ajax request being received is from an older version as I just checked. Doesn't seem to have been updated properly.

  14. jeremie74
    Member
    Posted 1 year ago #

    And this is strange because it was working berfore

  15. jeremie74
    Member
    Posted 1 year ago #

    Ok ill try to download it from your site and note from WP.org

  16. Kamal Khan
    Member
    Plugin Author

    Posted 1 year ago #

    Hmm, it is only available at the wordpress repository for download. try to delete the plugin and install again.

  17. jeremie74
    Member
    Posted 1 year ago #

    I desinstalled it properly, but i still have the error.

  18. jeremie74
    Member
    Posted 1 year ago #

    Maybe its not compatible with an other plugin..

  19. Kamal Khan
    Member
    Plugin Author

    Posted 1 year ago #

    I cant tell exactly

  20. jeremie74
    Member
    Posted 1 year ago #

    Ok thanks Kamal, ill try desactivate some of them

  21. jeremie74
    Member
    Posted 1 year ago #

    Hi Kamal, i desactivate all the other plugins, but i still have the problem. I use it in my template Theme.
    Maybe there is a function to add in the functions.php.

    Thanks.
    Jérémie.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic