Unable to locate WordPress Root directory

I’m sure there is another way to fix it, but you could always try to do a fresh install. Make sure you backup your database and theme files, of course, and then just drop them into the new install.

Not the most eloquent solution, but it has worked for me in the past when I couldn’t think of another way.