After 2 weeks not using our WP site, logging into /wp-admin/ gives a whitescreen error:
Sorry, you are not allowed to access this page.
I have:
- renamed
pluginstoplugins.temp. - created a new admin user via phpMyAdmin. New user has
user_metarole ofa:1:{s:13:"administrator";s:1:"1";}. - renamed
themestothemes.temp. - deleted core WordPress files, and replaced with newly uploaded files.
- replaced
.htaccesswith a default version. - CHMOD all folders to 755 and all files to 644 recursively.
- turned on
WP_DEBUGand found no errors. - confirmed the
site_url&home_urlare set correctly in the options table of the db.
all without changing the error.
Help appreciated.

