Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Deleted Admin File - Help


roo1967

Recommended Posts

Posted

Hi

 

This is my first post as I'm an Oscommerce newbie and oh don't I feel stupid. :blush:

 

I mistakenly deleted my \admin\includes\application_top.php file today and yes you guessed I haven't got a backup (lesson learn't), I have managed to download the file from the setup software and this gives me the correct panel to login into my admin area now but I'm getting an error message when I try and login saying

 

Fatal error: Call to undefined function tep_validate_password() in /websites//catalog/admin/login.php on line 26

 

I guess that this should be in the application_top file that I deleted because I haven't changed anything else, but I'm not quite sure what I need to change.

 

This is the bit in the login.php that it fails on

 

$check_admin = tep_db_fetch_array($check_admin_query);

// Check that password is good

if (!tep_validate_password($password, $check_admin['login_password'])) {

$HTTP_GET_VARS['login'] = 'fail';

 

any help would be gratefully received.

 

Thanks

Roo

Posted
Fatal error: Call to undefined function tep_validate_password() in /websites//catalog/admin/login.php on line 26

 

this function is declared in includes/functions/password_funcs.php. maybe you deleted more files than you thought? either that, or some of your defines for the directories in includes/configure.php were smashed.

Posted
this function is declared in includes/functions/password_funcs.php. maybe you deleted more files than you thought? either that, or some of your defines for the directories in includes/configure.php were smashed.

 

Hi Thanks for your reply,

 

Just looked the password_funcs.php is still there and I surprisingly had backup copies of my configure.php files so I have reinstalled them but I still get the same error.

Posted
Hi Thanks for your reply,

 

Just looked the password_funcs.php is still there and I surprisingly had backup copies of my configure.php files so I have reinstalled them but I still get the same error.

What osc version do you have?

Posted

Hi

 

Thanks everyone who has posted, have eventually got it sorted, needed a bit of help and I couldn't tell you what had gone wrong, but thanks for your time.

 

 

Backups will be my middle name in future

 

:)

Archived

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

×
×
  • Create New...