Kasper Same.
Poll
It broke my freshly installed Flarum with newest version. Just said "error occured while loading this page" Needed to remove this extention.
As soon as I hit the "show votes" button it crashes the plugin.
7ShowVotersModal.js:31 Uncaught TypeError: n.id is not a function
at ShowVotersModal.js:31
at Array.map (<anonymous>)
at e.a.getUsers (ShowVotersModal.js:26)
at ShowVotersModal.js:61
at Array.map (<anonymous>)
at e.a.content (ShowVotersModal.js:58)
at e.n.view (Modal.js:46)
at e.render (Component.js:102)
at e.n.view (ModalManager.js:18)
at e.render (Component.js:102)
What should I do?
szabovalentin I am going to test this issue locally to try and reproduce.
[deleted]
Ralkage I can reproduce this also.
- Edited
szabovalentin this looks the same as the error you posted here btw. Did you remember to clear your Flarum cache (in the admin dashboard or php flarum cache:clear
in console)? Then clear your Cloudflare cache?
I can see the poll now but getting the same error as @jordanjay29
Uncaught TypeError: n.id is not a function
at ShowVotersModal.js:31
at Array.map (<anonymous>)
at e.a.getUsers (ShowVotersModal.js:26)
at ShowVotersModal.js:61
at Array.map (<anonymous>)
at e.a.content (ShowVotersModal.js:58)
at e.n.view (Modal.js:46)
at e.render (Component.js:102)
at e.n.view (ModalManager.js:18)
at e.render (Component.js:102)
php flarum cache:clear
doesnt change it. After this error the site only works if you refresh.
[deleted]
Ralkage I hope it's not going to be abandoned altogether
This is a very popular extension !
Ralkage Clearing out the cache fixed the problem.
szabovalentin there is still an underlying bug to fix, once you create a poll for the first time, cast your vote, and then view the voters who voted via clicking the "View Voters" button, either n.id
or o.id
TypeError is thrown.
Weird stuff really, but in all honesty, this extension really does need a rewrite
- Edited
Hi, is there a way for non-registered members, ie guests, to see the number of votes on polls?
?????
Hi all,
Just to be sure: I was able to see voters just one time on my mobile. I'm not able to see them anymore.
I have cleared the cache but I still have the same issue "n.id error".
This is still under investigation (or need a rewrite of the extension) or clearing the cache should have solved the issue?
Thanks
Thomas
[deleted]
Ralkage Sorry for any inconvenience this may have caused anyone
Will the re-write migrate existing polls we already have ?
[deleted]
Ralkage Thanks. Not that much of an impact for me, but would be nice to keep what I have if possible.
Ralkage Just wondering if you have any idea where the bug might be with the n.id issue? I tried for a few hours today with no avail to debug but maybe I just need to be pointed in the right direction.
theportablegeek Guessing that since the extension is soon to be abandoned there is likely no hope, but if anyone has some ideas of where to look it would be greatly appreciated