Plugin Contributor
dudo
(@dudo)
This is strange, that line is in a function where it’s impossible that the number of votes is 0: I cant reproduce the warning in my environment. What shorcode have you used? (it should be [yasr_visitor_votes] )
What are your general settings?
Best,
Dario
Plugin Contributor
dudo
(@dudo)
Try to update to version 0.5.2, it should be fixed.
However, this is still strange, so I’d like to know your settings 🙂
Best,
Dario
Non ho usato l’inserimento automatico; Mostrare il Voto Complessivo nella Home Page? no; Inserisci testo personalizzato da mostrare prima / dopo le stelle: no; Che schema di colori vuoi usare? chiaro; Permettere la votazione ai soli utenti loggati? permetti a tutti; Quale rich snippets vuoi usare? media voto utenti
Grazie!
Plugin Contributor
dudo
(@dudo)
Sinceramente continuo a non capire come sia possibile. Quella funzione viene chiamato solo c’è almeno un voto, per questo non avevo messo il controllo prima della divisione, è impossibile che il numero dei voti sia 0. Vabbeh, con la 0.5.2, l’ho comunque messo, un if in più non mi cambia niente e quell’errore deve essere scomparso.
Ciao,
Dario