Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Fatal error: Call to undefined function Fuel\Upload\finfo_open()
  • Good day. Fatal error: Call to undefined function Fuel\Upload\finfo_open() possible to somehow solve this problem in version 1.7.1, hosting refuses to install php_fileinfo?
  • As far as my knowledge reaches, if you don't have php_fileinfo enabled in the php config, you cannot use \Upload as it relies on finfo_open().

    If your hoster doesn't want to enable the fileinfo extension for you (and if there's now way to work around that using .htaccess), then you'd want to think about switching your hoster, I guess.
  • Correct.

    As per the PHP documentation, the fileinfo PECL extension MUST be part of the 5.3+ installation.

    If this is on your own server, make sure it is. On Windows, you need to enable a DLL (which should be part of the package).

    However, there are some hosters that are lazy, and use their custom compile scripts for older PHP versions to compile 5.3+. So it misses the extension. Or they have the idea that it will improve security (which it doesn't). If this is the case, complain to your hoster or switch hosters.
  • changing host

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion