From time time, I just do a general update of composer to get any updates including extensions using the command composer update --prefer-dist --no-plugins --no-dev -a --with-all-dependencies. But now, I am getting an error when updating Flarum.

Composer could not detect the root package (flarum/flarum) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version

Flarum Info Output:

Flarum core: 1.8.5
PHP version: 8.2.16
MySQL version: 10.6.17-MariaDB-1:10.6.17+mariadeb10-log
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, enchant, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, exif, mongodb, msgpack, mysqli, odbc, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, redis, shmop, SimpleXML, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, memcached, Zend OPcache
+-------------------------------------------+---------+--------+
| Flarum Extensions | | |
+-------------------------------------------+---------+--------+
| ID | Version | Commit |
+-------------------------------------------+---------+--------+
| flarum-flags | v1.8.0 | |
| flarum-tags | v1.8.0 | |
| flarum-approval | v1.8.1 | |
| flarum-likes | v1.8.0 | |
| flarum-suspend | v1.8.1 | |
| flarum-mentions | v1.8.3 | |
| flarum-subscriptions | v1.8.0 | |
| antoinefr-money | v1.3.1 | |
| flarum-sticky | v1.8.0 | |
| fof-oauth | 1.6.8 | |
| flarum-nicknames | v1.8.0 | |
| fof-byobu | 1.3.6 | |
| ianm-level-ranks | 1.1.1 | |
| fof-user-directory | 1.3.3 | |
| fof-follow-tags | 1.2.2 | |
| fof-merge-discussions | 1.4.1 | |
| flarum-markdown | v1.8.0 | |
| ziiven-money-leaderboard | v0.1.7 | |
| v17development-seo | v1.8.1 | |
| the-turk-stickiest | 3.0.1 | |
| nearata-tags-color-generator | v2.3.0 | |
| matteociaroni-public-suspensions | v1.0.0 | |
| katosdev-signature | 1.6 | |
| justoverclock-be-active-user-indicator | 0.1.0 | |
| jslirola-login2seeplus | v0.2.1 | |
| ianm-syndication | 1.3.4 | |
| ianm-oauth-amazon | 1.0.2 | |
| ianm-html-head | 1.2.3 | |
| fof-username-request | 1.2.4 | |
| fof-user-bio | 1.3.2 | |
| fof-upload | 1.5.4 | |
| fof-subscribed | 1.1.4 | |
| fof-split | 1.1.1 | |
| fof-socialprofile | 1.1.6 | |
| fof-sitemap | 2.2.1 | |
| fof-share-social | 1.2.0 | |
| fof-secure-https | 1.1.3 | |
| fof-recaptcha | 1.3.4 | |
| fof-reactions | 1.4.1 | |
| fof-prevent-necrobumping | 1.1.2 | |
| fof-polls | 1.4.2 | |
| fof-nightmode | 1.5.3 | |
| fof-links | 1.2.3 | |
| fof-gamification | 1.6.7 | |
| fof-formatting | 1.0.3 | |
| fof-filter | 1.1.3 | |
| fof-drafts | 1.2.10 | |
| fof-default-user-preferences | 1.2.1 | |
| fof-default-group | 1.1.2 | |
| fof-best-answer | 1.4.2 | |
| fof-analytics | 1.1.0 | |
| flarum-statistics | v1.8.0 | |
| flarum-lock | v1.8.0 | |
| flarum-lang-english | v1.8.0 | |
| flarum-emoji | v1.8.0 | |
| flarum-bbcode | v1.8.0 | |
| davwheat-ads | 1.2.0 | |
| datlechin-link-preview | v1.4.0 | |
| clarkwinkelmann-emojionearea | 1.0.0 | |
| clarkwinkelmann-discussion-bookmarks | 2.0.1 | |
| clarkwinkelmann-advanced-search-highlight | 1.0.2 | |
| blomstra-usercard-stats | 0.1.2 | |
| blomstra-sort-order-toggle | 0.2.0 | |
| blomstra-mark-unread | 0.2.0 | |
| blomstra-fontawesome | 0.1.5 | |
| blomstra-flag-duplicates | 0.2.1 | |
| blomstra-cache-assets | 0.5 | |
| askvortsov-rich-text | v2.1.7 | |
| askvortsov-moderator-warnings | v0.6.3 | |
| askvortsov-markdown-tables | v1.2.1 | |
+-------------------------------------------+---------+--------+
Base URL: X
Installation path: X
Queue driver: redis
Session driver: redis (Code override. Configured to file)
Scheduler status: Active
Mail driver: mail
Debug mode: off

  • luceos replied to this.
  • Okay. It seems this is a new feature of composer that was introduced not too long ago (composer/composer11858). It is just a warning and can be completely ignored.

    A new change was already merged to remove this warning for any installation using type project (composer/composer11885), but this was not yet released.

    So tldr:

    • you can completely ignore this warning
    • this warning only shows when using composer 2.7.2
    • this warning will no longer show when composer releases it's next update 2.7.3

    cmsoc please paste the contents of your composer.json.

      luceos Thank you for the response. Here it is.

      {
          "name": "flarum/flarum",
          "description": "Delightfully simple forum software.",
          "type": "project",
          "keywords": [
              "forum",
              "discussion"
          ],
          "homepage": "https://flarum.org/",
          "license": "MIT",
          "authors": [
              {
                  "name": "Flarum",
                  "email": "info@flarum.org",
                  "homepage": "https://flarum.org/team"
              }
          ],
          "support": {
              "issues": "https://github.com/flarum/core/issues",
              "source": "https://github.com/flarum/flarum",
              "docs": "https://docs.flarum.org/"
          },
          "require": {
              "antoinefr/flarum-ext-money": "^1.2",
              "askvortsov/flarum-markdown-tables": "*",
              "askvortsov/flarum-moderator-warnings": "^0.6.1",
              "askvortsov/flarum-rich-text": "*",
              "blomstra/cache-assets": "*",
              "blomstra/flag-duplicates": "*",
              "blomstra/flarum-redis": "^0.4.2",
              "blomstra/fontawesome": "*",
              "blomstra/mark-unread": "*",
              "blomstra/sort-order-toggle": "*",
              "blomstra/usercard-stats": "*",
              "clarkwinkelmann/flarum-ext-advanced-search-highlight": "^1.0",
              "clarkwinkelmann/flarum-ext-discussion-bookmarks": "^2.0",
              "clarkwinkelmann/flarum-ext-emojionearea": "^1.0",
              "dalez/fluent-flarum": "^1.3",
              "datlechin/flarum-link-preview": "*",
              "datlechin/flarum-simple-tour-guide": "*",
              "davwheat/flarum-ext-ads": "*",
              "flarum/approval": "*",
              "flarum/bbcode": "*",
              "flarum/core": "^1.6",
              "flarum/emoji": "*",
              "flarum/flags": "*",
              "flarum/lang-english": "*",
              "flarum/likes": "*",
              "flarum/lock": "*",
              "flarum/markdown": "*",
              "flarum/mentions": "*",
              "flarum/nicknames": "*",
              "flarum/pusher": "*",
              "flarum/statistics": "*",
              "flarum/sticky": "*",
              "flarum/subscriptions": "*",
              "flarum/suspend": "*",
              "flarum/tags": "*",
              "flarumite/simple-discussion-views": "*",
              "fof/analytics": "*",
              "fof/anti-spam": "*",
              "fof/best-answer": "*",
              "fof/byobu": "*",
              "fof/default-group": "^1.1",
              "fof/default-user-preferences": "^1.2",
              "fof/drafts": "*",
              "fof/filter": "*",
              "fof/follow-tags": "^1.1",
              "fof/formatting": "^1.0",
              "fof/gamification": "*",
              "fof/geoip": "*",
              "fof/linguist": "^1.1",
              "fof/links": "^1.1",
              "fof/merge-discussions": "^1.4",
              "fof/nightmode": "^1.5",
              "fof/oauth": "^1.3",
              "fof/polls": "^1.3",
              "fof/pretty-mail": "^1.1",
              "fof/prevent-necrobumping": "^1.1",
              "fof/reactions": "*",
              "fof/recaptcha": "^1.1",
              "fof/secure-https": "^1.1",
              "fof/share-social": "^1.1",
              "fof/sitemap": "^2.0",
              "fof/socialprofile": "^1.1",
              "fof/split": "*",
              "fof/stopforumspam": "^1.2",
              "fof/subscribed": "*",
              "fof/upload": "^1.2",
              "fof/user-bio": "*",
              "fof/user-directory": "*",
              "fof/username-request": "*",
              "ianm/html-head": "^1.2",
              "ianm/level-ranks": "*",
              "ianm/oauth-amazon": "^1.0",
              "ianm/syndication": "*",
              "ianm/synopsis": "^1.3",
              "ianm/twofactor": "*",
              "jslirola/flarum-ext-login2seeplus": "^0.2.1",
              "justoverclock/be-active-user-indicator": "^0.1.0",
              "katosdev/signature": "^1.3",
              "matteociaroni/flarum-public-suspensions": "^1.0",
              "nearata/flarum-ext-tags-color-generator": "^2.2",
              "symfony/mailer": "^6.1",
              "the-turk/flarum-stickiest": "^3.0.0",
              "v17development/flarum-seo": "^1.8",
              "v17development/flarum-user-badges": "^1.1",
              "ziiven/flarum-daily-check-in": "^0.3.7",
              "ziiven/flarum-money-leaderboard": "^0.1.7"
          },
          "config": {
              "preferred-install": "dist",
              "sort-packages": true
          }
      }

      Okay. It seems this is a new feature of composer that was introduced not too long ago (composer/composer11858). It is just a warning and can be completely ignored.

      A new change was already merged to remove this warning for any installation using type project (composer/composer11885), but this was not yet released.

      So tldr:

      • you can completely ignore this warning
      • this warning only shows when using composer 2.7.2
      • this warning will no longer show when composer releases it's next update 2.7.3

        luceos Thank you so much 🙂 For a minute, I thought something is broken in the installation.