-
Notifications
You must be signed in to change notification settings - Fork 5
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
got weird error output -- course not able to show using template. #12
Comments
Usually a message like this means there was an unrelated failure, which then caused the lock to not be released. It's a symptom, not the cause. There's not much in the way of debugging statements inside |
the version I installed was .. .Local_course_template v2018051300 |
That's the most recent version; it's been tested against Moodle 3.6 and should be fine. |
Hi CSUF-CHUCK, are you still experiencing this error? |
Ok. I'll throw out some questions to try and troubleshoot more:
|
@CSUF-CHUCK we've just released a new version that may have addressed the issue you're experiencing. |
Just FYI, we saw similar errors (messages about lock not being released tied into messages about Example error:
|
moodle version : 3.6.2+ (Build 20190208)
php version :
PHP 7.1.26 (cli) (built: Jan 11 2019 10:28:41) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.26, Copyright (c) 1999-2018, by Zend Technologies
With debug on, trying to create a course and the following error output was trapped.
moodledatadir/lock location is empty out.
I am able to verify the regex is correct. is there something I done wrong ? Thank you for your time looking.
Exception encountered in event observer '\local_course_template\observers::course_created': Coding error detected, it must be fixed by a programmer: A lock was created but not released at: /var/www/html/moodle/local/course_template/classes/observers.php on line 34 Code should look like: $factory = \core\lock\lock_config::get_lock_factory('type'); $lock = $factory->get_lock(Resource id #30); $lock->release(); // Locks must ALWAYS be released like this.
The text was updated successfully, but these errors were encountered: