Course Presentations Editor not loading
Ever since I found the Course Presentation activity from H5P, I have found this to be most useful for what I would like to do on my Moodle site. However, I am running into a weird problem. I have had varied success in going after creating one and editing it. For some reason, going into the settings to use the editor has a problem where most of the time, it simply won't load. I just stalls on "Loading..." I found the template for giving info that can be most helpful, so I'll use that to explain it better.
1. Detailed steps to reproduce the bug (exactly how and when did it happen)
Well, in the current situation, I tried creating one inside of a Column, but it has the same effect wherever I try to create a Course Presentation. In Moodle, I can add an H5P activity when I add an activity or resource to a course. When I create the H5P activity, I'm given a list of choices. When I select Course Presentation and Use, then it brings up a loading animation with "Loading, please wait...", at this point, it never stops trying to load.
2. Platform and version number. E.g. Drupal, Wordpress, Moodle.
Moodle 3.7.2 (Build: 20190909)
3. Mobile or Desktop
Desktop and Mobile
4. Browser: Chrome, Firefox, Safari etc
Chrome and Firefox
5. H5P plugin version
H5P 1.19.1
6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.
H5P Course Presentation 1.21.2
H5P Course Presentation Editor 1.21.1
7. Any browser console errors
See attachment below for log of errors from console.
8. Any PHP errors
I am not sure how to find this out.
9. Screenshots if it's a visual problem
Visually, there isn't really anything substantial to add.
P.S. Just to clarify, in the case that I've gotten the editor to work and save out a product, the actual activity works just fine.
otacke
Wed, 10/16/2019 - 09:16
Permalink
Hi TayoEXE!In the error log,
Hi TayoEXE!
In the error log, you can see many messages referring to error code 508 sent by your server. Your server is telling you that it cannot cope with all the things it's supposed to do. Could be a shortage of memory or CPU time. You should check both.
Best,
Oliver
TayoEXE
Wed, 10/16/2019 - 09:40
Permalink
It sounds like status code
It sounds like status code 508 indicates a loop detected. Is that what you mean? Why would it be looping? I tried checking what's going on with the memory and processes when I try to just create a single presentation. In the image is before and then during the endless loading when the number of processese spike. The CPU seems to go up to 11% in usage, but there is 16 gb of RAM it looks like that doesn't come near being all used, so I'm not sure? Sorry if this is the wrong data, but let me know if this helps.
TayoEXE
Wed, 10/16/2019 - 10:08
Permalink
I went to check the resource
I went to check the resource usage overview in cPanel as well, and it says this "
Your site has been limited within the past 24 hours
CPU resources were limited for your site
You have reached entry processes (number of simultaneously running php and cgi scripts, as well as cron jobs and shell sessions) limit 1877 times
I/O usage resources were limited for your site
[Details] or [Snapshots]"
It doesn't seem like cron uses up the CPU that much, but according to this screenshot, it did spike beyond the limit.
otacke
Wed, 10/16/2019 - 15:10
Permalink
Hi TayoEXE!I don't know the
Hi TayoEXE!
I don't know the service agreements, but it seems you're server is simply too busy. Don't think I can be of any assistance here.
Best,
Oliver
TayoEXE
Wed, 10/16/2019 - 15:51
Permalink
I finally found a solution
I finally found a solution actually. All I had to do was update one H5P library and now it works just fine. Try everything I guess. It seems like that was what was hanging it up because otherwise, I couldn't see it using up my server's resources so badly like that.
otacke
Wed, 10/16/2019 - 19:46
Permalink
Hiho!Glad you found a
Hiho!
Glad you found a solution!
Best,
Oliver