• Resolved chickie1

    (@chickie1)


    Hi ??

    I recently upgraded to 4.9.9
    I don’t know if this has anything to do with the issue but I can no longer login to Admin and receive the message “Sorry, you are not allowed to access this page.”
    Sometimes, it logs me in but takes me to the website and I have to access the hidden ‘my account’page via direct URL just so I can log out.

    version.php tells me
    *
    * @global string $required_php_version
    */
    $required_php_version = ‘5.2.4’;

    but my php version is currently set to 7.2

    I have tried the following fixes:
    Reset admin password.
    Added a new admin account and tried signing in with it.
    Reset permalinks.
    Disabled all plugins via db
    Uploaded a new wp-login.php file and renamed the old one.
    Deactivated the theme (BeTheme)
    Restored to a day prior to the issues happening.
    Cleared cache a LOT

    This is driving me insane ?? and would love some help or advice please.

    Many thanks
    Dee

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter chickie1

    (@chickie1)

    Thanks so much Arvind, I’ll try that suggestion and thank you for the links. ??

    I’ve had the same issue. I’d deactivated all my plugins first (as I’d got the Gutenberg & Advanced Gutenberg) plugins installed. I also had Akeeba Backup installed and I deactivated that.

    It turns out that reactivating Akeeba Backup allowed the update to start – by first taking a backup

    Perhaps there’s something in the upgrade that insists on taking a backup first?

    Further- this has now worked. Akeeba backup took a backup of the site and then the update wen’t ahead properly

    Thread Starter chickie1

    (@chickie1)

    Hi Trevor

    I’ve reactivated the plugins but perhaps I’ll deactivate all but the backup one and see if I have the same success. Thanks so much for the suggestion and glad to hear yours is resolved ??

    Many thanks
    Dee ??

    Let us know how you get on.

    Thread Starter chickie1

    (@chickie1)

    Hi Trevor

    Thanks for following up.
    Nothing has worked to date unfortunately.
    I followed both yours and Arvind’s suggestions and even loaded back to 4.9.8 which I didn’t have any problems with.

    The strange thing now is that if I try to login to wp-admin, it takes me to my profile page as if I’m a registered user of the shop. I can access the /my-account page and check orders, account dashboard etc and log out.
    Could it be a permissions problem?

    No idea, sorry

    Thread Starter chickie1

    (@chickie1)

    Hi @trevorwood

    Hope you’re well.

    It’s taken a while for me to reply sorry, but just thought I’d give you an update.
    It turns out that the database somehow corrupted. The only solution was to reinstall from an older backup (5 days prior). I tried just about everything including a fresh install of WP.

    Thanks so much for your willingness to help, really appreciate it!

    Kind regards
    Dee ??

    Good to hear that you’ve got it all sorted out now.

    temperament

    (@temperament)

    I found a solution for the same issue.

    For those who are still suffering from the same case and didn’t find the solution:

    I’ve dived deep in WP source code and found that in options, the key of the user’s capabilities are stored together with the prefix of the database tables (e.g. prefixhere_capabilities, or wp_capabilities in default case).

    So, if you moved your WP install manually (transfer files and database) the solution is:

    0.) Open Phpmyadmin
    1.) In options table, search for “_capabilites” in option_name column.
    2.) Replace the old prefix with the one (oldprefix_capabilites => newprefix_capabilites)
    3.) Enjoy! ?? You can now access your WP Admin.

    I would publish the mysql UPDATE statement to do the replace, but maybe it would case more problem for those who has another issue.

    I hope this will help some.

    Cheers,

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Can’t access WP Admin “Sorry, you are not allowed to access this page”’ is closed to new replies.