Thread

Fileinfo help

June 22, 2017 3:58pm

Subscribe [2]
  • #1 / Jun 22, 2017 3:58pm

    AnotherMuse

    105 posts

    Does anyone have a bare-bones PHP script that tests whether fileinfo is installed on a server and actually works? And returns full technical errors if it fails?

    PHP.info on my host says fileinfo is enabled.

    A fresh install of EE 3.5.9 is erroring out saying fileinfo is not enabled.

    My web host says fileinfo is enabled by default so the problem must be the software.

    I have tried using scripts found on the web to do something basic (like output mime type) and I can’t get any information back. I also can’t get any errors to report.

    I’m trying to figure out something independent of EE that will verify if fileinfo is or is not installed, enabled, and working correctly. Thanks!

  • #2 / Jun 23, 2017 12:36am

    Derek Jones's avatar

    Derek Jones

    7176 posts

    In a new standalone PHP file put:

    <?php
    error_reporting(E_ALL);
    var_dump(function_exists('finfo_open'));

    Do you get true?

  • #3 / Jun 23, 2017 9:00pm

    AnotherMuse

    105 posts

    Thanks - we were able to determine it was a server issue and it’s fixed now.

  • #4 / Jun 26, 2017 7:32pm

    Derek Jones's avatar

    Derek Jones

    7176 posts

    Glad you found it, hope that code helped you nail it down!

ExpressionEngine News

#eecms, #events, #releases