The specified CGI application misbehaved by not returning a complete set of HTTP headers.

tiran

Joined: 2003-09-22
Posts: 8
Posted: Thu, 2006-01-19 17:39

When I try to upload an image or run the setup check configuration for either imagemagick or netpbm, [i]I get the above mentioned error.

For example:
http://www.benlapid.com/gallery/setup/check_imagemagick.php

Generates the following:

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

Both packages seems to be successfuly installed, and I have the temp directory set up. All these directories have ALL permissions granted to wmh_ and iusr_<machine name> so I do not know where to go from here. Any suggestions?


Gallery version (not just "2"): 1.5.1
PHP version (e.g. 4.3.11): 4.2.3
PHPInfo Link (see FAQ): http://www.benlapid.com/gallery/setup/phpinfo.php
Webserver (e.g. Apache 1.3.33): IIS 6.0
Database (e.g. MySql 4.0.11): n/a
Activated toolkits (e.g. NetPbm, GD): NetPBm, ImageMagick
Operating system (e.g. Linux): Windows 2003 Server
Browser (e.g. Firefox 1.0): IE6

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2006-01-19 22:07

we can't access your phpinfo page, it's password protected.

are there any errors in the iis error log?

 
tiran

Joined: 2003-09-22
Posts: 8
Posted: Fri, 2006-01-20 17:09

Hi,

Thanks for your quick reply. No - there is no error raised in the event log.
The IIS log (for the website) has the following last few entries following the crash:

2006-01-20 17:03:44 69.20.67.233 GET /gallery/skins/bars002/images/navbar.jpg - 80 - 207.237.210.120 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+InfoPath.1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) http://www.benlapid.com/gallery/add_photos.php?set_albumName=portraits&type=popup 304 0 0 213 569
2006-01-20 17:03:53 69.20.67.233 GET /gallery/progress_uploading.php - 80 - 207.237.210.120 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+InfoPath.1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) - 200 0 0 915 380
2006-01-20 17:03:53 69.20.67.233 POST /gallery/save_photos.php - 80 - 207.237.210.120 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+InfoPath.1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) http://www.benlapid.com/gallery/add_photos.php?set_albumName=portraits&type=popup 502 2 2147500037 418 7349

Obviously this has something to do with netpbm/imagemagick not working well, as is demonstrated when I try to run the diag file for either of them, and get the same error page.

 
tiran

Joined: 2003-09-22
Posts: 8
Posted: Fri, 2006-01-20 17:15

Hope the following attachment of all the system settings and configurations helps!

 
tiran

Joined: 2003-09-22
Posts: 8
Posted: Fri, 2006-01-20 21:52

I have upgraded to v1.5.2 but the problem remains the same.

 
tiran

Joined: 2003-09-22
Posts: 8
Posted: Fri, 2006-02-17 02:27

Hi all!

Way over a month have gone by and no response was provided. Does anyone have a solution for this problem? I have set up a user with priviledges to upload to try this bug:

go here:

http://www.benlapid.com/gallery/view_album.php?page=1&set_albumName=portraits

login using username: test
password: test

Try to upload a single image

I am having this problem across the board on the Windows 2003 box. Please help!!!

 
pkarjala

Joined: 2005-06-14
Posts: 65
Posted: Fri, 2006-06-02 18:33

Tiran-

I went to visit your site today to test it out, as I'm experiencing the same error that you are. Unfortunately, the tester account that you have set up does not allow uploading of pictures in any albums. Can you create an album for test uploads?

-Patrick

 
DamijanD

Joined: 2007-02-19
Posts: 4
Posted: Mon, 2007-02-19 12:18

On windows check_imagemagick.php can't work because passthru (uname -a) is not supported on windows

 
funkyboogaloo

Joined: 2007-06-13
Posts: 2
Posted: Wed, 2007-06-13 13:59

If the error is caused by IIS time out settings (time it, you may find it bombs out after 60 seconds or so every time) you'll need cli access to the server or ask your isp to change the default time out settings within IIS. you can do this by running the following script from the command prompt:

cscript.exe c:\inetpub\adminscripts\adsutil.vbs set w3svc/cgitimeout 1800

SMJ