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

Rob C’s picture

*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.

WillHall’s picture

Thanks - I will update this as soon as possible.

Rob C’s picture

Welcome, will test it later on.

WillHall’s picture

Status: Active » Fixed

Fix added to latest version 7.x-2.1

Status: Fixed » Closed (fixed)

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