Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I have an error Signup Page Confirmation..HELP??


Guest

Recommended Posts

Posted

I have just created my new oscommerce site, https://clubequus.com/catalog/create_account.php

as I was running through the signup up steps to become a member and hit send the following error can up

 

Fatal error: Call to undefined function: checkdnsrr() in F:\hshome\saddlers\clubequus.com\catalog\includes\functions\validations.php on line 116

 

Can anyone help?>> Please

Posted

checkdnsrr() is used to make sure the email the new customer has entered is a valid email address and most likely can only be used if you are running your shopping cart on a SERVER that supports this kind of action...I ran into the same problem when signing up when running the cart on my computer, except that it didn't like sending SMTP emails out...which of course fixed itself when i put it on a real server...

Posted

checkdnsrr()

 

Checks DNS records corresponding

to a given Internet host name or IP address.

 

 

sorry about that >:)

 

 

 

 

 

................................................................................

.......................

the first post i made is totally incorrect...sorry about that...heh

  • 3 months later...
Posted

Ok that last answer was a total crock.

The reason we get the Fatal error Call to undefined Function Checkdnsrr() is very simple. Your cart is on a Windows box.

The Checkdnsrr function is not implemented in PHP running on windows.

 

I have a very simple solution that will do almost exactly the same thing.

 

Go to your includes/functions/general.php and find the last line before the ?>

Then add this:

 

////

// Check for Valid Email Address

function tep_CheckDNSRR($domain, $type = '' )

{

if( !empty( $domain ) )

{

# Set Default Type:

if( $type == '' ) $type = "MX";

@exec( "nslookup -type=$type $domain", $output );

while( list( $k, $line ) = each( $output ) )

{

# Valid records begin with host name:

if( eregi( "^$domain", $line ) )

{

# record found:

return true;

}

}

return false;

}

}

 

Then go to your includes/functions/validations.php

find this line:

 

if ($valid_address && ENTRY_EMAIL_ADDRESS_CHECK == 'true') {

if (!checkdnsrr($domain, "MX") && !checkdnsrr($domain, "A")) {

$valid_address = false;

}

}

return $valid_address;

}

 

Change it to this:

 

if ($valid_address && ENTRY_EMAIL_ADDRESS_CHECK == 'true') {

if (!tep_CheckDNSRR($domain,"MX") && !tep_CheckDNSRR($domain,"A")) {

$valid_address = false;

}

}

 

return $valid_address;

}

 

Then go into the admin->configuration->email setttings and set to validate email through dns.

That should do it for you.

I know that this will at least make sure the email address if from a real domain with an MX and A record.

Let me know how it works out.

[email protected]

If you choose not to decide you still have made a choice, I will choose a purpose clear, I will choose Free Will. --Neal Peart - Rush

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...