It appears to happen in other places.  Is there a way to globaly change
this ? Or does this mean that I will have to 'try' to change code as I
find each place it happens ?


**********
## while deleting a domain ##

Notice: Undefined variable: domain in
/var/www/localhost/htdocs/vegadns-1.1.1/src/domains.php on line 418

Warning: Cannot modify header information - headers already sent by
(output started at
/var/www/localhost/htdocs/vegadns-1.1.1/src/domains.php:418) in
/var/www/localhost/htdocs/vegadns-1.1.1/src/domains.php on line 419

## while adding a domain ##

Notice: Undefined variable: records_array in
/var/www/localhost/htdocs/vegadns-1.1.1/src/domains.php on line 319

Notice: Undefined index: username in
/var/www/localhost/htdocs/vegadns-1.1.1/src/domains.php on line 340

Warning: Cannot modify header information - headers already sent by
(output started at
/var/www/localhost/htdocs/vegadns-1.1.1/src/domains.php:319) in
/var/www/localhost/htdocs/vegadns-1.1.1/src/domains.php on line 344

***********

 

-----Original Message-----
From: Derkowski, Matthew [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 22, 2005 12:41 PM
To: [email protected]
Subject: RE: [users] PHP issues on vegadns 1.1.1

That did it ! Thanks
 

-----Original Message-----
From: Bill Shupp [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005 12:28 PM
To: [email protected]
Subject: Re: [users] PHP issues on vegadns 1.1.1

Derkowski, Matthew wrote:

> I get this error when trying to add A records, and some times it adds 
> two records.  I don't really know php so I am not sure where to begin 
> to diagnose this. I found a few threads that said to set 
> "error_reporting  =  E_ALL & ~E_NOTICE" on my php.ini, but that is 
> already set.
>  
> *************
> **
> *Notice*: Undefined variable: message in
> */var/www/localhost/htdocs/vegadns-1.1.1/src/records.php* on line
*408*
>
> *Warning*: Cannot modify header information - headers already sent by 
> (output started at 
> /var/www/localhost/htdocs/vegadns-1.1.1/src/records.php:408) in 
> */var/www/localhost/htdocs/vegadns-1.1.1/src/records.php* on line
*408*
>  


Try changing these lines:

        $smarty->assign('message', "Record added successfully!");
        header("Location: 
$base_url&mode=records&domain=".urlencode($domain)."&message=".urlencode
($message));
        exit;

To this:


        $message = "Record added successfully!";
        $smarty->assign('message', $message);
        header("Location: 
$base_url&mode=records&domain=".urlencode($domain)."&message=".urlencode
($message));
        exit;

Bill

Reply via email to