CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • "No such table" after upgrade snafu
Pages: [1]

Author Topic: "No such table" after upgrade snafu  (Read 1757 times)

rflemin

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 2
    • DCRCA (DC Recovery Community Alliance)
  • CiviCRM version: 3.3
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.26
  • PHP version: 5.2.6
"No such table" after upgrade snafu
April 15, 2010, 02:21:42 pm
I tried to upgrade both Drupal (to 6.16) and Civicrm (to 3.1) and apparently confused some of the install and upgrade procedures and messed up my database. I tried reloading a backup and got Drupal to work, pretty much, but when I activate the CiviCRM module, I get the following error message:

          DB Error: no such table

          Database Error Code: Table 'civicrm.civicrm_preferences' doesn't exist, 1146

Is there something I need to run or settings file I can edit to get civicrm.civicrm_preferences to exist. Can I copy it up from my standalone/development version? I can probably learn to used PHPMyAdmin (or whatever my ISP has) and create the table, if that's all it takes, but I have a feeling that there is some other functionality that populates the table.

A little knowledge is a dangerous thing and I have very little. Thanks for any help.

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: "No such table" after upgrade snafu
April 16, 2010, 10:32:22 am
Sounds like a disconnect between your code and database versions.

Maybe if you provide more details about those version? What version did you upgrade from?

As a quick attempt - you can enable the module directly (you'd need to set the module's status field to 1 in the drupal system table), and then run the upgrade script (civicrm/upgrade?reset=1).

rflemin

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 2
    • DCRCA (DC Recovery Community Alliance)
  • CiviCRM version: 3.3
  • CMS version: Drupal 6.26
  • MySQL version: 5.1.26
  • PHP version: 5.2.6
Re: "No such table" after upgrade snafu
April 20, 2010, 08:29:17 am
Thanks for the response. I may be too stupid to understand it.
I think I remember that I was going from CiviCRM 3.13 to 3.14. But I have tried so many different things that I think I would just like to totally dump CiviCRM, all its modules and MySQL tables, and start over. I'm going to have to find out what facilities my ISP has for that.
I've tried to find out what the Drupal System Table is and how to modify it, as you suggested, but no luck so far. I tried a Drupal Module called System Table Cleaner, and it just gets rid of the old stuff (and found some CiviCRM sub-modules, but not the main one). I think my problem is that, in all my hacking around, I did eliminate the civicrm_preferences table. So I need to put it back and some of my earlier error messages suggest that an upgrade won't work -- I need a full re-install.
I also need to keep better notes on what I did and what error messages I have gotten.
Anyway, thanks for your help - you were the only one who did.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • "No such table" after upgrade snafu

This forum was archived on 2017-11-26.