Forums / General Questions / 1146 Table 'xxxxx_xxx.configuration' doesn't exist

1146 Table 'xxxxx_xxx.configuration' doesn't exist

Locked

Started by mw4kids on 3 Nov 2010, 12:24 PM · Views: 2,644

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
3 Nov 2010, 12:24 PM
#1
mw4kids avatar

mw4kids

Zen Follower

Join Date:
Oct 2008
Posts:
403
Plugin Contributions:
0

1146 Table 'xxxxx_xxx.configuration' doesn't exist

Hi All,

Recently moved my site to a new server. All was fine until this morning I saw this message when trying to access my site:

1146 Table 'xxxxx_xxx.configuration' doesn't exist
in:
[select configuration_key as cfgkey, configuration_value as cfgvalue from configuration]

Not sure if it occurred before or after canceling the old account.

Any ideas how I can fix this?

Thanks!

3 Nov 2010, 2:37 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: 1146 Table 'xxxxx_xxx.configuration' doesn't exist

Does you database have a prefix in front of the tables? e.g. zen_configuration?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

3 Nov 2010, 3:10 PM
#3
mw4kids avatar

mw4kids

Zen Follower

Join Date:
Oct 2008
Posts:
403
Plugin Contributions:
0

Re: 1146 Table 'xxxxx_xxx.configuration' doesn't exist

Hi Kuroi,

Yes it does.

3 Nov 2010, 3:31 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: 1146 Table 'xxxxx_xxx.configuration' doesn't exist

Then you will need to add that prefix to your includes/configure.php and admin/includes/configure.php files.

Look for the lines that read

define('DB_PREFIX', '');
and insert your prefix between the two quotes after the comma.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

3 Nov 2010, 4:37 PM
#5
mw4kids avatar

mw4kids

Zen Follower

Join Date:
Oct 2008
Posts:
403
Plugin Contributions:
0

Re: 1146 Table 'xxxxx_xxx.configuration' doesn't exist

thanks so much! Will give that a shot :smile:

4 Nov 2010, 1:07 AM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: 1146 Table 'xxxxx_xxx.configuration' doesn't exist

We've also seen a number of reports over the past 24 hours of configuration tables, with and without prefixes, simply disappearing. One hosts name seems to be involved in each case, either directly or as the possible ultimate host behind a reseller.

If your configuration table is missing, the above solution won't work for you. please post back here with details of your host and the version of Zen Cart that you are using.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

4 Nov 2010, 2:35 AM
#7
mw4kids avatar

mw4kids

Zen Follower

Join Date:
Oct 2008
Posts:
403
Plugin Contributions:
0

Re: 1146 Table 'xxxxx_xxx.configuration' doesn't exist

HI Kuroi,

I was actually able to get my front end up by deleting the database and restoring a backup.

However, I still can't get into my admin area. Getting error message:

1146 Table 'xxxx_t4k.xxxxproject_version' doesn't exist
in:
[select * from xxxxproject_version WHERE project_version_key = 'Zen-Cart Database' ]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Checked the config files and all seems fine with the paths

Trying to access using path:
http://mysite.com/admin/

no success :(

P.S. I transfered my site over to hostgator. Hosted a couple of other sites with them for some time now and never had an issue. Hope they are not the source of the problem.:blink:

Also I'm still using version 1.3.8

Thanks!

4 Nov 2010, 3:55 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: 1146 Table 'xxxxx_xxx.configuration' doesn't exist

Does the DB_PREFIX for your /admin/includes/configure.php match the DB_PREFIX in your /includes/configure.php ?

Does that prefix match the names of your tables in your database?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Nov 2010, 4:26 AM
#9
mw4kids avatar

mw4kids

Zen Follower

Join Date:
Oct 2008
Posts:
403
Plugin Contributions:
0

Re: 1146 Table 'xxxxx_xxx.configuration' doesn't exist

OK, think I know what i did wrong. My database has a prefix, but my tables in my mysql doesn't.

So when I took out that prefix name from

define('DB_PREFIX', '');

it worked!

Looks like I got the DB_Database and DB_Prefix mixed up. :blush:

Thanks for the help...would of taking me hours to figure that one out!!:wacko:

Ciao! :D

4 Nov 2010, 5:34 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: 1146 Table 'xxxxx_xxx.configuration' doesn't exist

mw4kids:

Also I'm still using version 1.3.8

Using that very old version of Zen Cart ... have you applied all of the Known Bug Fixes ...
http://www.zen-cart.com/forum/showthread.php?t=82619

and Security Patches and Updates ...
http://www.zen-cart.com/forum/showthread.php?t=131115

NOTE: upgrading to the current Zen Cart on our Home page has all of this and more ...

And have you looked through your site for signs of hacks in your files and database?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!