Any call to any asset in my templates was resulting in this:
Warning: finfo::finfo() expects parameter 1 to be long, string given in /public_html/app/asset-types/asset.inc.php on line 33
Warning: finfo::file() [finfo.file]: The invalid fileinfo object. in /public_html/app/asset-types/asset.inc.php on line 35
The problem appears to be that I am using PHP 5.2.17 and somewhere in there, the name of the constant needed for the finfo() function call in asset.inc.php needs to be changed from 'FILEINFO_MIME_TYPE' to just 'FILEINFO_MIME'
Just a heads up to anyone who needs it:
Any call to any asset in my templates was resulting in this:
Warning: finfo::finfo() expects parameter 1 to be long, string given in /public_html/app/asset-types/asset.inc.php on line 33
Warning: finfo::file() [finfo.file]: The invalid fileinfo object. in /public_html/app/asset-types/asset.inc.php on line 35
The problem appears to be that I am using PHP 5.2.17 and somewhere in there, the name of the constant needed for the finfo() function call in asset.inc.php needs to be changed from 'FILEINFO_MIME_TYPE' to just 'FILEINFO_MIME'