I've got an error while updating flarum with composer (flarum/core v1.8.3 -> v1.8.6) :
`Could not update packages
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals

  • Upgrading symfony/css-selector (v6.4.8 => v7.1.1)
    Writing lock file
    Installing dependencies from lock file
    Package operations: 0 installs, 1 update, 0 removals
  • Upgrading symfony/css-selector (v6.4.8 => v7.1.1): Extracting archive
    Update of symfony/css-selector failed
    In Filesystem.php line 303:
    Could not delete /var/www/vhosts/MYDOMAIN/httpdocs/questions/vendor/s
    ymfony/css-selector/CssSelectorConverter.php:
    update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [-i|--interactive] [--root-reqs] [--] [<packages>...]`

Need help to find a solution please !

Thanks

  • clarkwinkelmann replied to this.
  • kestendi after update this empty basic settiing i fix it we this.

    composer require flarum/core:"dev-main"

    kestendi this is a file permission issue. Make sure to chown the vendor folder and everything it contains to the shell user that you run Composer as

    Done thanks ! when i make composer update --prefer-dist --no-plugins --no-dev -a --with-all-dependencies
    php flarum migrate
    php flarum cache:clear

    on php flarum migrate i've got a fatal errror now 🇦 PHP Fatal error: Uncaught PDOException: could not find driver in /var/www/vhosts/MONDOMAINE/httpdocs/questions/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40

      kestendi make sure the webserver and command line use the same PHP version, and that the php-mysql module is enabled for that version

      yes merci ! no more error but really strange with composer interface i am on version v1.8.3 and not on v1.8.6 nd when i made a composer update -w Loading composer repositories with package information
      Updating dependencies
      Nothing to modify in lock file
      Installing dependencies from lock file (including require-dev)
      Nothing to install, update or remove

      on the admin pannel of flarum when I click on Essentiels link i've got nothing and still an js error on console
      TypeError: Cannot read properties of undefined (reading 'view')

      may be a conflct with an extension ?
      here is my composer.json file :
      {
      "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": {
      "flarum/core": "^1.8",
      "flarum/approval": "*",
      "flarum/bbcode": "*",
      "flarum/emoji": "*",
      "flarum/lang-english": "*",
      "flarum/flags": "*",
      "flarum/likes": "*",
      "flarum/lock": "*",
      "flarum/markdown": "*",
      "flarum/mentions": "*",
      "flarum/nicknames": "*",
      "flarum/pusher": "*",
      "flarum/statistics": "*",
      "flarum/sticky": "*",
      "flarum/subscriptions": "*",
      "flarum/suspend": "*",
      "flarum/tags": "*",
      "flarum-lang/french":"*",
      "fof/upload":"*",
      "fof/links":"*",
      "fof/oauth":"*",
      "fof/recaptcha":"*",
      "fof/custom-footer":"*",
      "fof/mason":"*",
      "justoverclock/og-meta-tag":"*",
      "ianm/html-head":"*",
      "fof/linguist":"*",
      "fof/terms":"*"
      },
      "config": {
      "preferred-install": "dist",
      "sort-packages": true
      }
      }

      composer why-not flarum/core 1.8.6 should help you identify what is blocking an upgrade.

      thanks @luceos here what i've got with your command : composer why-not flarum/core 1.8.6

      There is no installed package depending on "flarum/core" in versions not matching 1.8.6
      Not finding what you were looking for? Try calling `composer require "flarum/core:1.8.6" --dry-run` to get another view on the problem.

      Ok i am on Flarum 1.8.6, but still have the issue in admin pannel on Basics link nothing appear and have an error on chrome console TypeError: Cannot read properties of undefined (reading 'view')
      at render.js:141:24
      at render.js:160:3
      at c (render.js:66:8)
      at l (render.js:50:5)
      at render.js:103:4
      at c (render.js:62:15)
      at l (render.js:50:5)
      at render.js:134:5
      at c (render.js:63:14)
      at l (render.js:50:5)

        is there a way to safely downgrading 1.8.6 to 1.8.3 ?

          kestendi

          composer require flarum/core:"1.8.5"

          That should work.

          Failed due to the extensions.

          Your requirements could not be resolved to an installable set of packages.
            Problem 1
              - Root composer.json requires flarum/core 1.8.5, found flarum/core[v1.8.5] but these were not loaded, likely because it conflicts with another require.
            Problem 2
              - flarum-lang/french is locked to version v4.25.0 and an update of this package was not requested.

          i've tried too

          composer require flarum/core:"1.8.5" --with-all-dependencies

          kestendi after update this empty basic settiing i fix it we this.

          composer require flarum/core:"dev-main"

          @Xkyer @kestendi You should now use the latest released patch instead so that you won't run into problems in the future since dev-main is not stable.

          composer require flarum/core:"1.8.7"

          thanks @SychO Release 1.8.7 applied... everything seem ok !