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
Posts: 3236
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
Posts: 7
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
Posts: 8601
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?
Posts: 7
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.
Posts: 8601
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..)
Posts: 7
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.
Posts: 7
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
Posts: 8601
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:
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.
Posts: 7
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!
Posts: 6
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.
Posts: 6
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.