# Upgrade Issues for Security Release 3.2.3

**URL:** <https://forum.mautic.org/t/upgrade-issues-for-security-release-3-2-3/17788>\
**Category:** Mautic 3 - Install/Upgrade Support\
**Created:** [January 14, 2021, 4:01pm UTC](https://forum.mautic.org/t/upgrade-issues-for-security-release-3-2-3/17788 "2021-01-14T16:01:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [January 14, 2021, 4:01pm UTC](https://forum.mautic.org/t/upgrade-issues-for-security-release-3-2-3/17788/1 "2021-01-14T16:01:07Z")

</div>

**Your software**  
_My PHP version is_ : PHP 7.2.24  
_My MySQL/MariaDB version is_ (delete as applicable): mariadb Ver 15.1 Distrib 10.1.47-MariaD

Mautic 3.2.1

**Updating/Installing Errors**  
_I am_ (delete as applicable): Updating  
_Upgrading/installing via_ (delete as applicable) : Both

I began by trying to upgrade via the command line and was hit with this error:  
Step 2 [–\>-------------------------] Downloading update package… PHP Notice: Undefined index: message in /mautic/app/bundles/CoreBundle/Update/Step/InstallNewFilesStep.php on line 131

Via the dashboard Notification got the following error in mautic.error log file:  
2021/01/14 15:55:21 [error] 827#827: \*2343445 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught UnexpectedValueException: The stream or file “/mautic/app/…/var/logs/mautic\_prod-2021-01-14.php” could not be opened: failed to open stream: Permission denied in /mautic/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:108

Stack trace:

#0 /mautic/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(119): Monolog\Handler\StreamHandler-\>write(Array)

#1 /mautic/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\Handler\RotatingFileHandler-\>write(Array)

#2 /mautic/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler\AbstractProcessingHandler-\>handle(Array)

#3 /mautic/vendor/monolog/monolog/src/Monolog/Logger.php(740): Monolog\Logger-\>addRecord(500, ‘Uncaught PHP Ex…’, Array)

#4 /mautic/vendor/symfony/http-kernel/EventListener/ExceptionListener.php(101): Monolog\Logger-\>critical(‘Uncaught PHP Ex…’, Array)

#5 /mautic/app/bundles/…

PHP message: PHP Fatal error: Uncaught UnexpectedValueException: The stream or file “/mautic/app/…/var/logs/mautic\_prod-2021-01-14.php” could not be opened: failed to open stream: Permission denied in /mautic/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:108

Stack trace:

#0 /mautic/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(119): Monolog\Handler\StreamHandler-\>write(Array)

#1 /mautic/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\Handler\RotatingFileHandler-\>write(Array)

#2 /mautic/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler\AbstractProcessingHandler-\>handle(Array)

#3 /mautic/vendor/monolog/monolog/src/Monolog/Logger.php(614): Monolog\Logger-\>addRecord(400, ‘PHP Error: Unca…’, Array)

#4 /mautic/app/bundles/CoreBundle/ErrorHandler/ErrorHandler.php(424): Monolog\Logger-\>log(400, 'P

I tried to chown the entire Mautic directory and still getting the error. Not sure if I should go and change file permissions…

---

<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 14, 2021, 4:04pm UTC](https://forum.mautic.org/t/upgrade-issues-for-security-release-3-2-3/17788/2 "2021-01-14T16:04:03Z")

</div>

We have also got a report of this on Github :

> <https://github.com/mautic/mautic/issues/9585>
>
> Bug Description
> The more details the better...
> 
> Q
> A
> 
> 
> Mautic version
> 3.2.2
> 
> PHP version
> 7.2
> 
> Browser
> CLI
> 
> Steps to reproduce
> execute command bin/console mautic:update:apply
> Error Message in cli
> Log errors
> Are you sure you wish...

Linking for completeness.

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [January 14, 2021, 4:05pm UTC](https://forum.mautic.org/t/upgrade-issues-for-security-release-3-2-3/17788/3 "2021-01-14T16:05:11Z")

</div>

I reran chown then ran the update from Notifications and everything worked fine.

---

<div class="post-metadata">

**Author:** ![dennisameling](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dennisameling/32/958_2.png) [@dennisameling](https://forum.mautic.org/u/dennisameling)\
**Post date:** [January 14, 2021, 4:24pm UTC](https://forum.mautic.org/t/upgrade-issues-for-security-release-3-2-3/17788/4 "2021-01-14T16:24:28Z")

</div>

This is a bug we accidentally introduced in version 3.2.0 and only applies to CLI updates. The fix is simple; we’ll be releasing an updated version within the next 30 mins 👍🏼

---

<div class="post-metadata">

**Author:** ![dennisameling](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dennisameling/32/958_2.png) [@dennisameling](https://forum.mautic.org/u/dennisameling)\
**Post date:** [January 15, 2021, 8:23am UTC](https://forum.mautic.org/t/upgrade-issues-for-security-release-3-2-3/17788/5 "2021-01-15T08:23:39Z")

</div>

As promised, we released a new version yesterday: [Release Mautic Community 3.2.4 · mautic/mautic · GitHub](https://github.com/mautic/mautic/releases/tag/3.2.4)

Versions 3.2.4 and higher aren’t affected by this bug. But if you’re currently running a version between 3.2.0 and 3.2.3, then you can apply this workaround to get to 3.2.4 (make sure to `cd` into your Mautic folder first, e.g. `/var/www/html`):

```auto
wget https://github.com/mautic/mautic/releases/download/3.2.4/3.2.4-update.zip
php bin/console mautic:update:apply --update-package=3.2.4-update.zip
php bin/console mautic:update:apply --finish

```

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [January 17, 2021, 1:03pm UTC](https://forum.mautic.org/t/upgrade-issues-for-security-release-3-2-3/17788/6 "2021-01-17T13:03:41Z")

</div>

> [@dennisameling](#):
>
> `mautic:update:apply --update-package=3.2.4-update.zip`

Hey @dennisameling

Thanks for the instructions. I have done this on a handful of servers now and for me at the end I keep getting errors.

I delete cache - but still does not work until I chown the entire Mautic directory (maybe there is a permission problem along the way with the patch ?)

I have everything working, but if anyone runs into similar problems this is how I overcame it.
