Ok, well this is not exactly to do with subdirectories as such, but there is something mixing up the queries between the subsites…
As you can see the error is saying wp_posts.post_title
is not found – because the table selected is actually FROM wp_2_posts
… showing the different table prefixes for site 1 wp_
and site 2 wp_2_
… so one will not be found within the other.
It could be the form action destination perhaps, try replacing home_url("https://wordpress.stackexchange.com/")
with get_site_url(null, "https://wordpress.stackexchange.com/")
, and hopefully the search form will post to the correct site. Not sure if that will fix it though.
Otherwise it could be a plugin that doesn’t support multisite messing up the search query somehow by not using $wpdb->prefix
instead of wp_
when creating the query. If that’s the case try disabling any plugins that might be doing that…
Related Posts:
- find a random blogid across my multisite network that has at least one post published
- Built to scale, or worry later?
- BP Multi Network & Members Directory [closed]
- SQL Query to Get list of all users along with their blogs
- Multisite Installation: how do I setup global search?
- Using $wpdb Class to Pull Recent Comments Across a Network
- Creating a better multi-site search experience
- Split a database will improve performance?
- Global searchin multisite but only with one subsite
- Make WordPress Search for Both Main Domain and Subdomain
- Multi Site Search Pagination is Broken
- Within the database, where is the flag which says that a user has Super Admin rights?
- Performance on WPMS
- Bulk activate a theme on multisite
- Removing a wordpress multisite installation and preserving the database before migrate to nginx
- Database Tables Lost Indexes? How to Recover?
- Pushing stored procedure to a multisite database in WordPress
- Query to import data from one MultiSite table to another (pages/sub-pages)
- How can I use WP_Site_Query to find a blog by blog name?
- Will changing the folder name two directories above a fresh wordpress installation break the site?
- Obtaining user table for one site on multisite set up
- new multisite, old db
- Renaming admin user on multisite install by MySQL
- Set up Network Locally on a Flash Drive
- Delete all user’s meta without knowing all the ‘key’
- WP MultiSite: Can’t select database error after changing to new domain
- add_blog_option blog ID
- How to unindex a single blog in Multisite?
- How to create a blogs category page with Blog-Types Plugin
- Can I use the main Multisite as a backend only?
- How To Upload Existing WordPress Site To WordPress Multisite Using SSH
- WordPress Multisite with thousands of blog
- Get multisite count without php?
- WordPress and SQL – Update and Insert from another table if column value doesn’t exist
- MySql Database In WordPress Multisite
- Multisite Tables the same as Single Install?
- Plugin data shared in Multisite
- Merging versions of wp_posts based on post_title
- Is there a full explanation on how to share a database with two WordPress sites on same server?
- Too much slow queries with my multisite
- Multisite: merging two subsites in the main site
- How to use WordPress Multisite With Different Domain Names?
- How To Add Custom Form Fields To The User Profile Page?
- Where are available Roles Defined in the wp_ database?
- restore_current_blog() vs switch_to_blog()
- Can i merge 2 new WP_Query($variable) ‘s?
- How to disable a network enabled plugin for just one site?
- How to reliably flush rewrite rules on multisite?
- Site Redirecting to wp-signup.php
- Moving a WP Multisite to a subdirectory
- Cookies in multisite where network sites have their own domain name
- Convert a Multisite WordPress install into a Single site
- WordPress MultiSite Active Directory integration and site privacy
- WordPress Job Interview Preparation
- How to add Custom Blog Options to new blog setup form?
- How can I trust switch_to_blog()?
- Remove the blog slug from WordPress Multisite root node
- Why are my roles not visible in a Multi-site/Network?
- Site admin in a network install can’t edit users?
- How to use same email for multiple users
- How to run an activation function when plugin is network activated on multisite?
- Specific upload folder for PDFs in custom Post type in WP multisite
- What is the correct way to map multiple domains in a WordPress 4.1 multisite install?
- Where can I find documentation on what characters are allowed in user names and why?
- How to migrate subsite from dev multisite to production multisite
- How can I un-reserve a pending username registration?
- How do I remove/delete an old super admin user?
- DB connection error after copying a WordPress Multisite instance to a second location
- Redirect Main Site to Subsite in Multisite WordPress
- Is there a is_user_logged_in() for multisite?
- Switching MultiSite installation from HTTP to HTTPS
- Allow user to select a theme to install when they signup
- Setting up a wordpress network with third level domains
- Get upload URL by blog ID in multisite
- What’s the difference between get_site_option and get_blog_option?
- Need help sorting “My Sites” Alphabetically
- How to delete post revisions?
- Create mobile site with same content just different theme
- Add additional Network constants to wp-config.php dynamically
- Multisite stuck at 1MB for max file size
- How to get blog name, when using WordPress Multisite
- What are options are there to implement a multi language site
- Switching primary site in WordPress Multisite
- Multisite Network Port Num Issues?
- Convert existing site to network
- Where is the robots.txt stored for a WordPress Multisite install?
- Settings API in Multisite – Missing update message
- Add WordPress MU Network Admin via Database
- How to get current site id? (WPMU)
- Multisite on Windows with wildcard subdomains
- Why is WordPress Multisite redirecting to wp-signup.php and how to fix it?
- Which asset URLs are acceptable in a “vanilla” MU install?
- $wpdb->base_prefix not get parent site prefix in multisite
- How to tell which database tables belongs to which multisite site
- what are pmxi tables? [closed]
- Using wp_insert_post() with Networking enabled
- Are nested subdomains possible with a subdomain multisite?
- Sharing Dynamic Sidebars across Multisite Blogs
- I want to develop locally with Multisite, then migrate each site to separate remote WP installs
- Password Reset for Users on a Multisite Subsite