Can't send email to more than 5000 users enrolled in a course

Can't send email to more than 5000 users enrolled in a course

by Matheus Kaptiva -
Number of replies: 2

I am trying to access /user/index.php?id=xx


(translation: select all the 23839 users - with selected users do - send message)

I click to select all the 23000 users enrolled, but when I select the action, it only applies to 5000.

 (send message to 5000 people)

Why is it only 5000? can I increase it somewhere in the files? This is a core moodle feature

Average of ratings: -
In reply to Matheus Kaptiva

Re: Can't send email to more than 5000 users enrolled in a course

by Geoffrey Van Wyk -
Picture of Plugin developers
In Moodle 3.9, it is from the SHOW_ALL_PAGE_SIZE constant defined here: https://github.com/moodle/moodle/blob/MOODLE_39_STABLE/user/index.php#L38

On which Moodle version are you?
Average of ratings: Useful (1)
In reply to Geoffrey Van Wyk

Re: Can't send email to more than 5000 users enrolled in a course

by Matheus Kaptiva -
It worked fine in one of my moodles (3.4). However, in the moodle at hand (3.11) the one that i posted pictures, at first it worked perfectly to display more users in the same page. The problem is that when I click the button to "SELECT ALL USERS" the pagination resets to 5000.

I tried changing all SHOW_ALL_PAGE_SIZE constants I could find. I'll try with different themes, and let you know. Thanks!