but in the edn things seemed to be OK (I could access wordpress)
Sorry but that looks like a totally broken installation to me. I'd suggest removing it, emptying the database and carrying out a complete re-install before you put any more work into the site.