# Can't update Mautic from V4.3.1 to V4.4.0 via composer

**URL:** <https://forum.mautic.org/t/cant-update-mautic-from-v4-3-1-to-v4-4-0-via-composer/24679>\
**Category:** Mautic 4 Install/Upgrade Support\
**Created:** [July 5, 2022, 4:10am UTC](https://forum.mautic.org/t/cant-update-mautic-from-v4-3-1-to-v4-4-0-via-composer/24679 "2022-07-05T04:10:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![henry1688](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/henry1688/32/1071_2.png) [@henry1688](https://forum.mautic.org/u/henry1688)\
**Post date:** [July 5, 2022, 4:10am UTC](https://forum.mautic.org/t/cant-update-mautic-from-v4-3-1-to-v4-4-0-via-composer/24679/1 "2022-07-05T04:10:06Z")

</div>

**Your software**  
_My PHP version is_ : 7.4  
_My MySQL/MariaDB version is_ (delete as applicable): MySQL 5.7.37

**Updating/Installing Errors**  
I installed Mautic with V4.3.1, and the PHP version is 7.4.  
Today I got a notification that I can update to V4.4.0. Then I try to update via composer according to [[Installing with Composer | Mautic](https://docs.mautic.org/en/setup/how-to-install-mautic/install-and-manage-mautic-with-composer#updating-mautic-core)]

`$composer update mautic/core-lib --with-dependencies Do not run Composer as root/super user! See https://getcomposer.org/root for details Continue as root/super user [yes]? y Loading composer repositorUpdating 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 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/swiftmailer-bundle is abandoned, you should avoid using it. Use symfony/mailer instead. Generating autoload files 109 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`

Then I check on my website, it’s still V4.3.1.  
And I also tried `composer update` , nothing happen.  
Am I something wrong? Please kindly help.  
Thank you.

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [July 7, 2022, 4:35pm UTC](https://forum.mautic.org/t/cant-update-mautic-from-v4-3-1-to-v4-4-0-via-composer/24679/2 "2022-07-07T16:35:34Z")

</div>

Currently, there a bug to update to 4.4.0 via composer

---

<div class="post-metadata">

**Author:** ![henry1688](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/henry1688/32/1071_2.png) [@henry1688](https://forum.mautic.org/u/henry1688)\
**Post date:** [July 8, 2022, 2:56am UTC](https://forum.mautic.org/t/cant-update-mautic-from-v4-3-1-to-v4-4-0-via-composer/24679/3 "2022-07-08T02:56:17Z")

</div>

ok, thank you. I will wait until things are ready.

---

<div class="post-metadata">

**Author:** ![henry1688](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/henry1688/32/1071_2.png) [@henry1688](https://forum.mautic.org/u/henry1688)\
**Post date:** [August 9, 2022, 1:17pm UTC](https://forum.mautic.org/t/cant-update-mautic-from-v4-3-1-to-v4-4-0-via-composer/24679/4 "2022-08-09T13:17:28Z")

</div>

Finally, I find a way to upgrade Mautic without error. Here are the steps:

1. cd ././my-host-web-root #find my host’s root

2. composer self-update #update composer to the latest version

3. git clone [GitHub - mautic/recommended-project](https://github.com/mautic/recommended-project.git) #clone the latest mautic project

4. cd [mail.mydomain.com](http://mail.mydomain.com) #enter my website root

5. cp …/recommended-project/composer.json ./composer.json #replace the old composer.json

6. mv ./docroot/app/config/local.php …/local.php #move my website’s local.php to host’s root

7. composer update #upgrade the Mautic

8. mv …/local.php ./docroot/app/config/local.php #move website’s local.php to the right place

9. bin/console cache:clear #clear the cache

With the 9 steps, I upgrade my Mautic successfully.  
Hope this can help you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [August 11, 2022, 1:17am UTC](https://forum.mautic.org/t/cant-update-mautic-from-v4-3-1-to-v4-4-0-via-composer/24679/5 "2022-08-11T01:17:32Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
