kolber / stacey

Cheap & easy content management
http://staceyapp.com
MIT License
1.04k stars 132 forks source link

All assets calls are breaking #84

Closed russellbits closed 11 years ago

russellbits commented 11 years ago

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'