WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Admin Role lost Admin Privileges (2 posts)

  1. mbolsinga
    Member
    Posted 1 year ago #

    I'm helping someone out, and got into the middle of their site move. It was already at 3.5. FTP'd all the WP files, imported the database. Everything seems to be in place. The only user, however, doesn't seem to have admin privileges. When logged in, I can't edit existing Pages, and don't have access to the users tab (it's not there). It appears that the user is only an author. However, in checking the database, it appears that the user has the correct capabilities, based on what I have in other site tables that are working:
    a:1:{s:13:"administrator";s:1:"1";}

    Since I can't get in to the Users tab to change this user to an administrator, I'm at a loss as to what I can do. I tried creating another user using phpMyadmin, but since I was basically making it the same as the original one, it had the same results when logged in. Could there be something in the options table field wp_user_roles that is out of sync with the user meta table?

    Also, there may be a problem with the mySQL connection collation, which is messing up some of the html parsing. Could this also be affecting the data in the options table, such as the wp_user_roles field?

    Any help anyone can give would be greatly appreciated.

  2. mbolsinga
    Member
    Posted 1 year ago #

    Resolved it myself. It ends up the wp_user_roles in the options table were incorrect. I copied the data out of another database (for a correctly working site), and resolved the problem.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags