Log in

View Full Version : Bang head and repeat: Imageinfo Failed:


SyrLinus
08-11-2012, 05:48 AM
I'm really stuck and could use some suggestions. So we had a weird gallery failure. We recovered it, kinda and are trying to get ImageMagick working again. Before anyone makes suggestions here's what we've done (and this is vB 3.6.8 P3):

1. We've verified that ImageMagick is installed correctly by

typing "whereis convert" at the command line (shows up as /usr/bin/convert and /usr/local/bin/convert)
typing "convert file.gif file.jpg"

Those worked fine.

2. Re-installed ImageMagick using Yum. Verified all dependencies were in place.

3. Put path from above into CPanel -->vBulletin Options --> Images and select ImageMagick. When trying to upload an image/avatar we get just "Imageinfo Failed:" Nothing else.

4. When I check the error logs for the server, however, I see "sh: /convert: file not found" which has me confused.

5. Open_basedir seems to show the correct locations:

open_basedir
local values: /var/www/vhosts/domain/httpdocs:/tmp
global values: /nfs:/tmp:/usr/local:/usr/bin/local:/etc/httpd:/usr/bin/convert

6. GD works fine but we'd rather use IM since we get more flexibility and allows for resizing of images and such.

What path do I need to fix to ensure that it sees it? my head is starting to hurt.

Lynne
08-11-2012, 02:50 PM
what do you have entered into AdminCP > Settings > Options > image settings > ImageMagick Binary Path ?

(I don't even have a test version of 3.6, but I assume that is there.)

SyrLinus
08-11-2012, 03:03 PM
what do you have entered into AdminCP > Settings > Options > image settings > ImageMagick Binary Path ?

(I don't even have a test version of 3.6, but I assume that is there.)

/usr/local/bin

I've also tried..

/usr/bin

and ...

/ (I moved convert to / just on whim to try)

--------------- Added 1344704173 at 1344704173 ---------------

We figured it out. We're in a plesk based system and had to dig out where the safe_mode was set since I had turned it off in the php.ini.

For reference for those who also use plesk type systems (dedicated Parallels virtual servers) try to find the following path:

/var/www/vhosts/<domain>/conf

And look for httpd.include file. Edit that file with vi or a similar edit and set the safe_mode from on to off. (there are two locations for it in the file)

My headache can finally go away. :)

Lynne
08-11-2012, 05:55 PM
Glad you got it figured out. :)