The MU forums have moved to WordPress.org

Administrator Rights have been lost after Loading New MU plugin (4 posts)

  1. Bill008
    Member
    Posted 15 years ago #

    I loaded a plugin for MU-WP-Footer HTML.php off the wpmu.org site

    Added it to the MU Plugins Folder

    And what do you Know Now I have lost all administrator Rights
    and when I go to users on the admin it says

    Cheatin huh which is a warning error in the wp-admin/users.php File

    //if ( !current_user_can('edit_users') )
    //wp_die(__('Cheatin’ uh?'));

    I have commented out the warning error to get into the users screen but Obviously its called from the database

    I am in the wp-options Table but Not sure Where the setting for the administrator role is HMMM

    Help Please

  2. cafespain
    Member
    Posted 15 years ago #

    You want the table wp_usermeta (i'm going off a local WP database, but I think it's called the same thing in MU).

    For your userid (which you can find in the wp_users table) you are looking for a line with wp_capabilities in the meta_key.

    For an administrator, you should have something like:

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

    In the meta_value field.

  3. cafespain
    Member
    Posted 15 years ago #

    Ok, it'll actually be wp_x_capabilities in the meta_key where x is the number of the blog that the rights are for.

  4. Bill008
    Member
    Posted 15 years ago #

    Hey thanks for the Help you are right

    I just couldn't remember which table and Finding it in 8201 Tables in A database are Not easy to search

    Thanks Ive up loaded a backup and we are up and running I thought the worst to Begin with as Ii thought I had been Hacked

    Regards Bill

About this Topic