Mautic Community Forums

Can't upgrade due to fileinfo

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

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

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.

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

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

Regards,
Martin

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

Regards,
Lucy