Robin Bowes wrote:
> 
> 4. When the axfr-get completes, I get a page full of errors - the
> following lines are repeated and not necessarily in this order:
> 
> Notice: Undefined index: default_soa in
> /var/www/vegadns/vegadns-0.9.9.1/src/domains.php on line 534
> Notice: Undefined index: default_soa in
> /var/www/vegadns/vegadns-0.9.9.1/src/domains.php on line 589
> Notice: Undefined index: default_soa in
> /var/www/vegadns/vegadns-0.9.9.1/src/domains.php on line 604
> Notice: Undefined index: default_ns in
> /var/www/vegadns/vegadns-0.9.9.1/src/domains.php on line 537
> Notice: Undefined index: default_ns in
> /var/www/vegadns/vegadns-0.9.9.1/src/domains.php on line 585
> Notice: Undefined index: out_array in
> /var/www/vegadns/vegadns-0.9.9.1/src/functions.php on line 433
> 
> If I click in the address bar and hit return, the page displays OK but
> with the following notices:
> 
> Notice: Undefined index: default_soa in
> /var/www/vegadns/vegadns-0.9.9.1/src/domains.php on line 534
> Notice: Undefined index: default_ns in
> /var/www/vegadns/vegadns-0.9.9.1/src/domains.php on line 537
> 
> And, the following error:
> 
> Error: <alphabetically-first-domain> is already in this database
> 
> All the domains seem to have imported OK, e.g. if I click on "Domains".

I've fixed all these.

Basically, variables are being used when they are not yet defined.

In functions.php, I've added "$out_array = '';" to the top of the
parse_dataline function

In domains.php, I've replaced code like this:

    if ( $_REQUEST['default_soa']=="on") ...

with code like this:

 if (isset($REQUEST['default_soa']) && $_REQUEST['default_soa']=="on")

I've also modified axfr-get.php to use the -R option to tcpclient:

$command = "/usr/local/bin/tcpclient -R '" ... etc

R.

Reply via email to