khenn Posted January 1, 2003 Posted January 1, 2003 I just installed the newest 2.2 releases dated 12-30 and 12-31 2002 and tested this on both. I was configuring and wanted to test creating a new account so that I could test purchasing a product. I was not able to create a new account. I filled out the form and clicked on the continue button. It took me to create_account_process.php with a blank screen. I added a few "echo" statements to try to find where it was blowing up. I was led to the catalog/includes/functions/validations.php file. I determined that if I commented out the following three lines of code at the end, that I could then register successfully. // if (!checkdnsrr($domain, "MX") && !checkdnsrr($domain, "A")) { // $valid_address = false; // } It actually appeared to be blowing out on the first line with the call to checkdnsrr. I searched all of the directories for a file containing that function, but found nothing. Am I missing something? Where is that function located? Thanks Kris
ambience Posted January 1, 2003 Posted January 1, 2003 Hi, Try this.. Go into the Administration section, Customers, E-mail options, and change the setting verify e-mail address through dns to false. Graeme. Graeme Simms.
burt Posted January 1, 2003 Posted January 1, 2003 checkdnsrr is not an Oscommerce function. It is a core part of PHP: http://www.php.net/manual/en/function.checkdnsrr.php So you are trying to validate an email address that does not have a *valid* MX and/or A record. http://www.menandmice.com/online_docs_and_...ry/a.record.htm <--What is an A record ? http://www.menandmice.com/online_docs_and_...m?mx.record.htm <--What is an MX record ?
khenn Posted January 2, 2003 Author Posted January 2, 2003 Thanks, actually, both responses helped. I turned off the DNS validation, and also looked at the documentation for the function. I am running development on WIN2K and according to the documentation, that function is not supported on NT (I guess that's why it blew out) . Although there is a comment added that there is another function called checkdnsrr_winNT that supposedly does work. Would there be a way of changing the script to include an if statement to determine what OS you were running and then run the appropriate function? Kris
Recommended Posts
Archived
This topic is now archived and is closed to further replies.