Skip to content
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

Files page throws Ajax error on site with many activities #687

Open
jhutch1 opened this issue May 11, 2023 · 2 comments
Open

Files page throws Ajax error on site with many activities #687

jhutch1 opened this issue May 11, 2023 · 2 comments

Comments

@jhutch1
Copy link

jhutch1 commented May 11, 2023

This is on a site with more than 9000 mod_turnitintooltwo activities, running Moodle 3.9.9

When visiting the "Moodle Direct File Browser" page at /mod/turnitintooltwo/settings_extras.php?cmd=files the page loads for about seven seconds before throwing the following error in a popup box:

DataTables warning: table id=filesTable - Ajax error. For more information about this error, please see http://datatables.net/tn/7

@jhutch1
Copy link
Author

jhutch1 commented May 11, 2023

On further investigation it looks like this page was hitting the 1 GB PHP memory limit. I tried raising the limit to 2 GB, but it hit that as well.

It might be that mod_turnitintooltwo is trying to send all the information for all the files on the site at once.

@jhutch1
Copy link
Author

jhutch1 commented May 11, 2023

I was able to get the page to eventually load on a larger server with a 4 GB memory limit. The browser window takes about three minutes to load, and uses 5 GB of RAM.

I'd suggest that the plugin should split up the data when there are large numbers of files to display, to avoid these problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant