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.
Hi,
This is probably a duplicate, but I couldn't find anything, so here I go:
While upgrading one of my modules to Drupal7, I had a bug with trying to create some tables two times.
In the resulting error message, there was some escaped markup (I replaced the angle brackets with square brackets to avoid markup munging):
DatabaseSchemaObjectExistsException: Table [em class="placeholder"]captcha_points[/em] already exists. in DatabaseSchema->createTable() (line 605 of /path/to/includes/database/schema.inc).
also see attached screenshot
FYI, the code referred to in the error message is:
if ($this->tableExists($name)) {
throw new DatabaseSchemaObjectExistsException(t('Table %name already exists.', array('%name' => $name)));
}
Comment | File | Size | Author |
---|---|---|---|
Screen shot 2010-05-25 at 21.58.59.png | 59.92 KB | soxofaan |
Comments
Comment #1
JohnWoltman CreditAttribution: JohnWoltman commentedChiming in, this also pops up for FieldExceptions. I noticed it when accidentally creating a duplicate field. Line 275 of field.crud.inc. I suppose this is general issue, related to however Drupal displays errors.