After disabling the module then attempting to uninstall
Fatal error: Call to undefined function image_resize_filter_delete_all() in /sites/all/modules/image_resize_filter/image_resize_filter.install on line 15

CommentFileSizeAuthor
#8 fix-uninstall-1211348-8.patch401 bytesjoelstein

Comments

vm’s picture

Title: Uninstall produces a Fatal error: Call to undefined function image_resize_filter_delete_all() » Cannot uninstall

Confirmed. I also tried with the 7.x-1.x-dev dated Feb 25th and it produced the same error.

vm’s picture

Title: Cannot uninstall » Uninstall produces a Fatal error: Call to undefined function image_resize_filter_delete_all()
Version: 7.x-1.12 » 7.x-1.x-dev
timb’s picture

Title: Cannot uninstall » Uninstall produces a Fatal error: Call to undefined function image_resize_filter_delete_all()

Not sure if this is the same issue: When I attempt to confirm the uninstall of 'image resize filter' I am taken to a blank page. Reloading the uninstall module page still lists 'image resize filter'

vm’s picture

quite possible. I'd suggest getting an error to print to the screen so that you can make sure.

timb’s picture

Not only does this module not uninstall, but it's functionality stays active even after module has been turned off.

moloc’s picture

Drupal does not load the module file, when uninstall is called. As the uninstall calls a function in the module, this needs to be done manual (see http://api.drupal.org/api/drupal/modules--system--system.api.php/functio... )

Solution: add drupal_load method to load the module file in the image_resize_filter.install file line 15.

function image_resize_filter_uninstall() {
  drupal_load('module', 'image_resize_filter');
  image_resize_filter_delete_all();
}
timb’s picture

Thanks! Adding that line did allow me to uninstall the module successfully.

joelstein’s picture

Status: Active » Needs review
StatusFileSize
new401 bytes

Here's a patch which adds that line. Somebody please review so the maintainer can commit it.

quicksketch’s picture

Status: Needs review » Fixed

Looks good to me, committed to both branches.

Status: Fixed » Closed (fixed)

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