Guest Posted January 22, 2003 Posted January 22, 2003 hi, i've got a problem with ? Fatal error: Call to undefined function: crypt_password() in /home/sites/site111/web/shop/create_account_process.php on line 254 // Crypted passwords mods $crypted_password = crypt_password($HTTP_POST_VARS['password']); tep_db_query("insert into " . TABLE_CUSTOMERS . " (customers_gender, customers_firstname, customers_lastname, customers_dob, customers_email_address, customers_default_address_id, customers_telephone, customers_fax, customers_password, customers_newsletter) values ('" . $HTTP_POST_VARS['gender'] . "', '" . $HTTP_POST_VARS['firstname'] . "', '" . $HTTP_POST_VARS['lastname'] . "', '" . tep_date_raw($HTTP_POST_VARS['dob']) . "', '" . $HTTP_POST_VARS['email_address'] . "', '1', '" . $HTTP_POST_VARS['telephone'] . "', '" . $HTTP_POST_VARS['fax'] . "', '" . $crypted_password . "', '" . $HTTP_POST_VARS['newsletter'] . "')"); $insert_id = tep_db_insert_id(); tep_db_query("insert into " . TABLE_ADDRESS_BOOK . " (customers_id, address_book_id, entry_gender, entry_company, entry_firstname, entry_lastname, entry_street_address, entry_suburb, entry_postcode, entry_city, entry_state, entry_country_id, entry_zone_id) values ('" . $insert_id . "', '1', '" . $HTTP_POST_VARS['gender'] . "', '" . $HTTP_POST_VARS['company'] . "', '" . $HTTP_POST_VARS['firstname'] . "', '" . $HTTP_POST_VARS['lastname'] . "', '" . $HTTP_POST_VARS['street_address'] . "', '" . $HTTP_POST_VARS['suburb'] . "', '" . $HTTP_POST_VARS['postcode'] . "', '" . $HTTP_POST_VARS['city'] . "', '" . $state . "', '" . $HTTP_POST_VARS['country'] . "', '" . $HTTP_POST_VARS['zone_id'] . "')"); tep_db_query("insert into " . TABLE_CUSTOMERS_INFO . " (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('" . $insert_id . "', '0', now())"); i know this problem has already been told but i don't know how to solve it. Is this fonction has to be declare in a special file ? I use the US version 2.2 from 2003.01.15 and make some minor changes to account_details.php and create_account_process.php to put a drop down menu in the state field in change of the regular text field.
Guest Posted January 22, 2003 Posted January 22, 2003 i try to delete the line 254 : $crypted_password = crypt_password($HTTP_POST_VARS['password']); to see if just this part of code was a problem to get the next step to create_account_succes.php And this way it seems that the new account is created. BUT !!! I suppose by this way that the password is not encrypted.... Do you think it could be a problem (exept confidentiality's aspect) for the other process of registration and database incrementation (sorry for my so bad english :oops: ) Or is there an other way to declare crypt_password() ?? thanks to all
Guest Posted January 22, 2003 Posted January 22, 2003 hi ciju, Or is there an other way to declare crypt_password() ?? crypt_password is an old function of osC and was removed(2003-01-10) in the CVS, look here for more details: http://marc.theaimsgroup.com/?l=tep-commit...23110016092&w=2 and http://marc.theaimsgroup.com/?l=tep-commit...23109716087&w=2 normally, if you already have the password_funcs.php, you can just rename the crypt_password call(s) to tep_crypt_password. HTH
Guest Posted January 22, 2003 Posted January 22, 2003 oops nice qoute. ;-) i made a little mistake, i mean't you can rename the crypt_password calls to tep_encrypt_password
Guest Posted January 22, 2003 Posted January 22, 2003 ok....but now i 've got a "Call to undefined function: tep_crypt_password() " :roll: where does this function is detailed...i mean in which file ? ideas ?
Guest Posted January 22, 2003 Posted January 22, 2003 ok....but now i 've got a "Call to undefined function: tep_crypt_password() " :roll: where does this function is detailed...i mean in which file ? ideas ? it should work if you rename the call to tep_encrypt_password. notice the en before crypt. :)
Guest Posted January 22, 2003 Posted January 22, 2003 oups sorry, it must be my eyes !! i had found a topic on this subject yesterday and i tried, but i think i had done the same mistake !! everythings fine now, so thanks !! see you
Recommended Posts
Archived
This topic is now archived and is closed to further replies.