Jump to content
Sign in to follow this  

ADMIN login error

Recommended Posts

If you install this contrib to a fresh OSC install, you may get this error if you just copy the files:


1146 - Table 'commerce.TABLE_ADMINISTRATORS' doesn't exist


select id from TABLE_ADMINISTRATORS limit 1


Then check your: admin/includes/database_tables.php file. it is probably missing this: define('TABLE_ADMINISTRATORS', 'administrators');


Here is where the missing code should be:



$Id: database_tables.php,v 1.1 2003/06/20 00:18:30 hpdl Exp $


osCommerce, Open Source E-Commerce Solutions



Copyright © 2003 osCommerce


Released under the GNU General Public License



// define the database table names used in the project

define('TABLE_ADDRESS_BOOK', 'address_book');

define('TABLE_ADDRESS_FORMAT', 'address_format');

define('TABLE_ADMINISTRATORS', 'administrators');

define('TABLE_BANNERS', 'banners');

define('TABLE_BANNERS_HISTORY', 'banners_history');

define('TABLE_CATEGORIES', 'categories');

Edited by Desertsky

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this