We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Fileinfo help

News and General

AnotherMuse's avatar
AnotherMuse
106 posts
7 years ago
AnotherMuse's avatar AnotherMuse

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!

       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

In a new standalone PHP file put:

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

Do you get true?

       
AnotherMuse's avatar
AnotherMuse
106 posts
7 years ago
AnotherMuse's avatar AnotherMuse

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

       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

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

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.