I m trying to install ctools and getting this error

WD php: PDOException: SQLSTATE[42S02]: Base table or view not found:  [error]
1146 Table 'ctools_css_cache' doesn't exist: DELETE FROM
{ctools_css_cache} ; Array
(
)
 in ctools_css_flush_caches() (line 567 of
/sites/all/modules/ctools/includes/css.inc).

I checked up in the db and i do not find the table there. There is one css_object table though

Comments

merlinofchaos’s picture

Status: Active » Fixed

That kind of suggests that for some reason, CTools' hook_install didn't get run. I never understand why this happens. Your best bet is to completely uninstall CTools and then install it again; that should make it create the tables properly.

To do this, visit the modules page, turn off the module, then visit the uninstall tab. The uninstall process may show some errors about not being able to drop tables, you can ignore those. Then activate the module again. This *should* fix things.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Screenack’s picture

Turns out my default MAMP php memory setting, 32M, was too low. (I had updated MAMP and forgot to up the limit) #1 fixed what ailed me; thanks!