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.
I have just upgraded to version 7.x-4.4
I am trying to uninstall and reinstall the webform module via the admin interface, but keep getting hit with the error below upon reinstall:
DatabaseSchemaObjectExistsException: Table webform already exists. in DatabaseSchema->createTable() (line 657 of /opt/www/prdA/includes/database/schema.inc).
I am wondering if backup of the database and then drop the effected Webform's table is the only way to fully remove the module.
Comment | File | Size | Author |
---|---|---|---|
Screen Shot 2015-03-10 at 4.57.02 PM.png | 39.13 KB | jovin1027 |
Comments
Comment #1
DanChadwick CreditAttribution: DanChadwick commentedWebform was not properly uninstalled or successfully uninstalled. It left the webform table in the database. But it could have left other tables there too. See what tables are present.
I'm not sure what version you updated from, but if you have a backup, I'd revert to that, plus whatever version of webform was in effect at the time. Then update webform and visit update.php, or better install drush and use 'drush update webform' to both download the new version and run updatedb.
Comment #2
jovin1027 CreditAttribution: jovin1027 commentedPardon my ignorance I am new to maintaining modules via git and submodules. I was using 7.x-4.3. So I should revert back to 7.x-4.3 then reupdate to 7.x-4.4. Thank you very much for your help.
Comment #3
DanChadwick CreditAttribution: DanChadwick commentedIf you were using 4.3, I'm not sure why you uninstalled, but it didn't work. At this point, revert your database to before the update and just run updatedb with 4.4.