-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coding error detected #15
Comments
@mhussein67 is it possible for you to enable debugging and re-run? The lock failure means something went wrong, but it's a symptom and not the cause. |
We are getting similar for plugin v3.9.0 (2022041200) for Moodle 3.9.17. Everything worked great and then it came to a grinding halt. Execute adhoc task: tool_deletecourses\task\delete_courses_task Code should look like: $factory = \core\lock\lock_config::get_lock_factory('type'); |
I'm going to close this in favor of #18, which has more traffic, since it's probably the same underlying issue. |
Hi
The adhoc job produces the below error, please help
Adhoc task failed: tool_deletecourses\task\delete_courses_task,Coding error detected, it must be fixed by a programmer: A lock was created but not released at:
/var/www/html/myportal.acm.edu.kw/admin/tool/deletecourses/classes/task/delete_courses_task.php on line 108
Code should look like:
$factory = \core\lock\lock_config::get_lock_factory('type');
$lock = $factory->get_lock(Resource id #1272);
$lock->release(); // Locks must ALWAYS be released like this.
The text was updated successfully, but these errors were encountered: