In Drupal core 7.0-beta1, I installed Content Templates and got the following when I selected it and hit Save Configuration on the Modules Page:

DatabaseSchemaObjectExistsException: Table contemplate_files already exists. in DatabaseSchema->createTable() (line 621 of /home/spiralsa/public_html/drupal7/includes/database/schema.inc).

CommentFileSizeAuthor
#7 937368.patch555 bytestuongaz

Comments

bradleyvance’s picture

I received the same error.

gr33nman’s picture

Version: 7.x-1.0-alpha1 » master
Issue tags: +table creation error

This pops up when you attempt to enable contemplate in Drupal Head:
DatabaseSchemaObjectExistsException: Table <em class="placeholder">contemplate_files</em> already exists. in DatabaseSchema->createTable() (line 621 of /home/lowlidrupal/dev.low.li/includes/database/schema.inc).
Module then shows as enabled in Drupal.

molave’s picture

I just received the same error as well. Were you guys able to proceed?

sammyframson’s picture

Title: Install Error » Enabling module error.
Issue tags: +DatabaseSchemaObjectExistsException: Table <em class=

I am receiving the same error when trying to enable the module in D7 alpha:
DatabaseSchemaObjectExistsException: Table contemplate_files already exists. in DatabaseSchema->createTable() (line 630 of /.../includes/database/schema.inc).

However, the module then shows enabled.

linuxamartillazos’s picture

i have a similar error in drupal 7.

tinny’s picture

Got same error on enabling module.

DatabaseSchemaObjectExistsException: Table contemplate_files already exists. in DatabaseSchema->createTable() (line 630 of C:\Program Files\xampp\htdocs\describe\includes\database\schema.inc).

The website encountered an unexpected error. Please try again later.

tuongaz’s picture

StatusFileSize
new555 bytes

This is because the drupal_install_schema('contemplate'); is called under the contemplate_install hook under the contemplate.install file.
Drupal will automatically install tables returned from the contemplate_schema() hook so we don't need to call drupal_install_schema()

maddentim’s picture

#7 patch resolved the issue for me. Thanks,

agerson’s picture

Status: Active » Reviewed & tested by the community

this patched worked for me as well.

MGParisi’s picture

Works! Can someone contribute it?

jrglasgow’s picture

Status: Reviewed & tested by the community » Fixed

this patch has been committed

Status: Fixed » Closed (fixed)
Issue tags: -table creation error, -DatabaseSchemaObjectExistsException: Table <em class=

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