-
Bug
-
Resolution: Fixed
-
Critical
-
4.1, 4.2
From https://github.com/moodleou/moodle-mod_oublog/issues/129
When running php admin/tool/phpunit/cli/init.php
I get the above error. The stack trace leads back to a oublog settings "hack" -moodle-mod_oublog/settings.php
Line 17 in e4c2960
// Dodgy hack to setup the global blog instance (section not created yet on install).This seems to be failing because of a recent update to Moodle: moodle/moodle@ea01fb2
Commenting out the oublog "hack" enabled installation to continue.
Moodle 4.1, PHP 8.0, MOODLE_311_STABLE branch of this plugin
Stack trace:
Default exception handler: Exception - Call to undefined method cache_disabled::check_lock_state() Debug:
Error code: generalexceptionmessageline 670 of /lib/modinfolib.php: Error thrown
line 649 of /lib/modinfolib.php: call to course_modinfo::inner_build_course_cache()
line 478 of /lib/modinfolib.php: call to course_modinfo::build_course_cache()
line 436 of /lib/modinfolib.php: call to course_modinfo->__construct()
line 2532 of /lib/modinfolib.php: call to course_modinfo::instance()
line 589 of /course/lib.php: call to get_fast_modinfo()
line 632 of /course/lib.php: call to course_create_sections_if_missing()
line 22 of /mod/oublog/settings.php: call to course_add_cm_to_section()
line 140 of /lib/classes/plugininfo/mod.php: call to include()
line 47 of /admin/settings/plugins.php: call to core\plugininfo\mod->load_settings()
line 8831 of /lib/adminlib.php: call to require()
line 8857 of /lib/adminlib.php: call to admin_get_root()
line 522 of /lib/installlib.php: call to admin_apply_default_settings()
line 468 of /lib/phpunit/classes/util.php: call to install_cli_database()
line 150 of /admin/tool/phpunit/cli/util.php: call to phpunit_util::install_site()!!! Exception - Call to undefined method cache_disabled::check_lock_state() !!!
!!
Error code: generalexceptionmessage !!
!! Stack trace: * line 670 of /lib/modinfolib.php: Error thrownline 649 of /lib/modinfolib.php: call to course_modinfo::inner_build_course_cache()
line 478 of /lib/modinfolib.php: call to course_modinfo::build_course_cache()
line 436 of /lib/modinfolib.php: call to course_modinfo->__construct()
line 2532 of /lib/modinfolib.php: call to course_modinfo::instance()
line 589 of /course/lib.php: call to get_fast_modinfo()
line 632 of /course/lib.php: call to course_create_sections_if_missing()
line 22 of /mod/oublog/settings.php: call to course_add_cm_to_section()
line 140 of /lib/classes/plugininfo/mod.php: call to include()
line 47 of /admin/settings/plugins.php: call to core\plugininfo\mod->load_settings()
line 8831 of /lib/adminlib.php: call to require()
line 8857 of /lib/adminlib.php: call to admin_get_root()
line 522 of /lib/installlib.php: call to admin_apply_default_settings()
line 468 of /lib/phpunit/classes/util.php: call to install_cli_database()
line 150 of /admin/tool/phpunit/cli/util.php: call to phpunit_util::install_site()
!!
This is due to cache_disabled not defining check_lock_state.