If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading from 1.3.x to 1.3.9 / Trying to upgrade to 1.3.9: Getting 1146 Table 'configuration' doesn't exist

Trying to upgrade to 1.3.9: Getting 1146 Table 'configuration' doesn't exist

Locked

Started by 1234go on 7 May 2010, 12:36 AM · Views: 2,455

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
7 May 2010, 12:36 AM
#1
1234go avatar

1234go

New Zenner

Join Date:
May 2010
Posts:
34
Plugin Contributions:
0

Trying to upgrade to 1.3.9: Getting 1146 Table 'configuration' doesn't exist

I'm trying to upgrade from 1.3.8 and I've followed all the instructions so far but at this point in the Database setup I hit this error and I can't go any further. Can anyone help?

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

7 May 2010, 4:50 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Trying to upgrade to 1.3.9: Getting 1146 Table 'configuration' doesn't exist

I thought you said you were upgrading? But the "Database setup" page you mentioned is used for new installs.
So, it would seem that perhaps you're trying to set up a new site for testing, and in the process it sounds like you've set database information in your new /includes/configure.php file, but that database doesn't have any tables yet. It's better to leave those details blank, rather than point them to an empty database. Normally you wouldn't edit the contents of the configure.php files at all. You just need to make them writable so the installer can write them when it goes through its steps.
If you are indeed attempting to install a new site, for whatever purpose, I suggest that your fastest solution right now is to pick either of the following options:
a) edit your /includes/configure.php file and delete everything from it except the first line, leaving just the "<?php" at the top. Then run the install again.
b) or, delete your /includes/configure.php file, then rename your /includes/dist-configure.php file as just "configure.php", make it writable, and then run the install again.

.
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.

7 May 2010, 8:30 PM
#3
1234go avatar

1234go

New Zenner

Join Date:
May 2010
Posts:
34
Plugin Contributions:
0

Re: Trying to upgrade to 1.3.9: Getting 1146 Table 'configuration' doesn't exist

I was trying to upgrade but I actually entirely gave up last night. I followed the instructions to the letter (at least I thought) and ended up with nothing but frustration. Is there a more indepth how to? The one on the site is entirely too simple and doesn't include any advice for when it goes wrong other than check the FAQ and post on this board. It'd be much more helpful to have a troubleshooting section.

8 May 2010, 5:13 AM
#4
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Trying to upgrade to 1.3.9: Getting 1146 Table 'configuration' doesn't exist

Hi I got that error, it was a noob mistake I made.

Make sure you create a new empty db.

Export your current LIVE db and import it into the new empty one. (I called mine zc139 so there's no confusion)

But make sure to change your config files to point to the NEW database.

Here's a copy and paste from someone else on this site, this method worked really well for me;

**Clean install in sub-directory and move **


That will work fine, did this myself.

  1. Clean install (by copying the files rather than using zc_install).
  2. Create a new database and import (phpmyadmin) a backup of the old database.
  3. Rename admin.
  4. Copy original configure.php files (both) to new installation.
  5. Edit configure.php (both) to reflect sub-directory changes and new database name.
  6. Type your new installation url to zc_install.
  7. Upgrade database.
  8. Rename zc_install (once working just delete this).
  9. Install mods (doing backups after each one).
  10. Once everything is good, upload your site (being sure to edit your configure files again).

Remove and reinstall all shipping, payment and order total modules.

Donation made. Enjoy those donuts! :-)

12 May 2010, 8:24 PM
#5
decostyle avatar

decostyle

Zen Follower

Join Date:
Mar 2008
Posts:
336
Plugin Contributions:
0

Re: Trying to upgrade to 1.3.9: Getting 1146 Table 'configuration' doesn't exist

Also check to see whether your database has a prefix or not. I had the same problem and it seems I forgot that the database I am using had a zen_ prefix on it. Added that to the configure.php files and upgrade went ok!

29 Jan 2011, 11:44 PM
#6
anne_turies avatar

anne_turies

New Zenner

Join Date:
Jan 2011
Posts:
2
Plugin Contributions:
0

Re: Trying to upgrade to 1.3.9: Getting 1146 Table 'configuration' doesn't exist

Hello,

I'm french and I have the same problem:

"1146 Table 'soinsbiocart.products_options' doesn't exist
in: [select count(*) as total from products_options popt, products_attributes patrib where patrib.products_id='5' and patrib.options_id = popt.products_options_id and popt.language_id = '1' limit 1]"

I have not created the site myself and I don't know how to correct my pages...
The problems arrive only when I try to add products to sell on my site.

The context: my site has been hacked and I try to restablis it using the "chmod" command with ftp connection... but this is the only thing I do to restablish my site.

I don't know informatic and I hav made the site with help... but now I alone to try to solve may problem.

Have you a checklist or notes to give me to resolve my Problem?

Regards