# Mautic update 3.3.5 to 4.0.0 failed

**URL:** <https://forum.mautic.org/t/mautic-update-3-3-5-to-4-0-0-failed/26272>\
**Category:** Mautic 3 - Install/Upgrade Support\
**Created:** [December 1, 2022, 3:46pm UTC](https://forum.mautic.org/t/mautic-update-3-3-5-to-4-0-0-failed/26272 "2022-12-01T15:46:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcrestani](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bcrestani/32/7730_2.png) [@bcrestani](https://forum.mautic.org/u/bcrestani)\
**Post date:** [December 1, 2022, 3:46pm UTC](https://forum.mautic.org/t/mautic-update-3-3-5-to-4-0-0-failed/26272/1 "2022-12-01T15:46:51Z")

</div>

**Your software**  
My Mautic version is: 3.3.5  
My PHP version is: 7.4.32  
My Database type and version is: 5.7.33

**Your problem**  
My problem is:  
Hi !

We currently have Mautic in version 3.2.5.  
We would like to upgrade to the latest version 4.4.5.  
(I am aware that I will have to update PHP afterwards)  
To do this, I go through the updates one by one (3.2.5 - 3.3.0 - 3.3.5 - 4.0.0 etc).  
Unfortunately, when I go from 3.3.5 to 4.0.0, I get the following error.  
For information, I use the following commands:  
**php bin/console mautic:update:apply --update-package=/var/www/html/mautic/X.X.X-update.zip**  
and then  
**php bin/console mautic:update:apply --update-package=/var/www/html/mautic/X.X.X-update.zip --finish**  
All the rights on the files are correct.

Hope you can help me !  
Regards,

These errors are showing in the log:  
In FileLoader.php line 208:  
Expected to find class “Mautic\LeadBundle\Command\MergeIp” in file “/var/www/html/mautic/app/bundles/LeadBundle/Command/MergeIp.php” while importing services from resource “…/bundles/_/Command/_”, but it was not found! Check the namespace prefix used with the resource.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/1ce344fe6964276562f43c084c8064f6839abbc4.png)

Steps I have tried to fix the problem:

- Find FileLoader.php
- If i move the file, it’s okay but don’t think this is the solution…

---

<div class="post-metadata">

**Author:** ![bcrestani](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bcrestani/32/7730_2.png) [@bcrestani](https://forum.mautic.org/u/bcrestani)\
**Post date:** [December 14, 2022, 2:18pm UTC](https://forum.mautic.org/t/mautic-update-3-3-5-to-4-0-0-failed/26272/2 "2022-12-14T14:18:18Z")

</div>

Hi guys !

Any news ? ☹

Cheers,

---

<div class="post-metadata">

**Author:** ![astrylis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/astrylis/32/6421_2.png) [@astrylis](https://forum.mautic.org/u/astrylis)\
**Post date:** [December 14, 2022, 3:34pm UTC](https://forum.mautic.org/t/mautic-update-3-3-5-to-4-0-0-failed/26272/3 "2022-12-14T15:34:39Z")

</div>

Hey there.

I recently upgraded our version of mautic from v3.3.5 to latest mautic v 4.4.5 and it only took me roughly 30mins.

my advice. first try to go from 3.3.5 to latest mautic which is 4.4.5, I only had one error that resolved it self when i ran mautic:update:apply --finish which was a final step for me.

---

<div class="post-metadata">

**Author:** ![bcrestani](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bcrestani/32/7730_2.png) [@bcrestani](https://forum.mautic.org/u/bcrestani)\
**Post date:** [December 19, 2022, 9:33am UTC](https://forum.mautic.org/t/mautic-update-3-3-5-to-4-0-0-failed/26272/4 "2022-12-19T09:33:49Z")

</div>

Hey !

Try your methods, unfortunately, not working…  
I finally found…  
The error file had the wrong name “MergeIP” (I don’t understand where this can come from) the class inside this file is called “MergIPCommand”  
So the file should be called “MergeIPCommand.php”  
Then no problem for the upgrade …

I hope this will help other people

---

<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:** [December 20, 2022, 9:34pm UTC](https://forum.mautic.org/t/mautic-update-3-3-5-to-4-0-0-failed/26272/5 "2022-12-20T21:34:51Z")

</div>

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