View Full Version : New Error Generated
colden
04-24-2005, 09:50 PM
I uploaded a clean config.php after facing a corrupt file, but as soon as I hit submit to Create New Nameserver for jp and whois.jprs.jp, I got:
Fatal error: Call to undefined function: stop() in /home/domain/public_html/registration/whois/admin/index.php on line 2754
Thinking I had to delete a nameserver before trying to add another, I later deleted an unused nameserver to make room if necessary. But this time I got an error that killed the entire script:
Parse error: parse error, unexpected $ in /home/domain/public_html/registration/whois/config/config.php on line 1
The button was hit once only.
:blink:
Patrick
04-24-2005, 10:16 PM
There is an error there.
The line mentioned is suppose to trigger an error that causes the script to fail.
The real problem is that you were trying to add a nameserver that already existed within the script. I had controls set in to catch this, but unforunately it seems I had typos in the code that was suppose to raise an error.
You can fix this for yourself if you want:
FIND:
// if nameserver exists, error
if (isset($this->CONFIG->NAMESERVERS[$nameserver_address]))
{
$this->stop("nameserver_exists");
}
// if empty nameserver address, error
else if (empty($nameserver_address))
{
$this->stop("bad_nameserver");
}
and REPLACE WITH:
// if nameserver exists, error
if (isset($this->CONFIG->NAMESERVERS[$nameserver_address]))
{
$this->ERROR->stop("nameserver_exists");
}
// if empty nameserver address, error
else if (empty($nameserver_address))
{
$this->ERROR->stop("bad_nameserver");
}
But realize that this is just fixing the ability to catch duplicate nameservers. The real problem is that you are attempting to add a nameserver that already exists in the configuration.
colden
04-25-2005, 12:18 AM
Thanks. I'll apply that code.
What about the other error that hosed my entire configuration? I am referring to this:
>>"Thinking I had to delete a nameserver before trying to add another, I later deleted or at least I tried to delete an unused nameserver... But this time I got an error that killed the entire script:
Parse error: parse error, unexpected $ in /home/domain/public_html/registration/whois/config/config.php on line 1
The button to confirm the deletion was hit once only."
What might this be?
Patrick
04-25-2005, 05:23 PM
I am guessing your second error was caused by the first. I will look into it.
colden
04-25-2005, 05:58 PM
Much appreciated.
Thanks
Powered by vBulletin™ Version 4.0.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.