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
      22 days later
      • [deleted]

      Can it be used with Flarum 0.1.0-beta.9?

        16 days later

        When I try to activate "poll" and "name request" extensions from the Extensions page,

        I get a "method_not_allowed" error. What is the solution to the problem?
        I am using beta 9 version.

          Alshain Can you check your flarum logs (storage/logs/flarum-<date>.log) and try to find the error that is thrown when you try to activate the extension ?

            datitisev This is Name Request Error :

            [2019-08-22 11:48:03] production.ERROR: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'json not null' at line 1 (SQL: alter table `users` add `username_history` json not null) in C:\xampp\htdocs\vendor\illuminate\database\Connection.php:664

            This is Polls Error :

            [2019-08-22 11:49:22] production.ERROR: UnexpectedValueException: [fof/polls] Please run the latest migration(s) of reflar/polls before enabling this extension. in C:\xampp\htdocs\vendor\fof\polls\src\Migrations\AbstractMigration.php:36
            Stack trace:
            #0 [internal function]: FoF\Polls\Migrations\AbstractMigration::FoF\Polls\Migrations\{closure}(Object(Illuminate\Database\Schema\MySqlBuilder)) 

            Reflar Polls plugin is not installed. But I get such a mistake.

              Alshain I simplified your post to keep the relevant logs and not scroll for miles 🙂

              That error is thrown when ReFlar Polls was installed at some point, and never updated to the latest version before installing FriendsOfFlarum Polls. To fix this, you'll have to install ReFlar Polls (latest version), enable it, and then install fof/polls once again. Then it should work just fine.

                Alshain Did you translate this extension to Turkish or using an extension for this? I've got same error and after i translate, works normally.

                  14 days later

                  I made a PR for a CSS fix now more than 20 days ago... My client is waiting for the update, could someone merge this and make a new release ?

                    • [deleted]

                    iPurpl3x Curious to know why you're waiting for the PR when the below CSS can easily be added in the admin section ?

                        label.PollAnswer span {
                          display: inline-block;
                          width: 90%;
                        }
                    7 days later

                    Hi all,
                    Ups I made a mistake:

                    • I migrated to beta9
                    • I saw many warnings about deprecated extension (friends-of-flarum to fof ones) and the reflar/polls' one that should be replaced to fof/polls one
                    • I mechanically removed the old ones and installed the new
                    • I did the same with polls and get an issue the I tried to activate it :
                      Next Illuminate\Database\QueryException: SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP FOREIGN KEY flpoll_options_poll_id_foreign; check that it exists (SQL: alter table flpoll_options drop foreign key flpoll_options_poll_id_foreign) in /xxx/forum/vendor/illuminate/database/Connection.php:664``
                    • Now I understood that there were some instructions to do the migration properly
                    • I tried to install again reflar/polls extension to follow the step but I always get a "Nothing to install or update" message

                    So that I'm requesting help knowing that I didn't follow the steps I should have followed 🙁

                    Thanks in advance
                    Thomas