Menu

#66 FATAL ERROR

open
nobody
5
2003-09-03
2003-09-03
Anonymous
No

Name: Glauber Portella
Email: glauber.portella@macweb.com.br

Name: Glauber Portella
Email: glauber.portella@macweb.com.br

When i try to open the register form and there is no chatter on-line i receive a FATAL ERROR on line 55 in register.php, and the same error occur when i try access the whois_online.php.

I solved this problems in my application change the lines in register.php:

ORIGINAL:

if( !isset($_SESSION['chat']) )
{
header('Status: 302');
header('Location: '.$_SESSION['template']->get_poc_web_root().'/index.php');
exit;
}

if ( !isset($_SESSION['template']) )
{
$template = &new Template();
$_SESSION['template'] = $template;
}

Then i put:

MODIFIED:

if ( !isset($_SESSION['template']) )
{
$template = &new Template();
$_SESSION['template'] = $template;
}

if( !isset($_SESSION['chat']) )
{
header('Status: 302');
header('Location: '.$_SESSION['template']->get_poc_web_root().'/index.php');
exit;
}

I'm not sure about these changes, if it will affect other part of the source, but it works now.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.