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

suresh kumara created an issue. See original summary.

FlutterStack’s picture

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

FlutterStack’s picture

Status: Active » Needs review
dstorozhuk’s picture

Status: Needs review » Needs work
dstorozhuk’s picture

Issue summary: View changes

  • dstorozhuk committed 5ffa6bb on 8.x-1.x
    Issue #2875624: Error: Call to undefined function variable_del() in...
dstorozhuk’s picture

Status: Needs work » Fixed
dstorozhuk’s picture

Status: Fixed » Closed (fixed)