moodleou / moodle-mod_oublog

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

Call to undefined method cache_disabled::check_lock_state() on install #129

Open sharpchi opened 1 year ago

sharpchi commented 1 year ago

When running php admin/tool/phpunit/cli/init.php I get the above error. The stack trace leads back to a oublog settings "hack" - https://github.com/moodleou/moodle-mod_oublog/blob/e4c2960d7456e608480fab0be979bea41594e989/settings.php#L17

This seems to be failing because of a recent update to Moodle: https://github.com/moodle/moodle/commit/ea01fb24273de4011694d91e34f86016d319686e

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: generalexceptionmessage

!!! Exception - Call to undefined method cache_disabled::check_lock_state() !!! !! Error code: generalexceptionmessage !! !! Stack trace: * line 670 of /lib/modinfolib.php: Error thrown

marxjohnson commented 1 year ago

This is due to a core bug https://tracker.moodle.org/browse/MDL-76745