• I have recently taken over a website which has turned out to be impossible to access. I have attempted everything the internet has suggested with no progress and still cannot access the dashboard.

    I have administrator rights to the DB, I can access all files no problem at all, yet I cannot reset or grant permissions to any WP users.

    I have had numerous chats with the hosting company who have now given up and told me to contact WordPress directly as they do not understand why I cannot access the site.

    Can anyone suggest any way for me to access the administrator dashboard please? I login with (what is supposed to be administrator access) and I simply get the WP topbar with access to logout only. I have disabled themes and plugins and nothing works. My client is getting impatient and we are losing business by not being able to update the site.

    Are there any experts out there who can help please?

Viewing 15 replies - 1 through 15 (of 15 total)
  • Did you check role in wp-admin/users?

    Thread Starter sherbertspain

    (@sherbertspain)

    Hi. Yes the wp-admin roles were also checked and an attempt to update 2 users failed also unfortunately.

    and your login have “Administrator” role?

    Thread Starter sherbertspain

    (@sherbertspain)

    That is correct yes.

    can you give access to phpmyadmin to view wp_usermeta?

    • This reply was modified 8 years, 5 months ago by WPNuance.

    try to add this code in header.php:

    <?php
    $role = get_role( ‘administrator’ );
    $array = array(‘delete_users’ , ‘create_users’ , ‘list_users’ , ‘remove_users’ , ‘add_users’ , ‘promote_users’);
    foreach($array as $arr){
    $role->add_cap($arr);
    }
    ?>

    and load site

    Thread Starter sherbertspain

    (@sherbertspain)

    Hi,

    I placed the code you sent in the header which pulled back a blank website. After removing the code the site returned to normal.

    I then logged in to it or tried and got the same problem, no access and the top bar with logout.

    if you add this code in the beginning of header.php, site must loaded normally…

    what version of WP?

    search in ‘wp_usermeta’ table nickname ‘adminstrator’,
    what into ‘wp_capabilities’ and ‘wp_user_level’ values?

    • This reply was modified 8 years, 5 months ago by WPNuance.

    ‘wp_capabilities’ – some like ‘a:1:{s:13:”administrator”;b:1;}’

    Thread Starter sherbertspain

    (@sherbertspain)

    Can I clarify you meant the header.php file within the theme please?

    Also in answer to your questions:

    The version is 4.6.1

    The nickname is admin not administrator and the other values are:

    wp_capabilities – a:1:{s:13:”administrator”;b:1;}

    wp_user_level – 10

    sorry, my error… Add this code into beginning of index.php and reload site

    else one: check if DB_USER from wp-config.php have ALL PRIVILEGES in access to DB_NAME

    Thread Starter sherbertspain

    (@sherbertspain)

    Hi,

    Now in placing the php you sent over in the index file it does not break. Still of course nothing occurs however.

    This statement I dont understand sorry.

    check if DB_USER from wp-config.php have ALL PRIVILEGES in access to DB_NAME

    I can confirm the DB_USER in wp-config.php has full DB privileges if this is what is meant.

    ALL PRIVILEGES
    This

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘No administrator access or ability to reset’ is closed to new replies.