• [deleted]

Ralkage I can reproduce this also.

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.

    Kasper we are investigating this issue and will release a patch as soon as we can 🙂

    We may end up abandoning/sunsetting this extension by Beta 9 to make room for a possible rewrite. This is based on the constant issues and maintenance needed with regards to this extension.

      • [deleted]

      Ralkage I hope it's not going to be abandoned altogether 🤔

      This is a very popular extension ! 😁

      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 🙂

      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

        Th0mC we will most likely abandon this extension in its current state due to the list of bugs popping up 🙂 this extension deserves a full re-write anyways and most likely under the FriendsOfFlarum namespace.

        Sorry for any inconvenience this may have caused anyone 🙁

          • [deleted]

          Ralkage Sorry for any inconvenience this may have caused anyone

          Will the re-write migrate existing polls we already have ?

            [deleted] we haven't considered what exactly are we doing with the rewrite but I believe it should be an option.

              • [deleted]

              Ralkage Thanks. Not that much of an impact for me, but would be nice to keep what I have if possible.

              16 days later

              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 🙂

                  theportablegeek as I stated before, we may end up rewriting this extension entirely down the line. But in essence, we have a bunch of other priorities we need to take care of first and this extension is not high up on there 🙂

                  We ask that everyone who has been experiencing issues with this extension to please be patient with us and we'll be coming up with a decision by Beta 9 to what is to become of this extension (officially).

                    Ralkage Absolutely! Sorry if it came across the wrong way, I know you and your team are incredibly busy, I was just looking to see if I was able to help. That last comment was absolutely not for you but rather for anyone in the community who might have been experimenting. Just attempting to.do.my part to help with this awesome community... Sorry for any confusion.

                    1.3.4

                    I know Ralkage said 30 minutes ago to be patient, but these issues had been bugging me (i'm sorry) so I decided to at least fix these. His statement still stands though, and this extension will be rewritten at some point.

                    Even I encountered a bunch of inexplicable errors when trying to solve these two issues below... I almost couldn't even check if my fix worked...

                    • Remove scripts to avoid false virus detections
                    • Add some support for deleted users in voters modal, fixes a bunch of issues with n.id()
                      • Edit: Seems like the voters modal hasn't worked for a while now... ? I don't recall that, but I don't see it working after beta 8. And it seems to be something harder to fix than what I already fixed, which is saying something... so it will probably just remain showing [deleted] for everyone but the already-loaded users.

                    Updating

                    $ composer update reflar/polls
                    $ php flarum migrate