A completely new install of WP (hooked up to the old database) finally worked fine. Which is good. But it tells me both my child theme and the parent theme on which I based it are broken. So I guess that's next.