I have a strange problem, that I have never encountered.
I migrated web-site from my PC to the server. Well, I have done this a lot of times, but never encountered this issue.
Ok, what I did is, i copied the theme and exported the database and imported on the server + I replaced the table prefixes from wp_
to site_
to match the servers pre-made WordPress installation prefixes.
The page works fine, but, when I log in as an administrator ( there are no other users, then the admin ) I get this error:
And when I open the actual page I see this:
The white line one the top is where the admin menu should be.
It seems, that the user has actually logged in, but somehow is getting rejected from the server?
I know that this is a small isue that can be solved, by reinstalling WordPress with the exact settings that I have on my local PC, but I want to know why this happened and how to actually fix it.
PS: There are no addons involved in this. Just my custom theme.
It looks like you’re being logged in, but your account doesn’t have administrator privileges. Go to your
site_usermeta
table in the database and confirm that themeta_key
andmeta_value
are using the correct prefix. They should besite_capabilities
,site_user_level
etc instead ofwp_capabilities
andwp_user_level
etc. Also make sure thatsite_capabilities
is set to administrator.Additionally, check the
site_options
table to see if there are anyoption_name
s that are still usingwp_
and notsite_
Essentially, if you changed the prefix in the config file, you will need to change all entries of the prefix in your MySQL database as well.Here’s a good resource to follow: http://www.wpbeginner.com/wp-tutorials/how-to-change-the-wordpress-database-prefix-to-improve-security/