On Wed, 1 Nov 2006, khaja mohideen wrote:

> Notice: Undefined index: gs in
> /var/www/forums/html/ganglia/get_context.php on line
> 44

It appears get_context.php is looking for a cookie that doesn't exist.  For 
whatever reason, this error is generating some output which PHP interprets as 
content meant for the client's browser.

> Warning: Cannot modify header information - headers
> already sent by (output started at
> /var/www/forums/html/ganglia/get_context.php:44) in
> /var/www/forums/html/ganglia/header.php on line 56

All of these messages occur because header information cannot be changed once 
content starts being generated for the client.  The previous error in 
get_context.php started generating output, so then all calls to setcookie() or 
header() fail.

So it looks like the real question is: How is get_context.php getting run 
without a "gs" parameter being set in the GET request or in a cookie?  I'm 
afraid I don't know the answer to that.  One option might be to add some extra 
checking to these lines in get_context.php:

# Set a default value for gridstack
$gridstack = array("DEFAULT");
if (isset($_GET["gs"]) and $_GET["gs"])
       $gridstack = explode(">", rawurldecode($_GET["gs"]));
else if (isset($_COOKIE["gs"]))
       $gridstack = explode(">", $_COOKIE["gs"] );

But I haven't tested this code out so I can't be certain that it works.

-- Rick

--------------------------
Rick Mohr
Systems Developer
Ohio Supercomputer Center


Reply via email to