+ Reply to Thread
Results 1 to 5 of 5

Thread: New Error Generated

  1. Join Date
    Sep 2004
    Posts
    9

    New Error Generated

    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:

  2. Join Date
    Aug 2004
    Posts
    781

    New Error Generated

    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:
    Code:
    // 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:
    Code:
    // 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.

  3. Join Date
    Sep 2004
    Posts
    9

    New Error Generated

    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?

  4. Join Date
    Aug 2004
    Posts
    781

    New Error Generated

    I am guessing your second error was caused by the first. I will look into it.

  5. Join Date
    Sep 2004
    Posts
    9

    New Error Generated

    Much appreciated.

    Thanks

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts