Cleaned up all the files and everything seems to be working fine now, so I guess this can be closed. (I'm sorry, but I can't find how to do it myself.)
Edit: Okay, I didn't totally solve it after all. My server was working for a few days, but it's giving me the same error as it did before now. Any help would be greatly appreciated, since I'm really at a loss.