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