This happens when enabling course editing and clicking on "Add an activity or resource" nothing happens after that.
and from the javascript console the following error is displayed:
Message: "Coding error detected, it must be fixed by a programmer: Invalid component used in plugin/component_callback():"
Uncaught (in promise) {message: "Coding error detected, it must be fixed by a progr...id component used in plugin/component_callback():", errorcode: "codingerror", link: "https://learningsite/", moreinfourl: "
https://docs.moodle.org/310/en/error/debug/codingerror"}errorcode: "codingerror"link: "https://learningsite/"message: "Coding error detected, it must be fixed by a programmer: Invalid component used in plugin/component_callback():"moreinfourl: "
https://docs.moodle.org/310/en/error/debug/codingerror"_proto_: Object
m @ first.js:formatted:26191
g @ first.js:formatted:26210
Promise.then (async)
m @ first.js:formatted:26197
f @ first.js:formatted:26207
(anonymous) @ first.js:formatted:26212
(anonymous) @ first.js:formatted:26204
(anonymous) @ first.js:formatted:26333
in addition enabling the debug mode displayed the following errors:
Warning: include(): Failed opening '/var/www/moodle/admin/tool/local/version.php' for inclusion (include_path='/var/www/moodle/lib/
pear:.:/usr/share/php') in /var/www/moodle/lib/classes/plugin_manager.php on line 314
Plugin tool_local does not declare valid $plugin->component in its version.php.
line 324 of /lib/classes/plugin_manager.php: call to debugging()
line 344 of /lib/classes/plugin_manager.php: call to core_plugin_manager->load_present_plugins()
line 221 of /lib/classes/plugininfo/base.php: call to core_plugin_manager->get_present_plugins()
line 147 of /lib/classes/plugininfo/base.php: call to core\plugininfo\base->load_disk_version()
line 100 of /lib/classes/plugininfo/base.php: call to core\plugininfo\base::make_plugin_instance()
line 404 of /lib/classes/plugin_manager.php: call to core\plugininfo\base::get_plugins()
line 72 of /admin/settings/messaging.php: call to core_plugin_manager->get_plugins_of_type()
line 8762 of /lib/adminlib.php: call to require()
line 19 of /admin/settings.php: call to admin_get_root()