-
Bug
-
Resolution: Fixed
-
Minor
-
3.8
-
MOODLE_38_STABLE
-
MOODLE_38_STABLE
-
MDL-67680-master -
MDL-66340 introduced a very useful callback "after_config", really great idea!
However I noticed one problem. If I remove the callback function from one of the plugins, moodle just stops working at all. Whatever I do I get an exception, including calls to purge caches or trying to upgrade, even from CLI:
$ php admin/cli/purge_caches.php
|
!!! Exception - Call to undefined function tool_certification_after_config() !!!
|
The method get_plugins_with_function() uses cache to cache the list of available callbacks, removing a function implementing callback causes exception. This is usually ok because you can always clear caches. However setup.php is included before anything else.