# Update 5.0.1

**URL:** <https://forum.mautic.org/t/update-5-0-1/30474>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [January 12, 2024, 2:43pm UTC](https://forum.mautic.org/t/update-5-0-1/30474 "2024-01-12T14:43:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [January 12, 2024, 2:43pm UTC](https://forum.mautic.org/t/update-5-0-1/30474/1 "2024-01-12T14:43:45Z")

</div>

**Your software**  
My Mautic version is: 5.0.1  
My PHP version is: 8.1.27  
My Database type and version is: mysql Ver 15.1 Distrib 10.5.21-MariaDB

**Your problem**  
My problem is:

I’m really excited about the new Mautic release and just wanted to install. Well, unfortunately php 8.2 is not supported. Well, I downgraded to 8.1.27 and run the installation routine.  
After the last one: php bin/console mautic:update:apply --finish  
I’m getting following error:

PHP Fatal error: Declaration of MauticPlugin\MauticTwigTemplatesBundle\Security\Permissions\TwigTemplatesPermissions::buildForm(Symfony\Component\Form\FormBuilderInterface &$builder, array $options, array $data) must be compatible with Mautic\CoreBundle\Security\Permissions\AbstractPermissions::buildForm(Symfony\Component\Form\FormBuilderInterface &$builder, array $options, array $data): void in /var/www/clients/client1/web49/web/mautic/plugins/MauticTwigTemplatesBundle/Security/Permissions/TwigTemplatesPermissions.php on line 44

Steps I have tried to fix the problem:  
No idea.

Any idea on how to fix this?

Kind regards

Christian

---

<div class="post-metadata">

**Author:** ![kuzmanyy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kuzmanyy/32/390_2.png) [@kuzmanyy](https://forum.mautic.org/u/kuzmanyy)\
**Post date:** [January 12, 2024, 3:06pm UTC](https://forum.mautic.org/t/update-5-0-1/30474/2 "2024-01-12T15:06:03Z")

</div>

Twig Templates bundle is not core bundle, and support for M5 coming in next days

---

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [January 12, 2024, 3:44pm UTC](https://forum.mautic.org/t/update-5-0-1/30474/3 "2024-01-12T15:44:56Z")

</div>

Many thanks for your quick response!

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [January 12, 2024, 5:45pm UTC](https://forum.mautic.org/t/update-5-0-1/30474/4 "2024-01-12T17:45:02Z")

</div>

The support for PHP 8.2 is in progress here if you’d like to follow that:

> <https://github.com/mautic/mautic/pull/12469>
>
> \<!-- ## 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) | \[\]
> | New feature/enhancement? (use the a.x branch) | \[\]
> | Deprecations? | \[\]
> | 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 #... 
> 
> \<!--
> 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 is just to test if there is some BC break required to support PHP 8.2. Based on the PHPUNIT output there doesn't seem to be. Many deprecations and failed tests are due to Swiftmaier which is going to be removed in https://github.com/mautic/mautic/pull/11613. So we can do this any time after that is merged. Even after M5.0.0 release.
> 
> \#### 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. 
> 
> \<!--
> If you have any deprecations, list them here along with the new alternative.
> If you have any backwards compatibility breaks, list them here.
> \--\>

---

<div class="post-metadata">

**Author:** ![kuzmanyy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kuzmanyy/32/390_2.png) [@kuzmanyy](https://forum.mautic.org/u/kuzmanyy)\
**Post date:** [January 12, 2024, 8:13pm UTC](https://forum.mautic.org/t/update-5-0-1/30474/5 "2024-01-12T20:13:31Z")

</div>

Twig Templates for Mautic 5 is now available. You can find it at [Twig Templates for Mautic 3/4 or Mautic 5 – Mautic Extendee](https://mtcextendee.com/marketplace/twig-templates-for-mautic/).

If you’re a customer, you can get a 35% discount code. Simply contact me and I will provide it to you.
