White page, no error if AD user count is 10000 #585
-
I try to get all ad users with ldaprecord.
Works as expected if the user count is 5000, but if 10000 users are in group cn=users, the call ended in a white page. I found no error in laravel.log. Laravel Version .......................................................................................................................... 9.52.16 I can't find the error. Has anyone an idea for me? Greetings, Kai |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @kaizirlewagen, This might be due to your PHP instance running out of memory. Can you try with \LdapRecord\Models\ActiveDirectory\User::each(function($user) {
// Do something with the user.
}); You can also bump the memory on your memory_limit = 256M |
Beta Was this translation helpful? Give feedback.
Hi @kaizirlewagen,
This might be due to your PHP instance running out of memory. Can you try with
each
instead (which utilizes chunking) and see what your results are?You can also bump the memory on your
php.ini
to see if that's the cause:memory_limit = 256M