Make Sure You Upload to the Right Path
If anyone is following along this thread, make sure that you upload the patch to the correct folder. It's /galleries as Jason said.
I am unfamiliar with PHP and the folder structure. I uploaded the file to where I first saw a file by that name, /admin_gallery .
So, make sure you upload to the right path!