-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
4.1.8, 4.2.6, 4.3.3
-
MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
Steps to reproduce:
1. Delete the plugin code folder from the server, e.g., availability completion.
2. Create a new course.
3. Add an activity, e.g., Assignment -> an error occurs.
Exception - Class "\availability_completion\frontend" not found |
More information about this error |
Debug info:
|
Error code: generalexceptionmessageĂ—Dismiss this notification |
Stack trace:
|
line 120 of /availability/classes/frontend.php: Error thrown |
line 651 of /course/moodleform_mod.php: call to core_availability\frontend::include_all_javascript() |
line 229 of /mod/assign/mod_form.php: call to moodleform_mod->standard_coursemodule_elements() |
line 217 of /lib/formslib.php: call to mod_assign_mod_form->definition() |
line 127 of /course/moodleform_mod.php: call to moodleform->__construct() |
line 161 of /course/modedit.php: call to moodleform_mod->__construct() |
On the Site administration -> Plugins -> Plugins overview page, this plugin appears as Disabled (see attached screenshot), but in reality, through the function get_enabled_plugins($type) (lib/classes/plugin_manager.php), it is interpreted as Enabled. Only when we manually disable the plugin in Site administration -> Plugins -> Availability restrictions -> Manage restrictions -> Hide/Show column before removing the plugin code folder does the error stop occurring.
- duplicates
-
MDL-80337 availability classes front_end sanity for missing plugins
-
- Closed
-