WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] "My Sites" no longer lists all my sites (15 posts)

  1. David Miller
    Member
    Posted 2 years ago #

    The My Sites menu used to list all the sites on my network that I was connected to - now it only lists my main site. What happened to that in 3.3?

    [moved to Multisite forum]

  2. Which menu? The one from the drop down on the toolbar or...?

  3. David Miller
    Member
    Posted 2 years ago #

    Yes, the one from the drop down on the toolbar.

  4. I BELIEVE that only lists sites you're added to as an admin.

  5. David Miller
    Member
    Posted 2 years ago #

    That is not the issue, I am listed as an admin on many of the sites. I've just confirmed with some of those sites that I am an Administrator but they are not showing in the list.

  6. jdyer05
    Member
    Posted 2 years ago #

    Did you replace wp-config.php file when you upgraded? If so, you have to re-add the Multi-site lines from your previous file or the network won't display. If you used the automatic upgrade option, that shouldn't be a problem, but it still might be worth checking.

  7. David Miller
    Member
    Posted 2 years ago #

    I did the automatic upgrade but I'll look into that just in case. Thanks for the suggestion.

  8. jk3us
    Member
    Posted 2 years ago #

    This seems to be somewhat related to this problem. If you comment out lines 699 and 700 of wp-includes/user.php (the same place that other problem occurs), you get all of your blogs back in that menu. I'm not sure what the rationale was for adding that, but it seems that little section needs some more attention :)

  9. David Miller
    Member
    Posted 2 years ago #

    I tried both commenting those lines out and doing as suggested in the other problem of changing line 699 from:
    if ( 0 !== strpos( $key, $wpdb->base_prefix ) )
    to:
    if ( strlen($wp->base_prefix) && 0 !== strpos( $key, $wpdb->base_prefix ) )

    Both approaches were successful.

  10. Andrew Nacin
    Lead Developer
    Posted 2 years ago #

    An empty database prefix is not supported.

  11. marky_uk
    Member
    Posted 2 years ago #

    Hmmm, this hasn't solved the problem for me here - running Multisite on 3.3.1 and coming here to try and find a solution!

    If anyone else still has the problem despite trying to above fixes and works out how to fix - please post here :-)

  12. marky_uk
    Member
    Posted 2 years ago #

    I've worked out my problem and it's NOT a technical problem, but will possibly help others too ---

    I'm EXPECTING to see a list of all sites in the My Sites dropdown, when I'm logged in as the main Admin user ... so I think WordPress is working correctly ... it's just not as I really expected! :-)

    I've just added the admin user to a site I wasn't seeing in the list, and sure enough, I can now see the site in the My Sites dropdown - I just expected Admin to be a super-set of all other users - therefore, show all sites!

  13. koskow
    Member
    Posted 2 years ago #

    Thanks Marky_uk - adding my superadmin to the other site worked perfectly!

  14. chris
    Member
    Posted 1 year ago #

    Worked for me as well. Does anyone know how to add the Super Admin to a new site by default when it's created?

  15. ancawonka
    Member
    Posted 1 year ago #

    There's a hook for adding a new site. You can add an action there that will assign the super-admin to sites as they are added.

    However, this is a bad idea when your network starts to have lots of sites. The drop-down becomes pretty useless when there are more than 10-20 sites.

Topic Closed

This topic has been closed to new replies.

About this Topic