what are pmxi tables? [closed]
This doesn’t sound like something coming from WordPress core. Quick search online got pretty slim results, but it seems to be asscociated with WP All Import plugin.
This doesn’t sound like something coming from WordPress core. Quick search online got pretty slim results, but it seems to be asscociated with WP All Import plugin.
The number you refer to is the blog/site ID, so you have multiple methods of finding out which site it is: Look in the sites table, the number should match the ID, providing you with a URL and title Go to example.com/wp-admin/network/site-info.php?id=insert-number-here and you’ll be shown the network admin UI for that site Consider a … Read more
$wpdb->base_prefix gets the original prefix (ie, the ‘root’ site in a Multisite installation). It was added in Version 3.0.0, right when Multisite became a part of WordPress core. $wpdb->prefix will get the prefix for the current site in a Multisite installation. Per the documentation for the wpdb class: $prefix The assigned WordPress table prefix for … Read more
Since “WordPress MU is no longer under active development as a separate product“, I don’t recommend using it. Instead I recommend using the setup described in this answer. It’s highly configurable you can choose what WordPress files you want on all your WordPress sites and what you want to store separately from each other WordPress … Read more
Short Answer example.com/bob/files/picture.jpg is the preferred, canonical URL for images in a WordPress Multisite installation. The two URLs with blogs.dir in the URL are essentially identical, and both leverage the filesystem structure. The path with ‘bob’ exists because you did a sub-directory install, not a subdomain install. Other paths would exist based on your other … Read more
After many hours of debugging and despair, the problem is now solved. It turned out to be a very obscure thing. The redirect is issued by the function ms_load_current_site_and_network() inside /wp-includes/ms-load.php. It was issuing the redirect because /wp-includes/ms-settings.php was not able to set a domain. The reason it was not able to set a domain … Read more
Searching inside all uninstall.php files that I have in my hard-drive, I’ve found two that had the function is_multisite(): User Role Editor and Add Code to Head. Both use a $wpdb loop. Simplified: <?php /** * Plugin Uninstall Procedure */ // Make sure that we are uninstalling if ( !defined( ‘WP_UNINSTALL_PLUGIN’ ) ) exit(); // … Read more
There is a plugin for that: WP XAMPP Multisite Subdomains. Unfortunately, there is no English description available. I’ll try that here. The following guide will set up a multi-site under mu.wp with subdomains. 1. Basic Installation Start with a fresh installation of WordPress and XAMPP. Create a network for subdomains. Do not create any sub … Read more
You’re right, get_current_site()->blog_id will return 1, as it refers to the network. To get the current site (blog) ID you can go like this: <?php echo get_current_blog_id(); ?> Moreover you can get the current site (blog) details like this: <?php var_dump(get_blog_details()->blog_id); ?>
So, it turns out that those three changes were all that were needed. It also turns out that if any of the serialized arrays are modified incorrectly (which is easy to do when modifying them by hand), the system will just assume you are not a network administrator. Correcting the serialized array for the site_admins … Read more