Support » Plugin: YASR - Yet Another Star Rating Plugin for WordPress » Visitor votes don't get saved
Visitor votes don't get saved
-
Yet Another Stars Rating has been doing very well. However, now for some reason, it doesn’t save visitor votes for this new blog post:
– http://www.my2pix.nl/fotografie/graffiti-camp-pirotte-aken-duitsland
Any ideas?
-
Hi,
can you please disable lazy load and try again?Hey Dudo, thnx for the quick reply!
Lazy load did the trick, it’s working again like a charm! 🙂
I don’t depend on lazy load yet, but is there something I can do, so that both lazy load and yasr work together?Once again, thnx very much, keep up the good work mate!
Cheers, MarcHi Dudo,
is there anything I can do to run both lazy load and yasr?
Cheers,
Marcyou should edit a little of code and disable the loader image, but you should repeat this everytime the plugin is updated.
If you wish, I can indicate what row you’ve to edit
Regards,
DarioHi Dudo,
Thnx for the explanation and help mate! For now, it’s allright, I’ll keep it like this. Perhaps in the future, I keep your suggestion in my mind…
BTW
Is there a chance the plugin will be (made) compatible in the future?Cheers,
MarcThis is what happens
This is yasr default javascript code:
var loaderHtml = "<div id=\"loader-visitor-rating\" > Loading, please wait <img src=http:\/\/<strong>YOURDOMAIN</strong>\/wp-content\/plugins\/yet-another-stars-rating-pro\/img\/\/loader.gif title=\"yasr-loader\" alt=\"yasr-loader\"><\/div>";
This is the same code with lazyload
var loaderHtml = "<div id=\"loader-visitor-rating\" > Loading, please wait <img src="http://<strong>YOURDOMAIN</strong>/wp-content/plugins/lazy-load/images/1x1.trans.gif" data-lazy-src="http:\/\/<strong>YOURDOMAIN</strong>\/wp-content\/plugins\/yet-another-stars-rating-pro\/img\/\/loader.gif" title=\"yasr-loader\" alt=\"yasr-loader\"><noscript><img src="http:\/\/<strong>YOURDOMAIN</strong>\/wp-content\/plugins\/yet-another-stars-rating-pro\/img\/\/loader.gif" title=\"yasr-loader\" alt=\"yasr-loader\"></noscript><\/div>";
It put it’s own image using the quotation marks (“) and breaking the default javascript code.
I think that lazyload should first check what is used between quotation marks (“) or apostrophe (‘) and only then insert it’s own code.
But it doesn’t do this check breaking all the code that use the quotation marksOk, thnx for the explanation! 😉
Can you please try with the last version of yasr? (1.0.3)
Hmm, seems to work like a charm now!
Thnx very much, mate! 😉
Can you please give it a try yourself here:
http://www.my2pix.nl/fotografie/etalage/Just gave this one a 4-star rating, so please add yours too…
Keep up the good work!
Ok, lazyload error is disapperead 🙂
But I haven’t be able to vote: your page has a js error, I think caused from the caching plugin
Hi Dudo, thnx for investigating!
I’m using WP Rocket for caching, as far as I know one of the best…
First I deactivated WP Rocket, and tried voting (through another browser, does that count?). Couldn’t.
Then I activated WP Rocket again, emptied the cache, deactivated again, and tried voting (through another browser). Couldn’t either.
Right now WP Rocket is still turned off. May be you can take another look?
Hmm, sorry, guess I made a mistake. Right now, a few minutes I later, I am able to rate again (with WP Rocket deactivated). But there’s an important thing here to notice: if I’m understanding things right, Lazy Load is part of the WP Rocket caching plugin. So with WP Rocket deactivated, Lazy Load disappeared as a post setting too, and therefore YASR does it’s job right again!
Makes it complicated to test things, right?
Yes it’s working here too 🙂
Yes, because (I wrote) WP Rocket was deactivated.
Can you please try again now: I activated WP Rocket again, and turned on Lazy Load for all four blog posts.
Thnx!
Uhm, the lazy load issue doesn’t seems to appear anymore , but seems like wp-rocket is serving a kind of cached version of the page. But honestly I don’t know!
Here https://wordpress.org/support/topic/compatibility-with-wp-rocket-2?replies=1#post-7255718 you can read a wp rocket author that give me the code to clean the post cache after a rating is give…but in your case, seems like impossible give a rating at all!
Try to ask to wp-rocket developer if they can assist with a particolar settings to use with their plugin!
Best,
Dario
- The topic ‘Visitor votes don't get saved’ is closed to new replies.