• SupportSolved
  • After fail the Beta 14 update I cannot install extensions

Hi, after tried in this days to upgrade Flarum to Beta 14 without success because of extensions not compatible, I'm now unable to install extension in Beta 13. Why?

While I try to install nightmode I get the following errors:

  Problem 1
    - Can only install one of: fof/components[0.2.0, 0.1.1].
    - Can only install one of: fof/components[0.2.0, 0.1.1].
    - Can only install one of: fof/components[0.2.0, 0.1.1].
    - fof/oauth 0.1.0 requires fof/components >=0.2.0 -> satisfiable by fof/components[0.2.0].
    - Installation request for fof/oauth ^0.1.0 -> satisfiable by fof/oauth[0.1.0].
    - Installation request for fof/components (locked at 0.1.1) -> satisfiable by fof/components[0.1.1].


Installation failed, reverting ./composer.json to its original content.
  • clarkwinkelmann replied to this.
  • peopleinside seems your composer.json still has fof/oauth mentioned which is only compatible with beta 14 and up. That extensions seems to block your installation of night mode because both require the components library but different versions. The solution is to edit your composer.json and delete the for/oauth extension, do a composer update and then install night mode.

    clarkwinkelmann I don't run Beta 14 because I'm unable to upgrade. I'm on Beta 13 but after the try to update to Beta 14, also if I still be on Beta 13 cannot install. Why?

      datitisev mmm so maybe in my try to upgrade something has been upgraded and something not. Still be in Beta 13 in backend. I will wait, thanks.

      Flarum core 0.1.0-beta.13
      PHP version: 7.3.23
      Loaded extensions: Core, date, libxml, pcre, dom, fileinfo, filter, hash, json, SPL, bz2, posix, Reflection, session, SimpleXML, standard, xml, xmlreader, xmlwriter, bcmath, openssl, calendar, ctype, curl, dba, mbstring, ftp, gd, gettext, gmp, iconv, imap, intl, ldap, mailparse, exif, memcached, zlib, pcntl, PDO, pdo_sqlite, shmop, soap, sockets, sqlite3, sysvsem, sysvshm, tidy, tokenizer, wddx, xmlrpc, xsl, zip, Phar, mysqlnd, mysqli, pdo_mysql, ionCube Loader, Zend OPcache
      +-------------------------------------+------------------+--------+
      | Flarum Extensions                   |                  |        |
      +-------------------------------------+------------------+--------+
      | ID                                  | Version          | Commit |
      +-------------------------------------+------------------+--------+
      | flarum-approval                     | v0.1.0-beta.13   |        |
      | flarum-bbcode                       | v0.1.0-beta.12   |        |
      | flarum-emoji                        | v0.1.0-beta.13   |        |
      | flarum-lang-english                 | v0.1.0-beta.13   |        |
      | flarum-flags                        | v0.1.0-beta.13   |        |
      | flarum-likes                        | v0.1.0-beta.13   |        |
      | flarum-lock                         | v0.1.0-beta.13   |        |
      | flarum-markdown                     | v0.1.0-beta.13   |        |
      | flarum-mentions                     | v0.1.0-beta.13   |        |
      | flarum-statistics                   | v0.1.0-beta.13   |        |
      | flarum-sticky                       | v0.1.0-beta.13   |        |
      | flarum-subscriptions                | v0.1.0-beta.13   |        |
      | flarum-suspend                      | v0.1.0-beta.13   |        |
      | flarum-pusher                       | v0.1.0-beta.13   |        |
      | nearata-lang-italian                | v0.1.0-beta.13   |        |
      | fof-user-bio                        | 0.2.0            |        |
      | fof-default-user-preferences        | 0.2.0            |        |
      | fof-links                           | 0.3.0            |        |
      | fof-recaptcha                       | 0.1.2            |        |
      | flarum-akismet                      | v0.1.0-beta.13   |        |
      | reflar-cookie-consent               | 0.2.0            |        |
      | franzl-open-links-in-new-tab        | v0.1.0           |        |
      | clarkwinkelmann-emojionearea        | 0.2.2            |        |
      | noriods-auto-more                   | 0.3.0            |        |
      | fof-user-directory                  | 0.3.4            |        |
      | flarum-tags                         | v0.1.0-beta.13.2 |        |
      | fof-upload                          | 0.10.0           |        |
      | jordanjay29-summaries               | 0.3.1            |        |
      | clarkwinkelmann-first-post-approval | 0.1.1            |        |
      | askvortsov-moderator-warnings       | v0.2.4           |        |
      | fof-moderator-notes                 | 0.2.5            |        |
      | flarum-auth-facebook                | v0.1.0-beta.13   |        |
      | flarum-auth-github                  | v0.1.0-beta.13   |        |
      | flarum-auth-twitter                 | v0.1.0-beta.13   |        |
      | fof-stopforumspam                   | 0.2.2            |        |
      +-------------------------------------+------------------+--------+
      Base URL: https://community.marcoborla.it
      Installation path: /community.marcoborla.it
      Debug mode: off

      But is I try composer require fof/nightmode
      I get:

      Using version ^0.5.2 for fof/nightmode
      ./composer.json has been updated
      Loading composer repositories with package information
      Updating dependencies (including require-dev)
      Your requirements could not be resolved to an installable set of packages.
      
        Problem 1
          - Can only install one of: fof/components[0.2.0, 0.1.1].
          - Can only install one of: fof/components[0.2.0, 0.1.1].
          - Can only install one of: fof/components[0.2.0, 0.1.1].
          - fof/oauth 0.1.0 requires fof/components >=0.2.0 -> satisfiable by fof/components[0.2.0].
          - Installation request for fof/oauth ^0.1.0 -> satisfiable by fof/oauth[0.1.0].
          - Installation request for fof/components (locked at 0.1.1) -> satisfiable by fof/components[0.1.1].
      
      
      Installation failed, reverting ./composer.json to its original content.

      I tried step to downgrade Flarum also if on admin side and SSH side the indicated version is the beta 13 so why I'm not able to install nightmode?

      I also get an alert from Google Search console my community is not optimized for mobile.
      Maybe get some issue while the update to Beta 14 failed due to extensions not compatible?

      Can I do something to resolve without delete the current community and resume a backup?
      Thank you.

      I should be able to install NightMode that is compatible with Beta 13 I'm running.

        peopleinside seems your composer.json still has fof/oauth mentioned which is only compatible with beta 14 and up. That extensions seems to block your installation of night mode because both require the components library but different versions. The solution is to edit your composer.json and delete the for/oauth extension, do a composer update and then install night mode.

          Hi luceos thanks for the answer.
          Just delete "fof/oauth": "^0.1.0", line than run composer update inside the community root folder?

          The exact composer update I have to run is composer update or composer update --prefer-dist --no-dev -a --with-all-dependencies?

          Solved by removing "fof/oauth": "^0.1.0", line than composer update --prefer-dist --no-dev -a --with-all-dependencies

          19 days later

          Hi, I still be not able to upgrade to Beta 14.
          composer why-not flarum/core v0.1.0-beta.14
          Gives:

           clarkwinkelmann/flarum-ext-first-post-approval  0.1.1           requires          flarum/core (>=0.1.0-beta.13 <0.1.0-beta.14)
          fof/links                                       0.3.0           requires          flarum/core (>=0.1.0-beta.12 <0.1.0-beta.14)
          fof/stopforumspam                               0.2.2           requires          flarum/core (>=0.1.0-beta.12 <0.1.0-beta.14)
          fof/upload                                      0.10.0          requires          flarum/core (>=0.1.0-beta.12 <0.1.0-beta.14)
          flarum/core                                     v0.1.0-beta.14  requires          components/font-awesome (^5.14.0)
          flarum/flarum                                   -               does not require  components/font-awesome (but 5.9.0 is installed)
          flarum/core                                     v0.1.0-beta.14  requires          dflydev/fig-cookies (^2.0.1)
          flarum/flarum                                   -               does not require  dflydev/fig-cookies (but v1.0.2 is installed)
          flarum/core                                     v0.1.0-beta.14  requires          illuminate/bus (^6.0)
          flarum/flarum                                   -               does not require  illuminate/bus (but v5.7.28 is installed)
          flarum/core                                     v0.1.0-beta.14  requires          illuminate/cache (^6.0)
          flarum/flarum                                   -               does not require  illuminate/cache (but v5.7.28 is installed)
          flarum/core                                     v0.1.0-beta.14  requires          illuminate/config (^6.0)
          flarum/flarum                                   -               does not require  illuminate/config (but v5.7.28 is installed)
          flarum/core                                     v0.1.0-beta.14  requires          illuminate/container (^6.0)
          flarum/flarum                                   -               does not require  illuminate/container (but v5.7.28 is installed)
          flarum/core                                     v0.1.0-beta.14  requires          illuminate/contracts (^6.0)
          flarum/flarum                                   -               does not require  illuminate/contracts (but v5.7.28 is installed)
          flarum/core                                     v0.1.0-beta.14  requires          illuminate/database (^6.0)
          flarum/flarum                                   -               does not require  illuminate/database (but v5.7.28 is installed)
          flarum/core                                     v0.1.0-beta.14  requires          illuminate/events (^6.0)
          flarum/flarum                                   -               does not require  illuminate/events (but v5.7.28 is installed)
          flarum/core                                     v0.1.0-beta.14  requires          illuminate/filesystem (^6.0)
          flarum/flarum                                   -               does not require  illuminate/filesystem (but v5.7.28 is installed)
          flarum/core                                     v0.1.0-beta.14  requires          illuminate/hashing (^6.0)
          flarum/flarum                                   -               does not require  illuminate/hashing (but v5.7.28 is installed)
          flarum/core                                     v0.1.0-beta.14  requires          illuminate/mail (^6.0)
          flarum/flarum                                   -               does not require  illuminate/mail (but v5.7.28 is installed)
          flarum/core                                     v0.1.0-beta.14  requires          illuminate/queue (^6.0)
          flarum/flarum                                   -               does not require  illuminate/queue (but v5.7.28 is installed)
          flarum/core                                     v0.1.0-beta.14  requires          illuminate/session (^6.0)
          flarum/flarum                                   -               does not require  illuminate/session (but v5.7.28 is installed)
          flarum/core                                     v0.1.0-beta.14  requires          illuminate/support (^6.0)
          flarum/flarum                                   -               does not require  illuminate/support (but v5.7.28 is installed)
          flarum/core                                     v0.1.0-beta.14  requires          illuminate/validation (^6.0)
          flarum/flarum                                   -               does not require  illuminate/validation (but v5.7.28 is installed)
          flarum/core                                     v0.1.0-beta.14  requires          illuminate/view (^6.0)
          flarum/flarum                                   -               does not require  illuminate/view (but v5.7.28 is installed)
          flarum/core                                     v0.1.0-beta.14  requires          nesbot/carbon (^2.0)
          flarum/flarum                                   -               does not require  nesbot/carbon (but 1.39.1 is installed) 

          Now I should be able to update, why I still get such long list of extensions not compatible?
          I cannot even update with composer update.

          If I run: php extiverse check
          I see as not compatible the following:

           | reflar/cookie-consent                          | 0.2.0            | 0.2.0           | 🛑 
          | noriods/auto-more                              | 0.3.0            | 0.3.0           | 🛑 but [is working on Beta 14](https://github.com/noriods/automore/issues/3#event-3983579907)
          | jordanjay29/flarum-ext-summaries               | 0.3.1            | 0.3.1           | 🛑
          | fof/user-directory                             | 0.3.4            | 0.3.4           | 🛑                               |
          | franzl/flarum-open-links-in-new-tab            | v0.1.0           | 0.1.0           | 🛑
          | fof/default-user-preferences                   | 0.2.0            | 0.2.0           | 🛑
          | flarum/bbcode                                  | v0.1.0-beta.12   | 0.1.0-beta.12   | 🛑
          | clarkwinkelmann/flarum-ext-emojionearea        | 0.2.2            | 0.2.2           | 🛑
          
          

            peopleinside remove those not compatible from your composer.json; set all other extensions to * and run composer update again.

              luceos umh... I don't wanna go on Beta 14 without my extensions.
              Maybe the update stop me also if there are some incompatible version that work on Beta 14?
              Like Automore I read works on Beta 14 even if is not compatible,

              What I'm not understanding is why the command why not Flarum still alerting me compatible version are not compatible.
              As you can see in the first code I insert the system say first post approval, fof links, etc are not compatible with Beta 14. Is not true and this maybe is stopping from upgrading even if extension are compatible.

              luceos

              composer why-not flarum/core v0.1.0-beta.14
              clarkwinkelmann/flarum-ext-first-post-approval  0.1.1           requires          flarum/core (>=0.1.0-beta.13 <0.1.0-beta.14)
              fof/links                                       0.3.0           requires          flarum/core (>=0.1.0-beta.12 <0.1.0-beta.14)
              fof/stopforumspam                               0.2.2           requires          flarum/core (>=0.1.0-beta.12 <0.1.0-beta.14)
              fof/upload                                      0.10.0          requires          flarum/core (>=0.1.0-beta.12 <0.1.0-beta.14)
              flarum/core                                     v0.1.0-beta.14  requires          components/font-awesome (^5.14.0)
              flarum/flarum                                   -               does not require  components/font-awesome (but 5.9.0 is installed)
              flarum/core                                     v0.1.0-beta.14  requires          dflydev/fig-cookies (^2.0.1)
              flarum/flarum                                   -               does not require  dflydev/fig-cookies (but v1.0.2 is installed)
              flarum/core                                     v0.1.0-beta.14  requires          illuminate/bus (^6.0)
              flarum/flarum                                   -               does not require  illuminate/bus (but v5.7.28 is installed)
              flarum/core                                     v0.1.0-beta.14  requires          illuminate/cache (^6.0)
              flarum/flarum                                   -               does not require  illuminate/cache (but v5.7.28 is installed)
              flarum/core                                     v0.1.0-beta.14  requires          illuminate/config (^6.0)
              flarum/flarum                                   -               does not require  illuminate/config (but v5.7.28 is installed)
              flarum/core                                     v0.1.0-beta.14  requires          illuminate/container (^6.0)
              flarum/flarum                                   -               does not require  illuminate/container (but v5.7.28 is installed)
              flarum/core                                     v0.1.0-beta.14  requires          illuminate/contracts (^6.0)
              flarum/flarum                                   -               does not require  illuminate/contracts (but v5.7.28 is installed)
              flarum/core                                     v0.1.0-beta.14  requires          illuminate/database (^6.0)
              flarum/flarum                                   -               does not require  illuminate/database (but v5.7.28 is installed)
              flarum/core                                     v0.1.0-beta.14  requires          illuminate/events (^6.0)
              flarum/flarum                                   -               does not require  illuminate/events (but v5.7.28 is installed)
              flarum/core                                     v0.1.0-beta.14  requires          illuminate/filesystem (^6.0)
              flarum/flarum                                   -               does not require  illuminate/filesystem (but v5.7.28 is installed)
              flarum/core                                     v0.1.0-beta.14  requires          illuminate/hashing (^6.0)
              flarum/flarum                                   -               does not require  illuminate/hashing (but v5.7.28 is installed)
              flarum/core                                     v0.1.0-beta.14  requires          illuminate/mail (^6.0)
              flarum/flarum                                   -               does not require  illuminate/mail (but v5.7.28 is installed)
              flarum/core                                     v0.1.0-beta.14  requires          illuminate/queue (^6.0)
              flarum/flarum                                   -               does not require  illuminate/queue (but v5.7.28 is installed)
              flarum/core                                     v0.1.0-beta.14  requires          illuminate/session (^6.0)
              flarum/flarum                                   -               does not require  illuminate/session (but v5.7.28 is installed)
              flarum/core                                     v0.1.0-beta.14  requires          illuminate/support (^6.0)
              flarum/flarum                                   -               does not require  illuminate/support (but v5.7.28 is installed)
              flarum/core                                     v0.1.0-beta.14  requires          illuminate/validation (^6.0)
              flarum/flarum                                   -               does not require  illuminate/validation (but v5.7.28 is installed)
              flarum/core                                     v0.1.0-beta.14  requires          illuminate/view (^6.0)
              flarum/flarum                                   -               does not require  illuminate/view (but v5.7.28 is installed)
              flarum/core                                     v0.1.0-beta.14  requires          nesbot/carbon (^2.0)
              flarum/flarum                                   -               does not require  nesbot/carbon (but 1.39.1 is installed)
              

              Still be not able to upgrade.
              I tried to remove fof/upload but never delete, never upgrade.

              clarkwinkelmann/flarum-ext-first-post-approval  0.1.1           requires          flarum/core (>=0.1.0-beta.13 <0.1.0-beta.14)
              fof/links                                       0.3.0           requires          flarum/core (>=0.1.0-beta.12 <0.1.0-beta.14)
              fof/stopforumspam                               0.2.2           requires          flarum/core (>=0.1.0-beta.12 <0.1.0-beta.14)
              fof/upload 

              Those block your upgrade.

                luceos links, fof/upload are all updated ready for Beta 14 so how they can block?
                Also why I'm unable to remove fof/upload?

                What I should do?
                I'm not understanding why I'm not able to update.

                • Links
                • Fof/upload
                • clarkwinkelmann/flarum-ext-first-post-approval
                • fof/stopforumspam

                are all compatible with Beta 14 but still be not able to update to Beta 14

                Resolved here: https://discuss.flarum.org/d/25184-issues-on-upgrading/22

                5 days later