Moodle will use up any and all course memory that you can throw at it when adding an H5P activity
We have encountered an issue when adding an H5P activity (using the H5P plugin).
We are using Moodle 3.8.5 (Build: 20200914) and H5P plugin 1.21.0 (2020080400)
We have a large course with a lot of H5P activities and now when adding an H5P activity or updating an existing one, we get an error (see moodle-error.png attached)
I recorded my Moodle screen after I clicked 'Save and display' and before the error appears. In the console I noticed this error shown in the console-error.png attached .
We thought it was an issue with the size of the course and the allocated memory.
But in our test platform we deleted half the course and our IT Department said that "we doubled the limit of memory allowed for a PHP script (to 1Gb) and it still failed. This suggests that Moodle becomes stuck in a loop while adding an activity to this course and it will use up any and all memory that you can throw at it".
Adding a core Moodle activity seems to work fine. The issue appears only with the H5P activity.
Has anyone encountered this before?
Any advice would be very much appreciated!