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
- Where are available Roles Defined in the wp_ database?
- How do I transition multiple installations to a single Multisite installation?
- Give to site admin the option to “skip confirmation email” when adding new user
- WP Multisite: Adding pages on blog creation by default
- Generate a user list per site to communicate upgrade plans
- Get all terms inside a specific taxonomy in a multisite
- Getting a blog language (site “lang_id” field vs the WPLANG setting)
- wp-admin slow in multisite
- Subdomain multisite gives 404 on sub sites
- Add New Sub Site from the WordPress back end then in sub site options table option_value must be with https
- WordPress Multisite – is it possible to put the main site in a subdirectory?
- W3 Total Cache – How to disable “Performance” menu under multisite? [closed]
- Multisite without .htaccess
- How to prevent first post and first comment on WP MU?
- Multisite installation on IIS gives 404 trying to access the admin dashboard
- Is Partial SSL Possible? ( multisite )
- In Multisite “Sites” list, what do “deactivate” and “archive” really do?
- Why does the My Site dropdown show only a single domain?
- Display site administrator’s id by current blog id inside link
- Switch MultiSite main site with another (multilingual sites) – with subfolder – no subdomain
- WordPress Multisite’s in subdirectory not redirecting to dashboard settings
- Multisite: How can I have the admin bar (toolbar) use the language of the user instead of the language of the sub-site being viewed?
- Multisite install on subdomain w/ subdomains change siteURL
- Make uploads live outside of the WP folder
- Multi-Site Subfolder User Permission Issue
- why there is a large file named core in wpmu’s directory?
- WordPress multi-site, developing locally and syncing live changes
- wp_get_attachment_image_src on multisite
- Problem with parked domain for my mutisite
- Error : Cookies are blocked or not supported by your browser
- How To Run Multiple Multi-Site Networks On Same Box [closed]
- Changed sub-site to its own domain trigger 302 redirects for all page links
- Page Builders and WP Multisite
- Which is the correct way to migrate content from single WP to WP multisite
- How to have one installation at blog.example.com and multiple blogs in sub folders such as blog.example.com/userA?
- Is a multisite install what I need?
- Infamous admin login redirect
- Create link preview for theme wordpress
- Bitnami multisite change URL of secondary blog
- Domain not redirected correctly with WordPress Multisite
- No debug log for WP multisite is created
- How to show theme on front end before sign up for multisite
- How to connect existing subdomains to new wordpress multisite?
- WordPress Multisite with cPanel Addon Domains and SSL
- Multisites with different root directory
- Using www along with non-www for main domain in multisite installation
- Multisite “Skip Confirmation Email” Log Out Problem
- Page Template Dropdown – Missing In WordPress MultiSite
- How can I display all Multisite blogs where this user is administrator?
- Multisite and users being listed on network administration dashboard and not main site dashboard
- How to remove index.php from a tag or archive page URL in the root blog?
- Post migration from one site to another site in a network
- Multisite Primary Domain Broken All Subsites Work
- FromName –> ReplyTo Name wordpress multisite contact form
- Using WordPress multisite is there a way to force HTTPS on specific subsites and not others?
- WordPress Multisite Medial Library not working for .online domain
- Make multisite non-existing subdomains go to homepage instead of Index of/ page
- Development time to Install and Configure WPML (https://wpml.org/) [closed]
- WordPress Multisite Network – Site Administrators Can’t Access wp-admin
- Multisite, but wp_kses_allowed_html only for one subsite?