Many users in a course
Hi I have a class with about 28,000 registered users. When I associate this class to a course and return to "users" tool, it can't display the first 20 users.
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 94 bytes) in /var/www/html/chamilo/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 108
What's the URL with the error?
Hi Julio
it's http://myserver/chamilo/main/user/user.php?cidReq=YYYY&id_session=0&gidReq=0&gradebook=0&origin=
Hi @djoshy, while your bug report is legitimate, I would suggest for now that you increase the amount of memory. Dealing with a 28,000 users class with only 128MB of RAM allowed for PHP should be OK, but this is a new case for us...
@djoshy any information you could share on the context of this 28000 users' class is an interesting use case to me. If you want to extend on that privately, you can write to me at ywarnier_at-chamilo.org
I'm unassigning this from our direct 1.11.0 objective, because it's more like an improvement than a big bug (although I do acknowledge that we shouldn't use that much memory to show 20 users)
This is not immediately related and will probably not solve the lack of memory issue (although it might have a considerable impact), but commit d4d819b647cae68 might give you some help there. You will have to adapt it to your version of Chamilo, though.
I couldn't reproduce the error. 1.11.x.