Empty folder shown in webui, although there are files in the folder

If I try to open a folder with many photos, the webui claims that there are no files in that folder. In the logs I see:

"Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) at /var/www/html/lib/private/FilesMetadata/Model/FilesMetadata.php#610"

I am using AIO, no configs changed. Can I do something or is this a bug? There is still some RAM unused on the server.

You’re hitting php memory limit, head over to the corresponding php.ini and increase the memomry limit there.

Thanks, increasing the limit solved the issue. Could not believe that listing a few thousand items would need more than 512 MB of RAM.

lol, yes, unbelievable. I guess this is the PHP world (nothing against it, it’s just what it is!)