ImageMagick CGI error.

Waterman981

Joined: 2004-12-20
Posts: 7
Posted: Mon, 2004-12-20 00:47

I cannot get any of the graphics toolkits to configure properly for G2. I am using ImageMagick on my Gallery 1.4.4 installation. Running PHP 4.3.10 in CGI mode with no other problems on IIS 6 (I tried reverting back to 4.3.4, and I am also running other php apps such as b2evolution & phpBB successfully).

When I enter a path to Imagemagick (or NetPBM) and click either save or test I get:
"The specified CGI application misbehaved by not returning a complete set of HTTP headers."
This happens with any path entered if it is correct or not. I turned debugging to buffered, but it doesn't get any output when I hit save or test.

I've searched and couldn't find an answer so any help would be appreciated!

-Michael
----

Gallery version: G2 - Alpha 4
PHP version (eg 4.2.1): 4.3.10 In CGI mode (with cmd.exe having proper permissons)
Graphics Toolkit(s): Imagemagick 6.1.X
Operating system: Win2003 - IIS 6.0

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Mon, 2004-12-20 02:04

So Gallery 1 works fine? What is the path to your NetPBM / IM files? Have you tried moving it to a different location? I know its a long shot, but its possible that if you have your IM/NetPBM files in the /cgi-bin/ something might not like it... i dunno why :)

 
Waterman981

Joined: 2004-12-20
Posts: 7
Posted: Mon, 2004-12-20 03:40

Exactly. Gallery 1 works perfectly. I have IM at c:\imagemagick. I have given both the Network Service, and IUSER_machinename accounts read/write/execute privileges. I did try moving it within the gallery2 directory as well and it also had appropriate permissions.

-Michael

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2004-12-20 04:46

when all else fails, try immediate debug mode instead of buffered.. if everything dies at some point then it doesn't get a chance to write out the buffered debug output. also, anything in your webserver logs?

 
Waterman981

Joined: 2004-12-20
Posts: 7
Posted: Mon, 2004-12-20 07:00

With Immediate debug mode on I can hit test, but everything fails(problem executing binary). If I hit save I still get the CGI error. Nothing in the webserver logs if I get logging from when I hit save I only see a Post to /gallery2/main.php.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2004-12-20 16:28

please post the output from immediate debug mode and clicking Test. if the results are different when the path is correct vs incorrect please post both. (links to the output would be nice if it is very long..)

 
Waterman981

Joined: 2004-12-20
Posts: 7
Posted: Mon, 2004-12-20 23:35

Ok. I put some debug output here. One interesting thing I tried was copying cmd.exe from my PHP directory (the one PHP should be calling) to my imagemagick directory. I put the results of that up there as well.

 
Waterman981

Joined: 2004-12-20
Posts: 7
Posted: Tue, 2004-12-21 00:12

Well I just downgraded from IM 6.1.7 to 5.5.7, and now it works. I thought I was at 5.5.7 before, and had upgraded to try to fix it. So it must be something with that version. I saw people were having trouble in Gallery1, but I thought it was fixed in G2. So that's what did it for me. Hopefully that debug output can help in getting 6.1.7 to work.

-Michael

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2004-12-21 01:37

yes, G2 should work with IM 6.1.x but it seems there is something wrong with that specific version you tried.. there are a bunch of these:

Quote:
Status: -1073741819 (expected 0)

in the debug output, which G2 interprets as an error. You need an IM that correctly returns 0 exit status when it works for G2 to use it.. sound like 5.5.7 does that fine.

 
Waterman981

Joined: 2004-12-20
Posts: 7
Posted: Tue, 2004-12-21 02:32

For everyone's reference the one I was using was ImageMagick-6.1.7-Q16-windows-static from here. I am now using ImageMagick-5.5.7-Q16-windows-static. I'm just glad it's now working so I can try out G2!

 
Iver_kl
Iver_kl's picture

Joined: 2007-10-05
Posts: 6
Posted: Sat, 2007-10-06 01:27

As with my case with Gallery 2, the time I installed it all went well. But recently I cannot activate or deactivate modules because when I try to navigate to the modules page while logged in, the modules page seems empty.

 
Iver_kl
Iver_kl's picture

Joined: 2007-10-05
Posts: 6
Posted: Sat, 2007-10-06 01:31

By the way this was not before I did migration. My Imagemagic is activated so I was kinda confused about the error. I tried forcing my site to use php 5 instead thru editing a htaccess file and luckily the error was resolved.