Can't access admin pages.

Can't access admin pages. I am getting the following error.

Sorry, you are not allowed to access this page.

Please help.

  • Adam Czajczyk

    Hello Lane

    I hope you're well today!

    It should be working fine now. I checked the site and it seems that the database prefix has been changed. That's fine but for some reason (which, unfortunately, I'm not able to track down) three options in the database were not properly updated.

    When a db prefix is changed, the "wp_user_roles" option name in "wp_options" table and the "wp_capabilities" and "wp_user_level" options names in "wp_usermeta" table should also be updated to start with a new prefix.

    For example:

    - original prefix was "wp_" so table name was "wp_options" and option name was "wp_user_roles"
    - prefix changes to "sth_" so the table name changes to "sth_options"
    - the "wp_user_roles" option name there should also be updated to "sth_user_roles"
    - the same applies to other two option names mentioned above.

    I've made relevant change in your site's database and you should now be able to login; it should be working just fine now.

    Best regards,
    Adam

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.