Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When enabling Ctools, I get this error:
DatabaseSchemaObjectExistsException: Table <em class="placeholder">ctools_object_cache</em> already exists. in DatabaseSchema->createTable() (line 652 of /home/echoleaf/public_html/eh/includes/database/schema.inc).
I've got a vanilla install of Drupal 7.12, the only non-core module enabled is Devel.
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedHuh. Somehow you seem to have a ctools table that already exists even though you don't have ctools installed. I'm not sure how you got into that situation.
You probably need to drop that table manually.
From a mysql prompt:
DROP TABLE ctools_object_cache;
I have a feeling if you have this issue you may have similar issues with other tables.
Comment #2
Bricks and Clicks MarketingI reinstalled Drupal, with a new mysql db. That seems to have resolved it.
Comment #3
greta_drupal CreditAttribution: greta_drupal commentedThus must be a core issue, because I get that error when I enable Rules (rule_config table). And, in researching the error, I see another who posted the error related to Ubercart.
I have a very extended D7 site build. Reinstalling with fresh db is a sucky option. If anyone has other suggestion.
Comment #4
merlinofchaos CreditAttribution: merlinofchaos commentedWell, reinstalling just the module that's failing to activate may be okay, I hope?
Comment #5
greta_drupal CreditAttribution: greta_drupal commentedYep. So far, so good on that approach. Disabled Rules module, uninstalled through UI (parts applicable), manually dropped module tables, deleted module files; ran update.php. Reinstalled all.
There does seem to be an unaddressed underlying problem though. Because I now have found several references to this error, related to different modules. Seems a core issue -- although I have yet to find an issue addressing it there.
Comment #6
merlinofchaos CreditAttribution: merlinofchaos commentedThe problem is reproducing it, I think.
Comment #7
stevecory CreditAttribution: stevecory commentedEnabling the corresponding_node_references module displays the error:
DatabaseSchemaObjectExistsException: Table corresponding_node_references already exists. in DatabaseSchema->createTable() (line 652 of /<mysite>/includes/database/schema.inc)
schema.inc is attempting to
/**
* Create a new table from a Drupal table definition.