PHP finfo errors / Failed to load Magic Database
-
Hello,
I am getting the following errors, on the optimization page, any time I attempt to optimize an image, or even load the page:Warning: finfo_open() [function.finfo-open]: Failed to load magic database at ‘/usr/share/misc/magic’. in /home/magnaope/public_html/dev.magnaoperagroup.com/wp-content/plugins/ewww-image-optimizer/ewww-image-optimizer.php on line 465
Warning: finfo_file(): supplied argument is not a valid file_info resource in /home/magnaope/public_html/dev.magnaoperagroup.com/wp-content/plugins/ewww-image-optimizer/ewww-image-optimizer.php on line 467
Warning: finfo_close(): supplied argument is not a valid file_info resource in /home/magnaope/public_html/dev.magnaoperagroup.com/wp-content/plugins/ewww-image-optimizer/ewww-image-optimizer.php on line 469
I do have ImageMagick installed, which is what this seems to reference, and EWWW IO seems to be able to find the ImageMagick installation. I’ve tried changing the setting: “Use System Paths” to see if that effected this error, and it does not. It made the error go away from the plugin page itself, but not from the optimization pages.
Debug Info: http://pastebin.com/HYJ50Zgk
EWWW Image Optimizer Version 1.7.5
PHP Version: 5.3.27According to phpinfo() FileInfo support is enabled.
ImageMagick is installed v 3.1.2I’ve tried to add
&& defined('FILEINFO_MIME')to line 463, since in another thread you suggested that was the problem for someone else. I found that the updated version already had most instances of this if clause corrected except on line 463, but this did not fix it for me. I suppose because I am actually on PHP 5.3 and that FileInfo is enabled.Thanks in advance for any help you can provide! 🙂
The topic ‘PHP finfo errors / Failed to load Magic Database’ is closed to new replies.