# Can't upgrade due to fileinfo

**URL:** <https://forum.mautic.org/t/cant-upgrade-due-to-fileinfo/2316>\
**Category:** Product Support\
**Created:** [September 10, 2015, 2:41am UTC](https://forum.mautic.org/t/cant-upgrade-due-to-fileinfo/2316 "2015-09-10T02:41:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinr](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@martinr](https://forum.mautic.org/u/martinr)\
**Post date:** [September 10, 2015, 2:41am UTC](https://forum.mautic.org/t/cant-upgrade-due-to-fileinfo/2316/1 "2015-09-10T02:41:40Z")

</div>

Hi there,  
  
I am trying to upgrade mautic to the latest version but I am getting this error message:  
  
  
  
We have detected 1 major problems. You must fix them before continuing:  
  
Install and enable the fileinfo extension.  
  
  
  
I’m not sure what to do as I have PHP 5.5.28 and fileinfo seems to be depreciated.  
  
  
  
Thanks in advance,  
  
Martin

---

<div class="post-metadata">

**Author:** ![martinr](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@martinr](https://forum.mautic.org/u/martinr)\
**Post date:** [September 10, 2015, 2:41am UTC](https://forum.mautic.org/t/cant-upgrade-due-to-fileinfo/2316/2 "2015-09-10T02:41:40Z")

</div>

Hi there,  
I am trying to upgrade mautic to the latest version but I am getting this error message:

We have detected 1 major problems. You must fix them before continuing:  
Install and enable the fileinfo extension.

I’m not sure what to do as I have PHP 5.5.28 and fileinfo seems to be depreciated.

Thanks in advance,  
Martin

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [September 10, 2015, 2:49am UTC](https://forum.mautic.org/t/cant-upgrade-due-to-fileinfo/2316/3 "2015-09-10T02:49:46Z")

</div>

As far as a I know, fileinfo is not deprecated and is enabled by default in PHP 5.3+ (if it’s missing; it’s because PHP was compiled specifically without it by using the --disable-fileinfo argument). The PECL extension is discontinued but that was for PHP 5.2 and earlier. See [http://php.net/manual/en/fileinfo.installation.php](http://php.net/manual/en/fileinfo.installation.php).

If this is a VPS, you may need to recompile PHP with it. If it is a shared host, you may need to contact the host to enable it. On all the hosts I’ve personally dealt with, it’s been enabled.

You can check phpinfo to see if PHP was compiled with --disable-fileinfo. If it was not; you may just need to enable it

Thanks!  
Alan

---

<div class="post-metadata">

**Author:** ![martinr](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@martinr](https://forum.mautic.org/u/martinr)\
**Post date:** [September 14, 2015, 5:09am UTC](https://forum.mautic.org/t/cant-upgrade-due-to-fileinfo/2316/4 "2015-09-14T05:09:30Z")

</div>

Thanks so much Alan,  
It was disabled. Fixing it now.

Regards,  
Martin

---

<div class="post-metadata">

**Author:** ![Lucy](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@Lucy](https://forum.mautic.org/u/Lucy)\
**Post date:** [September 13, 2017, 8:34pm UTC](https://forum.mautic.org/t/cant-upgrade-due-to-fileinfo/2316/5 "2017-09-13T20:34:20Z")

</div>

Thanks so so much Alan,  
It was disabled. Fixing it now.

Regards,  
Lucy

---

<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:** [February 2, 2020, 10:58pm UTC](https://forum.mautic.org/t/cant-upgrade-due-to-fileinfo/2316/6 "2020-02-02T22:58:34Z")

</div>


