# Mautic upgrade to 4.4.10 -\> 5.0.1 breaks

**URL:** <https://forum.mautic.org/t/mautic-upgrade-to-4-4-10-5-0-1-breaks/30440>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [January 11, 2024, 5:16am UTC](https://forum.mautic.org/t/mautic-upgrade-to-4-4-10-5-0-1-breaks/30440 "2024-01-11T05:16:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrishinds](https://avatars.discourse-cdn.com/v4/letter/c/e47c2d/32.png) [@chrishinds](https://forum.mautic.org/u/chrishinds)\
**Post date:** [January 11, 2024, 5:16am UTC](https://forum.mautic.org/t/mautic-upgrade-to-4-4-10-5-0-1-breaks/30440/1 "2024-01-11T05:16:00Z")

</div>

**Your software**  
Mautic 4.4.10 upgrading to Mautic 5.0.1  
PHP: tried both 8.0.30 and 8.1

**Your Problem**  
Upgrading leads to error message

I used the command line upgrade path to upgrade from 4.4.10 → Mautic 5.0.1, but once the upgrade was complete, I receive ubiquitous error messages from any page.

So I blew away Mautic entirely and re-installed:

1. Download Mautic 5.0.1
2. Upload to server
3. Unzip into public\_html directory
4. Ensure file/directory ownership is set appropriately
5. Upload local.php file to config/ (from app/config/local.php in 4.4.10).

… and so far, there are no issues. I can still get into the instance without errors, even with the previous server’s config file. Here’s where the first error is thrown:

1. Drop all tables in database
2. Import .sql file from 4.4.10 into database

… and here I get the first Mautic error:

 ![firefox_3kDUxHMMJl](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/b/be65c5abf5e3edd407c70fa6994dba452acca122.png)

… so I keep going:

1. clear cache (php bin/console cache:clear). This results in an [OK].

 ![totermw_OnBRWf9jiT](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/c6fbc155cbf1d5687bf3dac18e80497ac1340ad1.png)

… but now the error message changes:

 ![firefox_VGEbdVcr0t](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/4d8532534ca151e586c7dd8dd70a8f0945ab4c39.png)

This happens to be the same error message I received when I used the command line upgrade from 4.4.10. But I keep going anyway.

1. php bin/console doctrine:migration:status

 ![totermw_0CqNoOEc0z](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/3e5af6679035ca65fb6bec71e02a312becfa1651.png)

1. php bin/console doctrine:migration:migrate

 ![totermw_Fr07qy8Xj5](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/cae9148867dcbca811e3f1de4dacc020d0ad7ec0.png)  
 ![totermw_LYQnANe8TK](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/99828a87d26c45192665d6718ec5e7afb621fcb9.png)  
 ![totermw_YjUxzs2Ewi](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/9db6cf6aa9529be1bfef4263ef151af0919e01e3.png)

```auto
[notice] Migrating up to Mautic\Migrations\Versionzz20230929183000
[notice] Table contact_export_scheduler already exists
[notice] Migration Mautic\Migrations\Version20220429091934 skipped during Pre-Checks. Reason: "Schema includes this migration"
[notice] Migration Mautic\Migrations\Version20221128145933 skipped during Pre-Checks. Reason: "Schema includes this migration"
[warning] Migration Mautic\Migrations\Version20230311195347 was executed but did not result in any SQL statements.
[notice] Table plugin_citrix_events already exists
[notice] Migration Mautic\Migrations\Version20230522141144 skipped during Pre-Checks. Reason: "Schema includes this migration"
[notice] Migration is not required.
[notice] Migration Mautic\Migrations\Version20230606111852 skipped during Pre-Checks. Reason: "Schema includes this migration"
[warning] Migration Mautic\Migrations\Version20230615101328 was executed but did not result in any SQL statements.
[notice] Table point_groups already exists
[notice] Table point_group_contact_score already exists
[error] Migration Mautic\Migrations\Version20230621074925 failed during Execution. Error: "An exception occurred while executing a query: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'point_groups' already exists"

In ExceptionConverter.php line 45:

  An exception occurred while executing a query: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'point_groups' already exists

In Exception.php line 28:

  SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'point_groups' already exists

In Connection.php line 70:

  SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'point_groups' already exists

doctrine:migrations:migrate [--write-sql [WRITE-SQL]] [--dry-run] [--query-time] [--allow-no-migration] [--all-or-nothing [ALL-OR-NOTHING]] [--configuration CONFIGURATION] [--em EM] [--conn CONN] [--] [<version>]

```

… but here is where the [troubleshooting documentation](https://docs.mautic.org/en/5.x/troubleshooting/troubleshooting.html?highlight=backup#troubleshooting-a-failed-update) ends. Should I try the same command again ( doctrine:migrations:migrate ), the error changes.

```auto
[WARNING] Some commands could not be registered:

In AppKernelProdContainer.php line 11207:

  The parameter "2F" must be defined.

In AppKernelProdContainer.php line 11207:

  The parameter "2F" must be defined.

In AppKernelProdContainer.php line 11207:

  The parameter "2F" must be defined.

```

Finally, in case this is helpful, here’s the final message I get:

```auto
mautic.ERROR: Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: The parameter "2F" must be defined. (uncaught exception) at /home/mautic/web/mautic.denverperfect10
console command `doctrine:migrations:migrate` [stack trace] #0 /PathToMautic/vendor/symfony/dependency-injection/EnvVarProcessor.php(283): ContainerQmO0wS2\AppKernelPr
ssor->Symfony\Component\DependencyInjection\{closure}() #2 /PathToMautic/vendor/symfony/dependency-injection/EnvVarProcessor.php(275): preg_replace_callback() #3 /home
397): Symfony\Component\DependencyInjection\EnvVarProcessor->getEnv() #4 /PathToMautic/app/bundles/CoreBundle/DependencyInjection/EnvProcessor/NullableProcessor.php(11
10.com/public_html/vendor/symfony/dependency-injection/Container.php(397): Mautic\CoreBundle\DependencyInjection\EnvProcessor\NullableProcessor->getEnv() #6 /home/mautic/web/mautic.denverperfect10.com/public_h
jection\Container->getEnv() #7 /PathToMautic/var/cache/prod/ContainerQmO0wS2/AppKernelProdContainer.php(11210): ContainerQmO0wS2\AppKernelProdContainer->getDynamicPara
ParametersHelper.php(42): ContainerQmO0wS2\AppKernelProdContainer->getParameter() #9 /PathToMautic/app/bundles/CoreBundle/Helper/CoreParametersHelper.php(79): Mautic\C
tml/app/bundles/CoreBundle/Helper/CoreParametersHelper.php(21): Mautic\CoreBundle\Helper\CoreParametersHelper->resolveParameters() #11 /PathToMautic/var/cache/prod/Con
truct() #12 /PathToMautic/var/cache/prod/ContainerQmO0wS2/getMigrationCommandSubscriberService.php(20): ContainerQmO0wS2\AppKernelProdContainer->getMautic_Database_Ver
tainerQmO0wS2/AppKernelProdContainer.php(2299): ContainerQmO0wS2\getMigrationCommandSubscriberService::do() #14 /PathToMautic/var/cache/prod/ContainerQmO0wS2/AppKernel
denverperfect10.com/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php(267): ContainerQmO0wS2\AppKernelProdContainer->ContainerQmO0wS2\{closure}() #16 /home/mautic/web/mautic.denverperfect10.com/p
r\EventDispatcher::Symfony\Component\EventDispatcher\{closure}() #17 /PathToMautic/vendor/symfony/event-dispatcher/EventDispatcher.php(59): Symfony\Component\EventDisp
endor/symfony/console/Application.php(1055): Symfony\Component\EventDispatcher\EventDispatcher->dispatch() #19 /PathToMautic/vendor/symfony/framework-bundle/Console/Ap
denverperfect10.com/public_html/vendor/symfony/console/Application.php(301): Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() #21 /PathToMautic/vendo
) #22 /PathToMautic/vendor/symfony/console/Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application->doRun()  

```

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [January 11, 2024, 9:23am UTC](https://forum.mautic.org/t/mautic-upgrade-to-4-4-10-5-0-1-breaks/30440/2 "2024-01-11T09:23:59Z")

</div>

Hi there,

Thanks for reporting the issue and sharing the detailed logs.

We have the point groups migration problem already reported and a fix proposed, which I found by searching for the error you have in the logs 🙂 .

Here’s the post:

> [@How to update 5 to 5.0.1 via composer?](https://forum.mautic.org/t/how-to-update-5-to-5-0-1-via-composer/30430/7):
>
> There is an open GH issue for this: Please follow the discussion and join in with new inputs.

Here is the fix for it which was shared late yesterday, hopefully it will be released imminently:

> <https://github.com/mautic/mautic/pull/13195>
>
> \<!-- ## Which branch should I use for my PR?
> 
> Assuming that:
> 
> a = current ma…jor release
> b = current minor release
> c = future major release
> 
> \* a.x for any features and enhancements (e.g. 5.x)
> \* a.b for any bug fixes (e.g. 4.4, 5.1)
> \* c.x for any features, enhancements or bug fixes with backward compatibility breaking changes (e.g. 5.x) --\>
> 
> | Q | A
> | -------------------------------------- | ---
> | Bug fix? (use the a.b branch) | \[Y \]
> | New feature/enhancement? (use the a.x branch) | \[N \]
> | Deprecations? | \[N \]
> | BC breaks? (use the c.x branch) | \[\]
> | Automated tests included? | \[\] 
> | Related user documentation PR URL | mautic/mautic-documentation#... 
> | Related developer documentation PR URL | mautic/developer-documentation#... 
> | Issue(s) addressed | Fixes #12993 
> 
> \<!--
> Additionally (see https://contribute.mautic.org/contributing-to-mautic/developer/code/pull-requests#work-on-your-pull-request):
> - Always add tests and ensure they pass.
> - Bug fixes must be submitted against the lowest maintained branch where they apply
> (lowest branches are regularly merged to upper ones so they get the fixes too.)
> - Features and deprecations must be submitted against the "4.x" branch.
> \--\>
> 
> \#### Description:
> This PR fixes the issue with point groups migration
> \<!--
> Please write a short README for your feature/bugfix. This will help people understand your PR and what it aims to do. If you are fixing a bug and if there is no linked issue already, please provide steps to reproduce the issue here.
> \--\>
> 
> \#### Steps to test this PR:
> 
> \<!--
> This part is really important. If you want your PR to be merged, take the time to write very clear, annotated and step by step test instructions. Do not assume any previous knowledge - testers may not be developers.
> \--\>
> 1. Open this PR on Gitpod or pull down for testing locally (see docs on testing PRs \[here\](https://contribute.mautic.org/contributing-to-mautic/tester))
> 2. Run \`ddev exec php bin/console doctrine:migrations:migrate\`
> 
> \<!--
> If you have any deprecations, list them here along with the new alternative.
> If you have any backwards compatibility breaks, list them here.
> \--\>

Please test it and report back if this resolved the issue on the GitHub pull request - I posted instructions here: [Unable to pass DB migrations: Table 'point\_groups' already exists · Issue #12993 · mautic/mautic · GitHub](https://github.com/mautic/mautic/issues/12993#issuecomment-1885291503) on how to leave a report.

---

<div class="post-metadata">

**Author:** ![chrish](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/chrish/32/522_2.png) [@chrish](https://forum.mautic.org/u/chrish)\
**Post date:** [January 11, 2024, 4:05pm UTC](https://forum.mautic.org/t/mautic-upgrade-to-4-4-10-5-0-1-breaks/30440/3 "2024-01-11T16:05:22Z")

</div>

Thank you! At least the issue I’ve uncovered is recent and active with the dev team! I will test and report back. We Americans are a bit behind you, so it’ll be tonight US time before I can test. Thanks again, and thanks for such an amazing project. I am honored to be a sponsor.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [January 11, 2024, 4:13pm UTC](https://forum.mautic.org/t/mautic-upgrade-to-4-4-10-5-0-1-breaks/30440/4 "2024-01-11T16:13:57Z")

</div>

Much appreciated! We have a couple of other small things we’ve fixed since the release so I expect there will be a .2 release today or tomorrow depending on how fast they get reviewed/tested 🙂

---

<div class="post-metadata">

**Author:** ![omert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omert/32/10732_2.png) [@omert](https://forum.mautic.org/u/omert)\
**Post date:** [January 15, 2024, 8:18am UTC](https://forum.mautic.org/t/mautic-upgrade-to-4-4-10-5-0-1-breaks/30440/5 "2024-01-15T08:18:58Z")

</div>

After upgrade from 4.4.10 → 5.0.1 I’m getting the same kind of red offline error message in the browser along with the ‘parameter x must be defined’ error(s) when running commands such as (doctrine:migrations:migrate) via CLI.  
I am currently running 4.4.10 again (restored from backup).

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [January 15, 2024, 10:16am UTC](https://forum.mautic.org/t/mautic-upgrade-to-4-4-10-5-0-1-breaks/30440/6 "2024-01-15T10:16:26Z")

</div>

Please make a new thread if your issue is different to this, otherwise it’s impossible for the team to track issues.

Please use the post template and provide your error logs from var/logs which helps to track down the issue (might want to search for the error first, in case it’s already addressed).

---

<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:** [January 16, 2024, 10:17pm UTC](https://forum.mautic.org/t/mautic-upgrade-to-4-4-10-5-0-1-breaks/30440/7 "2024-01-16T22:17:16Z")

</div>

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