After attempting to unload some modules I encounter the following error:

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'cbretail.views_view' doesn't exist: SELECT t__0.* FROM {views_view} t__0; Array ( ) in ctools_export_load_object() (line 427 of C:\xampp\htdocs\dev\wb1\sites\all\modules\ctools\includes\export.inc).

So, it is obviously trying to find something that's not actually there. Would it work if I simply added the table to the database? I found some documentation with a similar issue but it was not clear. http://drupal.org/node/1308308

I have briefly looked in the install.txt and it details install profiles, etc.

Cheers.

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

This is a tough one without knowing what's going on at the time.

What we obviously know is: Something was trying to load a view, but the views_view table was not there.

Then the question is: Why was something trying to load a view with views_view not there?

Now, we can put a try/catch block and catch this error if we think it's something we can't detect, and simply record a watchdog so that it doesn't crash the system. That's fairly reasonable if this is a transient thing.

Does this error keep happening with the site unusable, or does this error just happen once and go away?

Please mark the issue 'active' again when the question is answered.

Phase3’s picture

Status: Postponed (maintainer needs more info) » Active

I am relatively new to Drupal.

This error keeps happening whenever I try to disable certain modules or go to structure > blocks.

How would you record a watchdog?

Thanks a lot.

Ashlar’s picture

As follow up on this issue, have you resolved it? If not, does it matter which modules./ If it is caused only by specific modules, which ones are they? Also, when you say you are trying to unload a module do you mean disable it or uninstall it?

Ashlar’s picture

Status: Active » Postponed (maintainer needs more info)
esmerel’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)