Hello all!
I've run into an issue with the Moodle installation at the school I'm working at.
We can no longer access the server files through the File Picker, and it's not a case of incorrect roles or incorrect file persmissions.
According to the logging I've been able to do, then Moodle starts looping through the course which you are currently in, then the category, the category's parent category and so forth, until it hits the top level of the tree.
Excerpt of the log: https://pastebin.com/7GAcQeY0
The log contains the running query, query parameters and the result of said query repeated over and over again - Please take note of the timestamps on the log entries... They're coming in fast when this happens!
(The log was taken from my development version of our installation for obvious reasons, and it is a perfect mirror image of our running application; database and all)
The above linked log is but a mere fraction of the whole thing, but it will keep on looping itself until the server runs out of memory - It also completely halts the entire Moodle-application for all users (incl. those who are doing exams...)
The course category being targeted in the loop is a top level category with no parent categories.
We are in the process of migrating some of our other systems to support PHP 7.x, which is why it is listed as a version too above. We've tested the installation with both 5.6.x and 7.0.x, and the problem still persists. The problem was there even before we upgraded MariaDB to 10.2.7
Any and all ideas are welcome! The only thing we won't be able to do is do a clean install of everything...
I tried to specify everything as thoroughly as I could, and I hope someone out there has either seen the issue before, or know why this happens.
Regards
- Morten