ListMailPRO Email Marketing Software Forums

ListMailPRO Email Marketing Software Forums => General Help & How-To => Topic started by: eric on April 03, 2005, 09:06:22 pm

Title: getting this error message
Post by: eric on April 03, 2005, 09:06:22 pm
I installed the 1.8 version as a fresh install and when I sign up to my list I get the following error message on the confirmation page

Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /home/customwe/public_html/mail/signup.php on line 51
Thanks for signing up, .

I still get the e-mails sent to me but this error is at the top of the confirmatin page.

Thanks
Title: getting this error message
Post by: DW on April 04, 2005, 10:27:46 am
Can you tell me whether or not ListMail is correctly detecting the IP address for the user?  It's on the User Database -> Edit page.

To suppress this error message, modify line 51 of signup.php

From
Code: [Select]
if($ipaddr<>'Unknown') $iphost = gethostbyaddr($ipaddr);
To
Code: [Select]
if($ipaddr<>'Unknown') $iphost = @gethostbyaddr($ipaddr);

Regards