moodleou / moodle-mod_oublog

Alternative blog module for Moodle 2 (including course blogs)
31 stars 29 forks source link

Exception during call to undefined check_lock_state when trying to initialize Behat tests on M41 #133

Open logan-reynolds opened 1 year ago

logan-reynolds commented 1 year ago

I realize there isn't an officially-supported 4.1 version, but just a heads up I'm seeing the following when trying to initialize Behat tests with the latest mod_oublog version 2020091403 release 3.11 r1 running on Moodle 4.1.2 (Build: 20230313):

!!! Exception - Call to undefined method cache_disabled::check_lock_state() !!!
!! 
Error code: generalexceptionmessage !!
!! Stack trace: * line 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 152 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 91 of /lib/behat/classes/util.php: call to install_cli_database()
* line 165 of /admin/tool/behat/cli/util_single_run.php: call to behat_util::install_site()
 !!