Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Igor Yavych

    (@flyerua)

    I’m not sure but it might be due to your minifier/optimizer/whatever it is.
    Please re-download 1.4 from here (I’ve made few changes to script) and see if it works. Make sure your minifier/optimizer grabs new version of the script

    Thread Starter Mathieu Landry

    (@mattlegrand)

    Hi Ivor, that’s what I also though at first but even when I disable it, it still doesn’t rate and I am not seeing any javascript bug.

    I disabled the minifyer if you want to give it a second look.

    Thanks

    Plugin Author Igor Yavych

    (@flyerua)

    I just tried and it works. There should be 6 votes now (you should be able to see it when you edit this nutella post in back end in break down). Thing is, it shows correct amount of votes and rating when you rate it, but upon refresh it’s back to 4 votes for some reason. For what reason, I’m not sure. Hard to say without having any access. (I can have a look if you’re interested).
    Btw, if you download version from here again (it’s still 1.4, but js is bit changed compared to your version) and replace your current files, it should work with minifier too.

    Thread Starter Mathieu Landry

    (@mattlegrand)

    You were right it worked, but I had a caching issue. However, I upgraded to your version of JS to make i works with minify and it breaks the backend.

    ReferenceError: spr_ajax_object is not defined1 spr_script.js:1:69

    Oops! ??

    Plugin Author Igor Yavych

    (@flyerua)

    Try without minifier again?

    Thread Starter Mathieu Landry

    (@mattlegrand)

    All is working great and WITH the minifier.

    Thanks a lot igor.

    Plugin Author Igor Yavych

    (@flyerua)

    You’re welcome. Figured out what was causing that?

    Thread Starter Mathieu Landry

    (@mattlegrand)

    Not sure exactly because I have a lot of caching on my site.

    But I figured out that the JS script needs to be in the footer.

    Plugin Author Igor Yavych

    (@flyerua)

    Yeah, last problem was that spr_ajax_object which is rendered by wp_localize_script wasn’t there for some reason. Dunno why but as long as it works lol

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘I am unable to rate anymore…’ is closed to new replies.