After i want uninstall module get bellow error
Recoverable fatal error: Argument 1 passed to file_delete() must be an instance of stdClass, boolean given, called in /var/www/site/sites/all/modules/nivo_slider/nivo_slider.install on line 23 and defined in file_delete() (line 1272 of /var/www/bestnik/includes/file.inc). Backtrace:
file_delete() nivo_slider.install:23
nivo_slider_uninstall()
call_user_func_array('nivo_slider_uninstall', Array) module.inc:922
module_invoke('nivo_slider', 'uninstall') install.inc:809
drupal_uninstall_modules(Array) system.admin.inc:1376
system_modules_uninstall_submit(Array, Array) form.inc:1519
form_execute_handlers('submit', Array, Array) form.inc:903
drupal_process_form('system_modules_uninstall', Array, Array) form.inc:385
drupal_build_form('system_modules_uninstall', Array) form.inc:130
drupal_get_form('system_modules_uninstall')
call_user_func_array('drupal_get_form', Array) menu.inc:527
menu_execute_active_handler() index.php:21
Comments
Comment #2
Adrião Neves commentedThat piece of code tries to remove all slide images before uninstalling the module, if you don't want to mess with the code, just manually remove all slide images before and then you will be able to uninstall the module. I know this is not the best solution, but if you in a hurry to remove the module this may help.
Comment #3
caspervoogt commentedFor anyone else dealing with this; before disabling Nivo Slider, go to the admin page for Nivo Slider (/admin/structure/nivo-slider) and delete all the images on that page. Then disable and uninstall the module.
Comment #4
andrey.troeglazov commentedComment #5
andrey.troeglazov commentedComment #7
andrey.troeglazov commentedSeems I have fixed the problem in dev version. Adding to new release. For me it works ok, if you have any troubles please reopen the ticket.