Blog broken after changing Site/Home URL

If you have access to the MySQL DB, make sure that wp_blogs.domain is correct, and also wp_blogs.path. Also, run the following to verify the values are correct (assuming WP_OPTIONS is the table holding the options for your main site). SELECT * from wp_options where option_name=”siteurl” or option_name=”home”;

Multisite authorization error 401

Look carefully at your .htaccess and apache configuration, Your server is intercepting the request. Unless I’m mistaken, I really don’t think this is a WP problem. You might try ServerFault.com and/or your host provider for this one. You also might want to think about how subdomain are mapped to your site. Chances are, if I … Read more

Problem in adding new site on WP multisite

The problem was solved in the next update of WordPress. By the way if you still haven’t updated your version of WordPress: It’s enough to set DB_COLLATE in the wp-config.php: define(‘DB_COLLATE’, ‘utf8mb4_general_ci’); // on condition that your DB_CHARSET is ‘utf8mb4′ That’s it! The bug is hidden in the file \wp-includes\wp-db.php on the line 731 in … Read more

Determine if a Network has any sites created already

I solved it by doing using this code: global $current_site; $current_site_id = $current_site->id; $args = array( ‘network_id’ => $current_site_id, ); $site_info = wp_get_sites( $args ); $num_of_sites = sizeof($site_info); If anyone has a more elegant way of solving please post your answer.