Here are my files. Thank you for taking the time to look over these!
I think the big problem is in the function file. (fixed one attached)
I think I fixed everything in it to where it should work.
Let me know if you are still having problems, I saw a couple of things in the download file but do not think it should cause this problem.
PS: welcome to the forum! I see you are new...
I installed my first 4images gallery a few years back and have been hooked ever since.
The people and support on the board is the best I have found.