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.
drush pm-uninstall masquerade_float_block
The following extensions will be uninstalled: masquerade_float_block
Do you really want to continue? (y/n): y
Error: Call to undefined function variable_del() in masquerade_float_block_uninstall() (line 12 of [error]
modules/contrib/masquerade_float_block/masquerade_float_block.install) #0 [internal function]:
masquerade_float_block_uninstall()
#1 /core/lib/Drupal/Core/Extension/ModuleHandler.php(391):
call_user_func_array('masquerade_floa...', Array)
#2 core/lib/Drupal/Core/Extension/ModuleInstaller.php(388):
Drupal\Core\Extension\ModuleHandler->invoke('masquerade_floa...', 'uninstall')
#3 core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(91):
Drupal\Core\Extension\ModuleInstaller->uninstall(Array, true)
#4 /home/ubuntu/vendor/drush/drush/commands/core/drupal/environment.inc(227):
Drupal\Core\ProxyClass\Extension\ModuleInstaller->uninstall(Array)
#5 /home/ubuntu/vendor/drush/drush/commands/core/drupal/pm_8.inc(82): drush_module_uninstall(Array)
#6 /home/ubuntu/vendor/drush/drush/commands/pm/pm.drush.inc(1237): _drush_pm_uninstall(Array)
#7 /home/ubuntu/vendor/drush/drush/includes/command.inc(422): drush_pm_uninstall('masquerade_floa...')
#8 /home/ubuntu/vendor/drush/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#9 /home/ubuntu/vendor/drush/drush/includes/command.inc(199): drush_command('masquerade_floa...')
#10 /home/ubuntu/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#11 /home/ubuntu/vendor/drush/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#12 /home/ubuntu/vendor/drush/drush/drush.php(12): drush_main()
#13 {main}.
Comments
Comment #2
FlutterStack CreditAttribution: FlutterStack at Azri Solutions commentedIn drupal 8 configuration system. Configuration of the respective module will be deleted automatically by the system, Whenever module uninstalled. No need to call variable_del() in masquerade_float_block_uninstall() (line 12 ).
Since masquerade_float_block.install written for only configuration delete. We can delete entire file masquerade_float_block.install.
Comment #3
FlutterStack CreditAttribution: FlutterStack at Azri Solutions commentedComment #4
dstorozhukComment #5
dstorozhukComment #7
dstorozhukComment #8
dstorozhuk