Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help- Receiving orders but Cannot enter Admin - Fatal Error


maui1

Recommended Posts

Hi OSC crew

been working on OS for a few years- copied my site to new domain- Catalog works perfect , getting orders but cannot get into my Admin -

 

On Login Panel- when I write my email address and enter the password and hit enter we receive this message:

 

Fatal error: Call to undefined function: tep_validate_password() in C:\Domains\mystore.com\wwwroot\mystore\admin\login.php on line 26

 

been through almost every possible link here but can't find direct solution- so thanks - any help appreciated..

Link to comment
Share on other sites

Do you have an Administrators table on your database???

 

i am using MS2 version of Os on my working site and I dont have an administrators table (dont have a login php either) on my sql database!! Ms2 version does not let you create an admin!!

 

I found a way to include the administrators table in the copy of the old site but I am wonering is there a a direct way to create the administrators table??

Link to comment
Share on other sites

Do you have an Administrators table on your database???

 

i am using MS2 version of Os on my working site and I dont have an administrators table (dont have a login php either) on my sql database!! Ms2 version does not let you create an admin!!

 

I found a way to include the administrators table in the copy of the old site but I am wonering is there a a direct way to create the administrators table??

yes - I just checked and there is an Admin file on the Database

Link to comment
Share on other sites

That error means that:

 

1. One or more of the files in admin are missing, or

2. One or more of the files in admin are corrupted (did not upload correctly), or

3. One or more of the files in admin does not belong to the original file set you were using (did you try to upgrade by overwriting files?).

 

Try uploading the 'admin' folder files again via FTP.

 

Vger

Link to comment
Share on other sites

That error means that:

 

1. One or more of the files in admin are missing, or

2. One or more of the files in admin are corrupted (did not upload correctly), or

3. One or more of the files in admin does not belong to the original file set you were using (did you try to upgrade by overwriting files?).

 

Try uploading the 'admin' folder files again via FTP.

 

Vger

Thanks for quick reply!

"3. One or more of the files in admin does not belong to the original file set you were using (did you try to upgrade by overwriting files?)."

This might be the problem- as I FTPd my old store from server onto new server and changed the 2 Admin config.php database information accordingly- so should I reload Admin anywways?

Link to comment
Share on other sites

no, make sure the paths are proper. post the top portion of your config file or mark out the db info and password then place here

Link to comment
Share on other sites

here we go - admin/includes/config.php

let me know if this is what you are after. thank you!!

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.mysite.com/wwwroot/mystore/');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', 'd:/domains/mysite.com/wwwroot/mystore/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/mystore/admin/'); // absolute path required

define('DIR_FS_ADMIN', 'd:/domains/mysite.com/wwwroot/mystore/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/'); // absolute path required

define('DIR_FS_CATALOG', 'd:/domains/mysite.com/wwwroot/mystore/'); // absolute path required

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

 

// define our database connection

define('DB_SERVER', 'myserver.net'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'mystoreadmin');

define('DB_SERVER_PASSWORD', 'mypassword');

define('DB_DATABASE', 'mystore');

define('USE_PCONNECT', 'false'); // use persisstent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

Link to comment
Share on other sites

define('DIR_WS_ADMIN', '/mystore/admin/'); // absolute path required

define('DIR_FS_ADMIN', 'd:/domains/mysite.com/wwwroot/mystore/admin/'); // absolute pate required

 

these both say absolute path, yet one is not set to absolute path

Link to comment
Share on other sites

here is an example configure.php file from inside the store/includes

 

 

<?php

define('HTTP_SERVER', 'http://www.yourdomain.com');

define('HTTPS_SERVER', 'https://www.yourdomain.com');

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');

define('HTTPS_COOKIE_DOMAIN', 'www.yourdomain.com');

define('HTTP_COOKIE_PATH', '/store/');

define('HTTPS_COOKIE_PATH', '/store/');

define('DIR_WS_HTTP_CATALOG', '/store/');

define('DIR_WS_HTTPS_CATALOG', '/store/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/yourname/public_html/store/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'xxxxxx');

define('DB_SERVER_PASSWORD', 'xxxxxx');

define('DB_DATABASE', 'xxxxxx');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

one from inside store/admin/includes

 

 

<?php

define('HTTP_SERVER', 'http://www.yourdomain.com');

define('HTTP_CATALOG_SERVER', 'https://www.yourdomain.com');

define('HTTPS_CATALOG_SERVER', 'https://www.yourdomain.com');

define('ENABLE_SSL_CATALOG', true);

define('DIR_FS_DOCUMENT_ROOT', '/home/yourname/public_html/store/');

define('DIR_WS_ADMIN', '/store/admin/');

define('DIR_FS_ADMIN', '/home/yourname/public_html/store/admin/');

define('DIR_WS_CATALOG', '/store/');

define('DIR_FS_CATALOG', '/home/yourname/public_html/store/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', '');

define('DB_SERVER_PASSWORD', 'xxxxxx');

define('DB_DATABASE', 'xxxxxxx');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

Link to comment
Share on other sites

Hi Guys

ok edited code and still not getting through to Admin - and this is what is appearing - also this text now appears above the Admin Login Box and on my store home page on top...help!

 

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Domains\mystore.com\wwwroot\store\admin\includes\configure.php:37) in C:\Domains\mystore.com\wwwroot\store\admin\includes\functions\sessions.php on line 68

 

Fatal error: Call to undefined function: tep_validate_password() in C:\Domains\mystore.com\wwwroot\store\admin\login.php on line 26 :'(

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...