Hi!
I have upgraded my Moodle site from version 3.2.2 to the newest version (3.3.1). Everything works fine except the cronjob that should be run every minute. I started it manually and it stops with error message:
Refreshing events for qcreate
Default exception handler: Otkrivena je programerska pogreška, mora ju ispraviti programer: A lock was created but not released at:
[dirroot]/lib/classes/task/manager.php on line 424
Code should look like:
$factory = \core\lock\lock_config::get_lock_factory('type');
$lock = $factory->get_lock(Resource id #1391);
$lock->release(); // Locks must ALWAYS be released like this.
Debug:
Error code: codingerror
* line 117 of /lib/classes/lock/lock.php: coding_exception thrown
* line 91 of /lib/cronlib.php: call to core\lock\lock->__destruct()
* line 61 of /admin/cli/cron.php: call to cron_run()
!!! Otkrivena je programerska pogreška, mora ju ispraviti programer: A lock was created but not released at:
[dirroot]/lib/classes/task/manager.php on line 424
Code should look like:
$factory = \core\lock\lock_config::get_lock_factory('type');
$lock = $factory->get_lock(Resource id #1391);
$lock->release(); // Locks must ALWAYS be released like this.
!!!
Can someone help me? I don't know what to do to solve the problem. I tried searching the Google, but didn't find any answer.