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.
When you try to run the $ drush devel-reinstall module_name
command on a D8 site, it fails with the message "Drupal 8 does not support disabling modules.". This is due to Modules cannot be in a disabled state anymore, only installed and uninstalled.
The attached patch simply makes sure to only trigger pm-disable
if the Core version is below D8.
Comment | File | Size | Author |
---|---|---|---|
#1 | fix-reinstall-drupal8-alternate.patch | 1.09 KB | anavarre |
fix-reinstall-drupal8.patch | 627 bytes | anavarre | |
Comments
Comment #1
anavarreThis other approach simply removes any reference to
pm-disable
since we don't need it for devel 8.x anyway.Comment #3
anavarreBot?
Comment #5
moshe weitzman CreditAttribution: moshe weitzman commented