• Resolved rafataref

    (@rafataref)


    Some of the scanning results was asking to delete files related to different themes, and to revoke admin access because created outside WP,
    Mistakenley files deleted and admin revoked,
    no limited access to the admin, and also the administrator can’t see the plugins and themes in the dashboard.
    I tried to change the name of theme and to follow the instructions I received from word fence to my email. all without results.

    please help

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @rafataref,

    It sounds like the permissions for your administrator account was changed.

    Can you run these two queries to restore administrative privileges?

    UPDATE wp_usermeta SET meta_value = 'a:1:{s:13:"administrator";b:1;}' WHERE meta_key = 'wp_capabilities' AND user_id = (SELECT ID FROM wp_users WHERE user_login = 'admin');

    UPDATE wp_usermeta SET meta_value = '10' WHERE meta_key = 'wp_user_level' AND user_id = (SELECT ID FROM wp_users WHERE user_login = 'admin');

    Remember to change wp_usermeta and wp_users if you use a different prefix (default is wp_)

    Also remember to change admin if your username is not named admin.

    Dave

    Thread Starter rafataref

    (@rafataref)

    Thanks for reply, But How to run them? Please help

    Thread Starter rafataref

    (@rafataref)

    I updated it using sql php myadmin, nothing changed

    Thread Starter rafataref

    (@rafataref)

    Solved
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No Access’ is closed to new replies.