• Resolved Xenesy LTD

    (@xenesy)


    Something very strange… is happening to me.
    I was working on wordpress elementor, and I blocked access to some training pages with elementor … and then BOOM error page, for no reason: “Sorry, you are not allowed to access this page.”

    I go to wp-admin: same message “Sorry, you are not allowed to access this page.” I’m going crazy … because my second one was almost the same… (I thought I was being hacked, to tell you the truth)

    Then I go to plesk and I see a problem with litespeed server (well a problem, just a license problem … I don’t think it’s a problem right now but why not.) Then I say to myself I’m going to switch to apache and put php FPM back and then voilà… the sites work but I still get the same error on the training site.
    It works but it’s IMPOSSIBLE to access wp-admin.

    On my second site no problem, the training site works in the sense that you can go on it (publicly), I can even connect with my administrator account on the “client” side, I can see my profile but I can’t access wp-admin.
    Strange thing I’ve just seen, I log in with a non-administrator account and I can access wp-admin … (just the profile but the link works … ) is there a way to see … do something to recover this access that was taken from I do not know where?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Xenesy LTD

    (@xenesy)

    I create an other user administrator on php admin .. and the same …, it’s terrible …

    Moderator James Huff

    (@macmanx)

    It sounds like your account may have lost admin privileges for some reason.

    If you are not using Multisite, access your database via phpMyAdmin (most hosting providers offer this in your hosting account’s control panel), go to the wp_users table and find the row for your user_login. Note the ID of this row. Now, go to the wp_usermeta table and find the wp_capabilities row for your user_id. Set the value of this row to:

    a:1:{s:13:"administrator";b:1;}

    Thread Starter Xenesy LTD

    (@xenesy)

    Thanks but same probleme …. I did it :”https://help.one.com/hc/fr/articles/17467509114385-Comment-ajouter-un-utilisateur-administrateur-%C3%A0-la-base-de-donn%C3%A9es-WordPress#step-3” and did what you told me now for admin but … same thing … ( License key for litespeed server is good now)

    When issu happened … I was going to block content page with elementor and conditional dysplay widget ( to block some content page with user role) But I did it for lot of pages of lesson ..)

    I put all my plugin in folder old-plugin (who knows) but nothing change… I reaaly don’t understand what happened :/

    Thread Starter Xenesy LTD

    (@xenesy)

    And it’s a simple site not a network

    Thread Starter Xenesy LTD

    (@xenesy)

    I had to recover by my server backup and I see that it was my DATABASE the problem …. but where is it? I have a backup with the “bad” database but I don’t know how it’s happenned … if someone want to see my database backup ^^ ask me because I really like to know where the problem was …

    Thread Starter Xenesy LTD

    (@xenesy)

    UPDATE: WP user Manager was the problem (don’t know why and how) but it was the problem for me. Chnage plugin, delete all (backup and ooh guys make a backup ! )

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘loss of administrator rights can’t access’ is closed to new replies.