If I'm using developer tools in Chrome properly, it's an issue on line 2 of files.js.
Request URL: http://192.168.0.54/galleries/index.php
Request Method: POST
Status Code: 500 Internal Server Error
Remote Address: 192.168.0.54:80
Referrer Policy: strict-origin-when-cross-origin
Again, some directories work fine, others don't. Haven't been able to determine what the difference might be between them.
I might add, the view that shows all the parent directories has thumbnails on each folder taken from its contents...so the script is pulling images...just can't display the contents of some of the folders.