Hi Everyone
I am in a pickle, I am not sure how to resolve this issue we are having with our CRON if we run it we get the following error
Server Time: Thu, 29 Aug 2019 11:02:58 +0100
Execute scheduled task: Sync cohort role assignments (tool_cohortroles\task\cohort_role_sync)
... started 11:02:58. Current memory use 18.7MB.
Sync cohort roles...
!!! Coding error detected, it must be fixed by a programmer: A lock was created but not released at:[dirroot]\lib\cronlib.php on line 99
Code should look like:
$factory = \core\lock\lock_config::get_lock_factory('type');
$lock = $factory->get_lock(Resource id #602);
$lock->release(); // Locks must ALWAYS be released like this.
!!!
!!
Error code: codingerror !!
!! Stack trace: * line 117 of \lib\classes\lock\lock.php: coding_exception thrown
* line 114 of \lib\cronlib.php: call to core\lock\lock->__destruct()
* line 73 of \lib\cronlib.php: call to cron_run_scheduled_tasks()
* line 61 of \admin\cli\cron.php: call to cron_run()
!!
I am pretty new to PHP and Servers and whatnot but i have no idea what this is or how to solve it
Moodle Version 3.7.1
Server: Windows Server 2012 R2
PHP Version: 7.3.8
DB: MySQL 5.7.13
Please can somebody help.
Regards
Stuart Smith