Does it work on the default theme? The code seems correct. Unless you are using a caching plugin and the text is being cached by the plugin. That is the only thing I can think of.
Thread Starter
djdoc
(@djdoc)
Actually no, it’s not working there too.
I don’t have anything with caching stuff.
Maybe I do something else wrong? should I add something to the header or footer?
Can you switch to the default theme and let me know your URL.
Thread Starter
djdoc
(@djdoc)
I’ve checked again and now with defualt theme it’s working fine.
what can be missing in my theme?
I would not know since I don’t use many of the themes out there. That is why when user have a problem, I always ask them to switch to the default theme so that it can be used as a benchmark.
You will properly have to contact your theme author. My guess will be this https://wordpress.org/support/topic/ensure-your-theme-has-wp_head-and-wp_footer?replies=4 or there is a Javascript problem http://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors
Thread Starter
djdoc
(@djdoc)
Ok so now i’ve fixed the wp_footer that was missing and i start to see errors that weren’t before:
“ReferenceError: current_rating is not defined
<!doctype html>
/camera…review/ (line 1)
ReferenceError: ratings_off is not defined
<!doctype html>
/camera…review/ (line 1)
ReferenceError: current_rating is not defined
<!doctype html>
/camera…review/ (line 1)
ReferenceError: ratings_off is not defined
<!doctype html>
/camera…review/ (line 1)
ReferenceError: current_rating is not defined
<!doctype html>
/camera…review/ (line 1)
ReferenceError: ratings_off is not defined
<!doctype html>
/camera…review/ (line 1)
ReferenceError: current_rating is not defined
<!doctype html>
/camera…review/ (line 1)
ReferenceError: ratings_off is not defined
<!doctype html>
/camera…review/ (line 1)
ReferenceError: current_rating is not defined
<!doctype html>
/camera…review/ (line 1)
ReferenceError: ratings_off is not defined
<!doctype html>
/camera…review/ (line 1)
ReferenceError: current_rating is not defined
<!doctype html>
/camera…review/ (line 1)
ReferenceError: rate_post is not defined
<!doctype html>
/camera…review/ (line 1)
ReferenceError: ratings_off is not defined
<!doctype html>”
Any suggestions from here?
Thread Starter
djdoc
(@djdoc)
The plugin ratings javascript is still not on your page and hence it still shows the error. It is still related to the footer (the header code is fine). If you fix it, you will fix the error.
Unfortunately, you will have to figure it out yourself since this has nothing to do with the plugin but your theme.
Unfortunately I have the same problem:
http://journalismus-y.ch/2015/07/24/online-kommentare/
I had to manually enqueue the script (tried head and footer) because it did not load by default.
But even now that I have enqueued the script the javascript errors are still showing and the plugin is no running.
Does anyone know what the problem could be?
When I manually enqueue the script another error occurs:
Uncaught ReferenceError: ratingsL10n is not definedratings_off @ (index):118onmouseout @ (index):275