Logout issue with new Domain on WP Multisite

I asked on the WordPress MU Domain Mapping plugin support page and it turns out it was a setting in the plugin that needed to be turned off. I turned off Redirect administration pages to site’s original domain and it’s working now. Thanks for your ideas and help!

Deleting a user in multisite

I ended up figuring this out a while ago… completely forgot to post it here. Once I added the include properly it worked: require_once(‘./wp-admin/includes/ms.php’); if ( $user ) { wpmu_delete_user( $user->ID ); } For the sake of future readers here was the final code: function handle_gateway_return() { $GWPass = get_option( $this->gateway . “_gateway_gwpass” ); if … Read more

Multisite WordPress nginx uploaded files throw 404

I solved the problem by upgrading the way files are uploaded and displayed to the new WordPress 3.5 method. A more detailed tutorial can be found at http://halfelf.org/2012/dumping-ms-files/ but the basic steps are as follows: Move images from blogs.dir/#/files/ to /uploads/sites/#/ Change WordPress settings so it doesn’t look in /files/ but in /uploads/sites/#/ In .htaccess … Read more

Subsites in Multisite installation throwing 404 error on wp-admin in IIS 7

Figured out the issue. It was with the generated “WordPress Rule 6”. It was giving 2 identical regex expressions. Removed the extra regex expression. Also had to remove “WordPress Rule 5”. Renumber the rules and now everything works fine. Here’s the updated web.config: <?xml version=”1.0″ encoding=”UTF-8″?> <configuration> <system.webServer> <rewrite> <rules> <rule name=”WordPress Rule 1″ stopProcessing=”true”> … Read more

cant enable theme in multisite

Finally I’ve found that, in wp-sitemeta DB table, allowedthemes record value was incorrectly serialized (dont know why) and there was a:4 (instead of a:3, because actual length of array was: 3 values of s:) a:4:{s:13:”twentysixteen”;b:1; s:5:”meris”;b:1; s:8:”my_theme”;b:1;} I changed a:4 to a:3 and it worked. (also, make sure there is no more allowedthemes rows in … Read more

Non-wordpress subdomains on Multisite Installation

The WP Codex gives two examples of excluding a subdirectory from multisite’s control. .htaccess method (as Karthik noted) Virtual host method .htaccess Being sure to call the sub rewrite BEFORE the rewrite of ww.domain.com to domain.com RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} subdomain.domain.com RewriteCond %{REQUEST_URI} !subdomain/ RewriteRule ^(.*)$ subdomain/$1 [L] # Rewrite http://www.domain.com to domain.com … Read more

Multiple Multisite networks on the same domain?

You can not run different networks or different Multisite installations under one domain in the default possibilities of WP. But you can use one Multiste with multiple networks with the help of a plugin – https://wordpress.org/plugins/wp-multi-network/ With this plugin get you the chance to create different networks with sites in one installation, one Multisite. Like … Read more

WordPress Multisite with VVV

You need the VVV Custom site template to enable multisite. And you have to let the main Vagrant instance load it automatically. Open the vvv-config.yml in the main directory, under sites: add the following entry: msvagrant: repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template hosts: – msvagrant.dev – en.msvagrant.dev – de.msvagrant.dev custom: wp_type: subdomain Then run vagrant up, and it should … Read more

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