bdecentgmbh / moodle-mod_videotime

The Video Time product family is a set of plugins to integrate videos into moodle courses.
http://bdecent.de/videotime
Other
10 stars 5 forks source link

Cannot load Default Activity Completion Site Admin page in Moodle Workplace #70

Open jprovasnik opened 8 months ago

jprovasnik commented 8 months ago

In my Moodle workplace 4.3 instance, I have been unable to load the Default Activity Completion page either at the Site Level or at the Course Level. After a few minutes attempting to load the page, the following message appears: "QuickForm Error: nonexistent html element Element 'completionusegrade' does not exist in HTML_QuickForm::removeElement() Backtrace :"

My Moodle Workplace host was able to debug and identify the issue was coming from the VideotTime plugin. They state the following and have requested I bring this to your attention so we can determine how to proceed:

"I was able to log in and recreate those errors. I've taken a look at this and identified an issue with mod_videotime which appears to be causing a memory leak that results in the form exceeding the maximum amount of memory available to PHP, even with no enforced limit. I've mitigated this issue by commenting out line 241 of this file, which appears to prevent the error from occurring, but this change will be overwritten if the code is redeployed or the plugin is updated. Additionally, I don't know what side-effects this change might have, or why specifically this line is causing the memory issue, just that removing it caused the issue to no longer occur. I would suggest connecting with the maintainer on this to see if they might have an idea here."

The file in reference is located here: https://github.com/bdecentgmbh/moodle-mod_videotime/blob/master/mod_form.php#L241

Please let me know if you have any thoughts or insights about the question/issue here. Thank you,

Default Activity Completion Error