tolgaaaltas I think I made a mistake when rewriting this, because right now you can only vote by clicking the checkbox.

Though if that is not what you are talking about, can you elaborate on your issue ?

    datitisev It's not the problem for me. When i click checkbox, i got this error message on board: The requested resource could not be found.*
    *Translated from Turkish

      tolgaaaltas Hm, that could be caused by another extension. Do you have flagrow/split installed ? If not, could you post the output of php flarum info ?

        5 days later

        Does this plug-in support voting posts with pictures?

          5 days later

          Hello,

          I seem to be having a problem with the installation of this polls plugin.

          Looking at the logs it appeared that I have to run the latest migration of reflar/polls (similar to [deleted]) to which I did before installing fof/polls. Despite that, I still get the same error. Trying to enable reflar/polls before doing the migrate also appears to not work and throws me database exceptions.

          Next Illuminate\Database\QueryException: SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'gxg_poll_votes_user_id_foreign'; check that column/key exists (SQL: alter tablegxg_poll_votesdrop foreign keygxg_poll_votes_user_id_foreign) in /var/www/siteurl/forum/vendor/illuminate/database/Connection.php:664

          Any help is appreciated.

          Addendum: reflar/polls don't appear to be migrated despite running php flarum migrate.

          Migrating Flarum...
          Nothing to migrate.
          Migrating extension: flarum-approval
          Nothing to migrate.
          Migrating extension: extiverse-bazaar
          Nothing to migrate.
          Migrating extension: michaelbelgium-discussion-views
          Nothing to migrate.
          Migrating extension: flarum-emoji
          Nothing to migrate.
          Migrating extension: fof-byobu
          Nothing to migrate.
          Migrating extension: fof-links
          Nothing to migrate.
          Migrating extension: fof-reactions
          Nothing to migrate.
          Migrating extension: fof-socialprofile
          Nothing to migrate.
          Migrating extension: fof-user-directory
          Nothing to migrate.
          Migrating extension: flarum-likes
          Nothing to migrate.
          Migrating extension: flarum-lock
          Nothing to migrate.
          Migrating extension: flarum-mentions
          Nothing to migrate.
          Migrating extension: reflar-doorman
          Nothing to migrate.
          Migrating extension: reflar-webhooks
          Nothing to migrate.
          Migrating extension: flarum-sticky
          Nothing to migrate.
          Migrating extension: flarum-subscriptions
          Nothing to migrate.
          Migrating extension: flarum-suspend
          Nothing to migrate.
          Migrating extension: flarum-tags
          Nothing to migrate.
          Migrating extension: flagrow-upload
          Nothing to migrate.
          Migrating extension: flarum-flags
          Nothing to migrate.
          Publishing assets...
          DONE.

            atroxiic Hm, could you send the rows in the migrations table that have the extension column set to fof-polls and reflar-polls ? That way we can see which migrations haven't run.

              datitisev

              Hello, I've looked up the migrations table and this is the only line related to either reflar-polls or fof-polls.

              2018_01_26_01_create_polls_table reflar-polls

                atroxiic That's... weird... as the code dropping the foreign key doesn't appear until like 4 migrations later. Do you have any polls data that you need to keep ? If so, you should be able to back it up (possibly as SQL insert statements), remove polls related table(s), disable reflar/polls, and enable fof/polls.. 🤔

                  datitisev

                  I don't really mind losing any polls. I just need it to work atm. 😀

                  How should I go about disabling reflar/polls? Is doing composer remove reflar/polls would do? I can't seem to find the extension in the admin page.

                    atroxiic

                    1. Make sure to delete any poll related tables
                    2. Delete the rows in the migrations table pertaining to reflar-polls
                    3. Run composer require fof/polls — it will automatically remove reflar/polls