WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Blog Admins can't see Widgets (10 posts)

  1. danhgilmore
    Member
    Posted 2 years ago #

    I've recently upgraded from WPMu2.8.1 to WP3.2.1, and the only glitch I'm seeing (and it's most likely on my end) is that only a few blog admins cannot see everything they should.

    Under Appearance, they see:

    Themes

    when they should see

    Themes
    Widgets
    Custom Header

    I've verified that they have the correct user_level and capabilities in the wp_usermeta table.

    I can't link the sites, but I can provide any info to help troubleshoot. Thanks folks!

  2. Per tweets, 2010 and 2011 have access to all those settings on MultiSite.

  3. Aaron Jorbin
    Member
    Posted 2 years ago #

    I seem to remember a similiar issue when I upgraded a wpmu site to WP 3.0 and it came down to the users not being granted the edit_theme_options capability.

    On one of the sites, try running a one time script that hooks into init and does

    $role =& get_role('administrator');
    $role->add_cap('edit_theme_options');

    http://codex.wordpress.org/Roles_and_Capabilities#edit_theme_options

  4. danhgilmore
    Member
    Posted 2 years ago #

    More info:

    TwentyTen/Eleven, K2 and default are some of the themes giving me fits. Also, deactivated plugins, no joy.

    @Aaron - Thanks, I'll look into that :)

  5. danhgilmore
    Member
    Posted 2 years ago #

    @Aaron - What would be the best way to run that script? I'm fearful to run it on every one

  6. danhgilmore
    Member
    Posted 2 years ago #

    I created a script to switch_to_blog(' . $blog_id_in_question .'), then rand Aaron's code. It worked like a champ.

    Now, should I do it for each blog as they report issues, or would it be ok to just run it on every site?

  7. Aaron Jorbin
    Member
    Posted 2 years ago #

    Two options that I can think of

    1: Write a script that loops through all of the sites and updates each one individually. This might need a long execution time depending on how many sites you have.

    2:create a little plugin along the lines of:

    add_action('init', 'jorbin_init');
    
    function jorbin_init(){
    if (! is_admin() )
    return;
    if ( FALSE === get_option('jorbin_role_master') ):
    add_option('jorbin_role_master', '1', '', 'yes');
    
    $role =& get_role('administrator');
    $role->add_cap('edit_theme_options');
    
    endif;
    }
  8. danhgilmore
    Member
    Posted 2 years ago #

    I have a foreach.php file that I use just for that first option :) Thanks Aaron!

  9. Aaron Jorbin
    Member
    Posted 2 years ago #

    Glad I could help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.