Opened 12 years ago

#467 new defect

Problem with xlogin.php/cache.php

Reported by: rmf@… Owned by: rjl
Priority: normal Milestone:
Component: General Version:
Severity: normal Keywords:
Cc:

Description

There seems to be a funny interaction between Log/win.php and various maia

components. What I see in my catalina log is the following:

INFO: GlobalPhpCGIServlet: maia: 2007-04-21 17:32:15 (EDT) - Warning - Cannot modify header information - headers already sent by (output started at /opt/csw/php5/lib/php/Log/win.php:153) at /export/home/arc/htdocs/maia/cache.php line [498]
and

INFO: GlobalPhpCGIServlet: maia: 2007-04-21 12:11:25 (EDT) - Warning - Cannot modify header information - headers already sent by (output started at /opt/csw/php5/lib/php/Log/win.php:153) at /export/home/arc/htdocs/maia/xlogin.php line [232]

Looking at those lines, we see that they are trying to insert a header, but looking at Log/win.php, this has already started sending stuff out in the body section. This causes a blank page on the client end (the same symptom as Ticket#402). I managed to hack this by adding an http redirect to the page in question -

       //header("Location: index.php?PHPSESSID=" . session_id() . "&" .
$_SERVER["QUERY_STRING"]);
       print("\n\n<html><head><meta http-equiv=\"Refresh\" content=\"0;
URL=http://www.myhost.com/maia/index.php\"></head></html>");


and this makes it function correctly (apparently). A similar fix was made to cache.php. Looking at it, I suppose a cleaner attempt would have been to add the session_id/query string, but since I'm not certain this is the best fix, I'll let it be :)

/opt/csw/bin/php5 -v
PHP 5.2.1 (cli) (built: Mar 15 2007 12:08:55)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

Change History (1)

comment:1 Changed 12 years ago by anonymous

More important is finding out why it is spitting out an error on line 498

of cache.php and line 232 of xlogiin.php...

Note: See TracTickets for help on using tickets.