# Impossible to update to mautic 4.2: problem with header

**URL:** <https://forum.mautic.org/t/impossible-to-update-to-mautic-4-2-problem-with-header/23704>\
**Category:** Product Support\
**Created:** [April 9, 2022, 7:34pm UTC](https://forum.mautic.org/t/impossible-to-update-to-mautic-4-2-problem-with-header/23704 "2022-04-09T19:34:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![biedseb2](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/biedseb2/32/694_2.png) [@biedseb2](https://forum.mautic.org/u/biedseb2)\
**Post date:** [April 9, 2022, 7:34pm UTC](https://forum.mautic.org/t/impossible-to-update-to-mautic-4-2-problem-with-header/23704/1 "2022-04-09T19:34:45Z")

</div>

Good evening everyone!

**Your software**  
My Mautic version is: 4.1.2  
My PHP version is: 7.4  
My Database type and version is: MySQL 5.7

**Your problem**  
My problem is: We did not manage to update our Mautic to 4.2 version. We used SSH command following the steps described here: [Updating at command line | Mautic](https://docs.mautic.org/en/setup/how-to-update-mautic/updating-at-command-line).

These errors are showing in the log: we obtain the errors showing in the screenshot.

 ![20220405_221134](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/4eaf077d8dec3be3168e828d568814fc0e803a19.jpeg)

Steps I have tried to fix the problem: we try to do it on a another mautic we install for testing just that and we got the same result. Clearing the cache doesn’t work.

Thank you in advance for your help. Have a nice evening.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [April 10, 2022, 6:11am UTC](https://forum.mautic.org/t/impossible-to-update-to-mautic-4-2-problem-with-header/23704/2 "2022-04-10T06:11:30Z")

</div>

Hi, did you modify the code? this usually happens if you try to open another session in php

---

<div class="post-metadata">

**Author:** ![biedseb2](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/biedseb2/32/694_2.png) [@biedseb2](https://forum.mautic.org/u/biedseb2)\
**Post date:** [May 3, 2022, 2:54pm UTC](https://forum.mautic.org/t/impossible-to-update-to-mautic-4-2-problem-with-header/23704/3 "2022-05-03T14:54:48Z")

</div>

Good afternoon,  
Thank you for your reply.  
We didn’t touch the code. We installed Mautic with Infomaniak. We tried an update that didn’t work and had to restaure a back up.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [May 5, 2022, 6:06am UTC](https://forum.mautic.org/t/impossible-to-update-to-mautic-4-2-problem-with-header/23704/4 "2022-05-05T06:06:16Z")

</div>

If it’s an autoinstall, then the provider can be the most help in my opinion.  
The hosting is Infomaniak (CH, right?), but did you use Softaculus?

---

<div class="post-metadata">

**Author:** ![biedseb2](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/biedseb2/32/694_2.png) [@biedseb2](https://forum.mautic.org/u/biedseb2)\
**Post date:** [June 30, 2022, 6:09pm UTC](https://forum.mautic.org/t/impossible-to-update-to-mautic-4-2-problem-with-header/23704/6 "2022-06-30T18:09:11Z")

</div>

Good evening,

It’s right the hosting is Infomaniak, but I don’t know Sofaculus. What is it?

We installed a “clean” version of Mautic with the sources found on GitHub, but the update from 4.1.2 to the latest version didn’t work either. We get the message on the screenshot.

 ![erreur-mautic](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/218669a2b95a0bb2b4605000afe804360a87ee71.png)

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [June 30, 2022, 6:12pm UTC](https://forum.mautic.org/t/impossible-to-update-to-mautic-4-2-problem-with-header/23704/7 "2022-06-30T18:12:39Z")

</div>

Are you using cPanel, WHM or Plesk?

Or any of the web management application?

---

<div class="post-metadata">

**Author:** ![biedseb2](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/biedseb2/32/694_2.png) [@biedseb2](https://forum.mautic.org/u/biedseb2)\
**Post date:** [June 30, 2022, 6:21pm UTC](https://forum.mautic.org/t/impossible-to-update-to-mautic-4-2-problem-with-header/23704/8 "2022-06-30T18:21:33Z")

</div>

I don’t know cPanel and the other, so I dont thing we use any of them. For the last test we made, we just upload the sources using ftp. It work just fine until we try to update using ssh for the command lines.

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [June 30, 2022, 6:25pm UTC](https://forum.mautic.org/t/impossible-to-update-to-mautic-4-2-problem-with-header/23704/9 "2022-06-30T18:25:14Z")

</div>

I don’t think you can upload with ftp then update with ssh

You need to install Mautic with ssh then update with ssh “Composer install and update”

Or upload with ftp (from download zip file) then update with Mautic built in updater (that will be removed in Mautic 5.0) or download latest zip file and update

You have to select one … ftp install / update or composer install / update …

You can “swap over” from ftp to composer. There is a document on mautic site how to swap over.

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [June 30, 2022, 6:30pm UTC](https://forum.mautic.org/t/impossible-to-update-to-mautic-4-2-problem-with-header/23704/10 "2022-06-30T18:30:59Z")

</div>

If it a test … try this

clear everything to start fresh

Do not download Mautic file or anything …

Just SSH in your server and issue command:

composer create-project mautic/recommended-project:^4 some-dir --no-interaction

((some-dir - you choose what directory name you want to install in.))
