Drupal 6 MimeDetect module - Fileinfo could not load the magic file
Drupal 6 MimeDetect module - Fileinfo could not load the magic file. It could be corrupted. Try reinstalling the magic file distributed with the MimeDetect module.
What a horrible error message. Firstly it is not corrupted, so don't worry about that. It is one of two things.
1) Most likely is that the magic file that comes with the drupal module is not supported by your apache2 server.
So just point it to the one that is installed by your server. The Readme.txt file in the MimeDetect module has details. Basically just add this line to sites/default/settings.php
$conf['mimedetect_magic'] = '/usr/share/file/magic';
2) Very slim chance that not having the fileinfo apache2 module enabled is causing you problems, easy fix.
sudo a2enmod mime_magic
Comments
Thanks!