THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline

#1 error on image upload

(24-11-2015 16:59:00)


Hi,
I have a problem when I upload an image to a product; I'm attaching the error message.
I contacted the provider, where Thelia is installed, and he assured me that the  php_fileinfo extension is enabled.
How can I solve the problem?

thanks a lot
ps. I'm using Thelia 2.2.0 and PHP 5.5.30 and Apache 2.4.16

Paolo

Offline

#2 Re: error on image upload

(24-11-2015 17:03:54)


I guess php_fileinfo is not installed. Did you checked that with phpinfo() ?


OpenStudio Toulouse

Offline

#3 Re: error on image upload

(24-11-2015 17:34:40)


at the following  link you can check if it is enabled.
In my opinion it is not enabled, but I tried to insist several times with the provider and he always replied me that it is enabled.
what do you think about it?
thanks

Offline

#4 Re: error on image upload

(24-11-2015 19:08:39)


Your php version seems compiled without fileinfo :

./configure' '--disable-fileinfo' ....

Additionnaly, I can't see fileinfo in the configuration list. If it was enabled, you'd see something like :

img-2015-11-24%2019%2006%2046.png

Tu be sure, check with this simple PHP call :

extension_loaded('fileinfo');

if it returns false, the extension is not loaded.


OpenStudio Toulouse

Offline

#5 Re: error on image upload

(25-11-2015 15:28:30)


Hi,
the extension is not enabled, and the provider does not want to enable it.
Is there a way to solve this problem?
thanks

Offline

#6 Re: error on image upload

(25-11-2015 16:14:40)


I activated the fileinfo extension.
thanks for support
Paolo

Offline

#7 Re: error on image upload

(25-11-2015 16:20:42)


So bad.

Some providers are disabling FileInfo because of a security problem (a Denial Of Service vulnerability).
However, this vulnerability was fixed in PHP 5.5.13. As you're using PHP 5.5.30, there is no real reason to keep this extension disabled.


OpenStudio Toulouse