I had DS module on system but not enabled. I updated to latest ctools and panels, and DS rc3. When I enable DS and save configuration from the modules page, the following error is returned, and the site is broken:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'stellaja_7drupal.ds_layout_settings' doesn't exist: SELECT t__0.* FROM {ds_layout_settings} t__0; Array ( ) in ctools_export_load_object() (line 368 of /home/stellaja/public_html/sites/all/modules/ctools/includes/export.inc).

I was able to get the site working again only upon deleting DS from the modules directory. I uninstalled and reinstalled ctools and panels, then DS, with the same results.

Comments

7wonders’s picture

Exact same problem here when enabling ds.

ousmaneo’s picture

subscribe

ousmaneo’s picture

hi !! did anybody find a solution for this issue ?

cartagena’s picture

Did you run update.php after enabling to update database?

7wonders’s picture

It wont even let me reach the update.php through the site or drush. In fact it wont let me reach anything through the site. Keeps giving the error:

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mysite.ds_layout_settings' doesn't exist: SELECT t__0.* FROM {ds_layout_settings} t__0; Array ( ) in ctools_export_load_object() (line 368 of /var/aegir/drupal7/sites/all/modules/ctools/includes/export.inc).

Same result with rc3 and dev and ctools alpha or ctools dev.

cartagena’s picture

But to run update.php you don't have to reach anything-- http://www.yoursitename.com/update.php
When you go to this url it runs. Forgot to add--back up your db first. Actually, the system screen that comes up tells you to do that. Once you update, the module you've installed will have it's tables set up in the db.

nerilka’s picture

I had the same issue,
I dropped manually the ds tables,
uninstalled the DS module via the modules panel
and used the latest release (at this date)
enabled DS an ran an update, no more "PDOException" message

- DS 7.x-1.x-dev - 2011-Mar-23
- Chaos tools 7.x-1.x-dev - 2011-Mar-27
- Panels 7.x-3.0-alpha3

It seams working for me... (I wish I know why !)

7wonders’s picture

Thanks nerilka, I had a similar problem except I couldnt even reach the modules page, update.php page or anything! I did the same as you except I also had to remove the ds modules from the system table. Now all is good again :)

shadowmihai’s picture

Okay, I'll try that this weekend since others say it worked BUT...

...is this not an incorrect workflow? Isn't update.php always run when new modules and updates are installed into the directory, ie. AFTER copying them to modules directory but BEFORE activating them from the modules screen?

swentel’s picture

Status: Active » Closed (won't fix)

Upgrades from alpha releases were not supported because I knew there were going to be a lot of API changes (for stability and performance reasons), see #1078602: Went from alpha > rc1, it took down my site. (and a couple of others) - not during rc to the official releases there will be an upgrade path though, so you're safe from now on.

nerilka’s picture

You're welcome :)

PS : when I wrote "I dropped manualy...", I meant I remove the 'ds_fields, ds_field_settings, ds_layout_settings, ds_vd and ds_view_modes' tables I found in phpMyAdmin.