Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I get this error below and don't lnow how to fix i


Recommended Posts

Posted

Call to undefined function: tep_encrypt_password() in /home2/rick02/public_html/cloth/create_account.php on line 183

 

how do i fix this..

I ca't figure it out.

thank you in advaced

 

  if ($error == false) {

      $sql_data_array = array('customers_firstname' => $firstname,

                              'customers_lastname' => $lastname,

                              'customers_email_address' => $email_address,

                              'customers_telephone' => $telephone,

                              'customers_fax' => $fax,

                              'customers_newsletter' => $newsletter,

                      LIne 183---->        'customers_password' => tep_encrypt_password($password));

 

      if (ACCOUNT_GENDER == 'true') $sql_data_array['customers_gender'] = $gender;

      if (ACCOUNT_DOB == 'true') $sql_data_array['customers_dob'] = tep_date_raw($dob);

Posted
can anyone help me????
I don't think so.

 

The function tep_validate_password is located in the file catalog/includes/functions/password_funcs.php. That file is included in application_top.php somewhere around line 433:

// include the password crypto functions
 require(DIR_WS_FUNCTIONS . 'password_funcs.php');

Without application_top.php nothing works, so you will have to find out why that particular file is not included, nobody can tell you (as far as I know).

Posted
 

QUOTE(noppie @ Sep 7 2005, 10:35 PM)

can anyone help me????

I don't think so.

 

well JanZ,

you did help me..

I was missing the catalog/includes/functions/password_funcs.php

 

and if it wasn't for you I wouldn't have known

 

so thank you so much..

you did it.

noppie

  • 2 years later...
Posted

I get the same error message call to undefined function: tep_encrypt_password() in catalog/admin/customers.php. on line 324 I got catalog/includes/functions/password_funcs.php and the application_top but I dont know what else it can be?

here is the code causing it to throw error.

$sql_data_array = array('customers_firstname' => $customers_firstname,

'customers_lastname' => $customers_lastname,

'customers_email_address' => $customers_email_address,

'customers_telephone' => $customers_telephone,

'customers_fax' => $customers_fax,

'customers_newsletter' => $customers_newsletter,

error message-------->'customers_password' => tep_encrypt_password($password));

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...