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 i try to uninstall this mod, i get an error.
Unrecoverable error occurred.
From my logs:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'site.blocks' doesn't exist: DELETE FROM {blocks} WHERE module = 'tweetpack'; Array ( ) in tweetpack_uninstall() (regel 58 van htdocs/sites/all/modules/tweetpack/tweetpack.install).
When i go into the mysql table, the block does not exists anymore, but i'm left with a mod i can't uninstall.
Comments
Comment #1
Rob C CreditAttribution: Rob C commented*small error, blocks still do exist*
If you check tweetpack.install > hook_uninstall you'll notice 'db_query("DELETE FROM {blocks}....
Blocks?
// delete all blocks related to tweetpack
db_delete('block')
->condition('module', 'tweetpack', '=')
->execute();
fixes this for the 'block' table.
Comment #2
WillHall CreditAttribution: WillHall commentedThanks - I will update this as soon as possible.
Comment #3
Rob C CreditAttribution: Rob C commentedWelcome, will test it later on.
Comment #4
WillHall CreditAttribution: WillHall commentedFix added to latest version 7.x-2.1