• Resolved metagrapher

    (@metagrapher)


    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.27

    According to phpinfo() FileInfo support is enabled.
    ImageMagick is installed v 3.1.2

    I’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! 🙂

    http://wordpress.org/plugins/ewww-image-optimizer/

Viewing 1 replies (of 1 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    You can see more discussion on a similar issue here: http://wordpress.org/support/topic/errors-after-moving-server-2?replies=10

    The problem is a php misconfiguration with the fileinfo commands, and actually has nothing to do with ImageMagick. Fileinfo is used to determine the mimetype of images, and it needs a valid ‘magic’ database to do so. If it is not configured properly, it defaults to ‘/usr/share/misc/magic’.

    You should report the issue to your webhost, and work with them to correct the issue.

Viewing 1 replies (of 1 total)

The topic ‘PHP finfo errors / Failed to load Magic Database’ is closed to new replies.