php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18901 CGI ERROR
Submitted: 2002-08-14 07:46 UTC Modified: 2002-09-25 02:47 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: jmsampaio at novis dot pt Assigned:
Status: Closed Package: IIS related
PHP Version: 4.2.0 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jmsampaio at novis dot pt
New email:
PHP Version: OS:

 

 [2002-08-14 07:46 UTC] jmsampaio at novis dot pt
Hi.....

I am getting this CGI error very frequently....which reads as.... is more after an update or delete when the page return (header("Location"...) ...

cgi error:
   The specified CGI application misbehaved by not returning a complete set 
of HTTP headers. The headers it did return are:

my system is  Win 2000, PHP 4.2.0, IIS 5.0
I checked the install.txt file also for this problem.

I have given all the permissions and still this problem persists.

It will be very useful for me, if you can give some concrete solution to 
overcome this problem.

Thanks,
JS.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-14 07:49 UTC] phildriscoll@php.net
Are you using php as cgi or isapi? 
Can you confirm that this is an occasional problem and php 
normally works? 
Can you check the error log in event viewer to see if 
there are any clues there? 
Thanks 
 [2002-08-14 09:33 UTC] jmsampaio at novis dot pt
I use the PHP with Smarty compiler....

The pages normaly wor, but when i return after an delete or update, the page retur the error: "Cgi error...."

I don't understand...

In event viewer are  ok!

Thanks!
 [2002-08-14 11:50 UTC] phildriscoll@php.net
 Are you using php.exe or php4isapi.dll? 
 [2002-09-08 15:38 UTC] cgersh at up dot net
I don't know if this is the exact same thing but - I get random CGI ERROR ...not returning a complete set of headers errors as well.   This is on several Windows 2000 IIS 5.0 machines.

It only happens to my pages that are in frames and that do a session_start().  It looks like the pages sometimes crash because of fighting over access to the session data since both frames are requested at almost the same time.  The frameset never crashes and I assume this is because it has to finish before the framed pages are called.  If you refresh each frame by hand after the errors happen, each page executes OK.

Charlie
 [2002-09-08 15:52 UTC] cgersh at up dot net
PS.  This is with the last few versions of PHP, I'm now on version 4.2.3 and I'm using php.exe
 [2002-09-14 05:49 UTC] cgersh at up dot net
It's not caused by session_start.  I replaced that with my own session handler and still have the problem.  It looks like you have to have frames and be displaying in the browser on the desktop of the web server to see it happen.
 [2002-09-15 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2002-09-25 02:47 UTC] sas@php.net
The behaviour of returning status codes has been fixed in 4.3.0.
 [2002-10-25 10:44 UTC] sethm at gladstone dot uoregon dot edu
I'm having this problem as well. Users are experiencing it up to once ever 10-15 hits under load (3+ hits a second) and slightly less (every 30 or so hits) when there is less load. PHP (v4.2.3) is being used on a w2k (sp 3) web server(iis 5 sp'd). I'm running php as a cgi since this is a production site. We recently (2 months ago) moved from our old server to this new one. The old server (php v4.1.2, w2k sp2, iis sp'd) did NOT have this problem. I copied the old php over to the new server and used my old php.ini file as well to test. Problem still occured. Nothing of note appears in any of the log file. I'm still trying to determine if this is related to php, or IIS. I have recieved this error occationally on the home screen of the site (as well as any other php generated page), but the pages normally work without a problem. The error -immediatly- occurs, where as normal pages take some time to load. Hitting the Reload/Refresh button always works.

Also, I believe this only occurs on IE browsers (both 5.5 and 6, I haven't tried lower versions). I use Mozilla mostly myself, and have never had the problem with that browser, so this may be a browser compatibility issue.

Thanks - Seth
 [2002-10-25 11:00 UTC] jmsampaio at novis dot pt
Tks for your colaboration!!

JS
 [2002-10-25 15:01 UTC] sethm at gladstone dot uoregon dot edu
It looks like this is the same problem as Bug #9852. They have  an on-going discussion and a number of solutions to try (even though the php folks closed that bug 8 months ago).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 05:01:31 2024 UTC