I’ve reinstalled Wordpress from scratch, and restored backup data/uploaded files. Everything should work the same as before, except better and less broken.

The next step is to change the theme. I have something in mind. It will either be based on K2 again, or Sandbox if I’m feeling adventurous.