I have the same problem to update from 4.4.9
to 4.4.10
I used the documentation and ran:
user@mautic:~$ sudo php /srv/mautic/bin/console mautic:update:find
Version 4.4.10 of Mautic is available for download. Please visit https://github.com/mautic/mautic/releases/tag/4.4.10 for more information.
To update, you can run 'php bin/console mautic:update:apply' from the command line.
user@mautic:~$
user@mautic:~$ sudo php /srv/mautic/bin/console mautic:update:apply
You have Composer updates enabled. This means that you can only update Mautic through the 'composer update' command. Read more in the documentation: https://mau.tc/switch-to-composer
user@mautic:~$
So I use the composer option that was also on the documentation:
user@mautic:/srv/mautic$ composer update mautic/core-lib --with-dependencies
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Dependency phpoffice/phpspreadsheet is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Dependency php-http/message-factory is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package lightsaml/lightsaml is abandoned, you should avoid using it. Use litesaml/lightsaml instead.
Package misd/phone-number-bundle is abandoned, you should avoid using it. Use odolbeau/phone-number-bundle instead.
Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead.
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Package symfony/inflector is abandoned, you should avoid using it. Use EnglishInflector from the String component instead.
Package symfony/security is abandoned, you should avoid using it. No replacement was suggested.
Package symfony/swiftmailer-bundle is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating autoload files
110 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Symfony recipes are disabled: "symfony/flex" not found in the root composer.json
No security vulnerability advisories found
user@mautic:/srv/mautic$
Followed the first note and ran:
user@mautic:/srv/mautic$ composer update mautic/core-lib --with-all-dependencies
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
Package lightsaml/lightsaml is abandoned, you should avoid using it. Use litesaml/lightsaml instead.
Package misd/phone-number-bundle is abandoned, you should avoid using it. Use odolbeau/phone-number-bundle instead.
Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead.
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Package symfony/inflector is abandoned, you should avoid using it. Use EnglishInflector from the String component instead.
Package symfony/security is abandoned, you should avoid using it. No replacement was suggested.
Package symfony/swiftmailer-bundle is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating autoload files
110 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Symfony recipes are disabled: "symfony/flex" not found in the root composer.json
No security vulnerability advisories found
user@mautic:/srv/mautic$
Running composer update
gave me the same output as before.
After all this, Iām still at version 4.4.9
.
One last thing I tried was to manually change the version inside the composer.json
file to be 4.4.10
...
require": {
"acquia/mc-cs-plugin-custom-objects": "^1.0",
"composer/installers": "^1.11",
"mautic/core-composer-scaffold": "4.x-dev",
"mautic/core-lib": "4.4.10",
...
and then I ran the composer update
command. That actually worked!
BUTTTTTā¦ when I tried to login again, the whole site got removed and it was showing the first configuration menu window, meaning that the whole site was GONE!!.
I had to restore the mautic
folder and the database to ārollbackā this change.
At the end Iām not sure if is even possible to update Mautic via composer.
If this is not possible, the documentation should mention that.