ProcessWire
ProcessWire copied to clipboard
Failed to delete module error even though the folder/files were actually deleted
I just got this error on a site trying to delete several modules. Then one other module deleted without the error.
Not sure how to reproduce, but wanted to make a note and will report more if I see it again and can figure out why.
I just got this again today - two modules successfully deleted but got the error on both. On the same installation tried a third module and no error.
All modules were installed via the classname option.
I think maybe this happens with modules that include a helper module within the same folder. https://github.com/ryancramerdesign/ProcessWire/blob/7e8c7c6836282b6b64de81263f5aaa8112fd51ae/wire/core/Modules.php#L1576
$success will never be set to true because of the !$numOtherModules check.