I have a Multisite installation that I just upgraded to 3.5.2. So far everything has been working great (9 sites); after the upgrade I just went to create two new ones, and I have a problem. Everything below is done as the superadmin who is also the admin for the new sites.
- Network Admin -> Sites does not show the new sites.
- If I try to edit them by tweaking the Edit URL of the Sites menu (
13being the number of the new blog that I can see in the database), I get "You do not have permission to access this page."
- However, My Sites does show them.
- When I access the site through My Sites (
/blog-name/wp-admin/), I see normal interface, and I can visit the site without any problems.
So the question is, how can it happen that a superadmin not see a site? And how do I fix it?
EDIT: It seems my new sites got
wp_blogs.site_id = 3, whereas all of my older ones have
wp_blogs.site_id = 1. I have no idea how this happened, but my
wp-config.php also says that
3. I suspect I should not touch
BLOG_ID_CURRENT_SITE, I guess it says that my default blog the one with
wp_blogs.blog_id = 3?
Can I change these values to
1 safely? (
SITE_ID_CURRENT_SITE, as well as
wp_blogs.site_id for all blogs) Is this number referenced anywhere else that I'm overlooking?
I believe I created my last blog (before today's fiasco) well after touching anything in
wp-config.php. Did WordPress only lately start paying attention to
SITE_ID_CURRENT_SITE, so that things started going wrong only after the update?