WordPress.org

Ready to get started?Download WordPress

Forums

KK I Like It
[resolved] [CRITICAL BUG] Count error (7 posts)

  1. blue11
    Member
    Posted 1 year ago #

    Hello,

    First of all you wrote a very nice plugin! This one is going to be huge!

    I see that is still in BETA testing so I just want to help you out.I found one problem with your module that is CRITICAL.

    Use case :

    1) You have 2 users.
    2) Vote 'Like' with first user -> counter for post gets set to 1
    3) Vote 'Like' with second user -> counter for post gets set to 2
    4) Vote 'Unlike' with second user -> counter gets set to 0 instead of 1! However I have enabled 'Show voters after post/page content?' and I can see the first user. But the counter is 0.

    I will write also a list of futures that I think is very important to be added for the success of this plugin in another topic.

    Many thanks,
    /Blue

    http://wordpress.org/extend/plugins/kk-i-like-it/

  2. blue11
    Member
    Posted 1 year ago #

    *Hint : Don't forget to hit refresh after step 4!

  3. Hope
    Member
    Posted 1 year ago #

    True.. I had this issue too, any solutions?

  4. Hope
    Member
    Posted 1 year ago #

    Still the same problem, anybody found the reason?

  5. Popescu M
    Member
    Posted 1 year ago #

    in db.php inside function removeLike at line
    $result = update_post_meta($idPost, $this->metaLikes, $val->rating);
    you need to edit it like this
    $result = update_post_meta($idPost, $this->metaLikes, $rating);

    Thank you.

  6. martin0w
    Member
    Posted 1 year ago #

    I agree that this is a critical bug that prevails in the current version (1.7) of the plugin. Sadly, it allows a malicious user to "unlike" the counter on someone else's post down to 0.

    Thanks @radiourionline for the hack, which solves the problem.

    Since there is no excuse for the rating plugin to err in the math department, this is a serious issue, but fortunately a breeze for the plugin author to fix. I hope this is incorporated ASAP in a forthcoming version of this otherwise brilliant plugin.

  7. Krzysztof Furtak
    Member
    Plugin Author

    Posted 11 months ago #

    Hello,
    This issue fixed in version 1.7.2

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.