Set subdomains live in a next step

If you choose subdomains, then you will have to configure wildcard subdomains on your server. That is pretty much going to be the end of your current subdomains. Well, not entirely. If you configure sub1.domain.at and sub2.domain.at before *.domain.at then sub1 and sub2 should probably still work. However, you cannot WordPress and another system running … Read more

Prevent Deletion of Blogs

You can not stop anything which do not have an explicit option to be stopped. In this case, actions are a mean to execute some additional code in the context of a specific execution path, and not to alter it. If there is no way to signal to the process to stop, than the only … Read more

Multisite Subdomains result in 403 Forbidden

https://wordpress.stackexchange.com/a/135740/141068 I used the above link to correct my issue. You can check your wildcard subdomain to be pointing to the same folder as that of the main WordPress installation folder. For example, if example.com is installed on public_html/example.com, *.example.com should be added to the same public_html/example.com.

Creating multiple blogs

Apparently a global variable is not properly updated. I found a fix based on blackriver’s reply here, it’s a little ugly but it works: add_action(‘switch_blog’, ‘fix_wpmu_create_blog’, 10, 2); function fix_wpmu_create_blog($new_blog_id, $old_blog_id){ global $wpdb, $wp_queries; if($wp_queries && defined(‘FIX_WPMU_CREATE_BLOG’)){ $old_pattern = $wpdb->base_prefix.$old_blog_id.’_’; $new_pattern = $wpdb->base_prefix.$new_blog_id.’_’; $wp_queries = str_replace($old_pattern, $new_pattern, $wp_queries); //echo ‘<pre>’; //print_r($wp_queries); //echo ‘</pre>’; } } … Read more

Redirect to a Plugin Settings Page After Multisite Site Creation?

The following code does the redirect. In this example, the redirection is to a BackupBuddy’s page. add_filter(‘admin_head-site-new.php’,’wpse_35760_redirect_after_site_creation’); function wpse_35760_redirect_after_site_creation() { if( !isset($_GET[‘update’]) || ‘added’ != $_GET[‘update’] ) return; switch_to_blog($_GET[‘id’]); wp_redirect( admin_url( ‘admin.php?page=pb_backupbuddy_multisite_export’ ) ); exit; } For reference: Related Answer that uses an Action Hook fired on blog creation. But, for the case in this … Read more

Built to scale, or worry later?

Have a look into how WordPress.com do it – they released all the software they use under open licensing, and it’ll let you scale up in future as you need it – far as I know, DB replication is pretty easy to build in. If in doubt, email Matt (ma.tt) – the WP team are … Read more

At MultiSite Network Update “Can’t Resolve host”, override and continue updating

I’d say that’s not possible to hook into that… Here’s the relevant part from /wp-admin/network/upgrade.php: $blogs = $wpdb->get_results( “SELECT * FROM {$wpdb->blogs} WHERE site_id = ‘{$wpdb->siteid}’ AND spam = ‘0’ AND deleted = ‘0’ AND archived = ‘0’ ORDER BY registered DESC LIMIT {$n}, 5”, ARRAY_A ); if ( empty( $blogs ) ) { echo … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)