I solved my problem. I had read that you can hide your media files by creating a folder named .nomedia and then putting the files you want to hide in that folder. I had created the folder but did not get around to putting any files in it.
What I discovered was that just by having the .nomedia folder, gallery could not see any of my files. I deleted the folder and gallery works again.