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.
Error
When trying to uninstall the disabled SimpleTest module the execution of
/admin/modules/uninstall/confirm for SimpleTest causes the error below:
Fatal error: Call to undefined function simpletest_clean_environment()
in /***/sites/all/modules/contrib/simpletest/simpletest.install on line 170
Environment
Drupal 7.14
Comments
Comment #1
Refineo CreditAttribution: Refineo commentedWhen simpletest module is already disabled it is not possible to uninstall it because simpletest.install cannot find simpletest_clean_environment() that is defined in the simpletest.module.
Comment #2
Refineo CreditAttribution: Refineo commentedIssue solved. I enabled the simpletest 2 again in a second window and then unistalled using the previous unistall window.
Comment #3
Refineo CreditAttribution: Refineo commentedIssue solved. I enabled the simpletest 2 again in a second window and then unistalled using the previous unistall window.
Comment #4
seemas CreditAttribution: seemas commentedworked when added module_load_include() to initiate a module file:
Suggestion from hook_uninstall() documentation page was not to use functions from .module:
https://api.drupal.org/comment/15344#comment-15344