# Unable to Upgrade Mautic version 5.0.4 to 5.1

**URL:** <https://forum.mautic.org/t/unable-to-upgrade-mautic-version-5-0-4-to-5-1/32900>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [July 26, 2024, 6:24pm UTC](https://forum.mautic.org/t/unable-to-upgrade-mautic-version-5-0-4-to-5-1/32900 "2024-07-26T18:24:43Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![sdesergi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sdesergi/32/13691_2.png) [@sdesergi](https://forum.mautic.org/u/sdesergi)\
**Post date:** [January 21, 2025, 4:35pm UTC](https://forum.mautic.org/t/unable-to-upgrade-mautic-version-5-0-4-to-5-1/32900/13 "2025-01-21T16:35:01Z")

</div>

Hi,

@sunbpo

I do have the same problem. I have just [posted my case](https://forum.mautic.org/t/i-need-help-in-updating-to-5-2-1/34723/3) in more detail. The PHP error I got was as follows:

```auto
Creation of dynamic property Mautic\\Middleware\\MiddlewareBuilder::$specs is deprecated in /path/to/mautic/app/middlewares/MiddlewareBuilder.php on line 24＇

```

with the following referers:

/path/to/mautic/s/dashboard  
/path/to/mautic/s/login  
/path/to/mautic/s/update  
/path/to/mautic/s/config/edit  
…

@lucas_petrasek

I also use a CDN but I haven’t seen any affectation about it. Could you indicate what was the cause of the problem in your case? Thanks.

I hope this helps with the resolution of the problem

---

_[View the full topic](https://forum.mautic.org/t/unable-to-upgrade-mautic-version-5-0-4-to-5-1/32900)._
