When I do a multisite search, the results it gives me look like this:
Search results
...
- comments
...
- comments
...
When I do a regular (non-multisite) search, I get the correct results.
So, let's say I search for "win" on multisite.example.com. In a regular search, I get 3 results, and it shows them to me formatted properly. When I search for "substantially" on multisite.example.com/site1, I get 4 results, and it shows them to me formatted properly.
However, when I search for "win" or "substantially", using the multisite search on either of the sites, all I get is this "... - comments". It does, however, give me the correct number of results.
Has anyone else run into this problem? Is this a problem with my setup, somewhere, or is there a problem with the module??
I've tried changing my theme back to Garland, in case it was an issue somewhere with the html.
Here is my setup:
Multisite Configuration
Site id Table prefix Site URL Operations
4 www_ http://multisite.example.com delete
5 site1_ http://multisite.example.com/site1 delete
6 site2_ http://multisite.example.com/site2 delete
In my codebase:
sites/default
sites/multisite.example.com.site1
sites/multisite.example.com.site2
In my Database:
www_sessions ( with $db_prefix = array('default' => 'www_',)
site1_sessions
site2_sessions
Thanks for the module!
...
Kevin.
Comments
Comment #1
transformative commentedI fixed this. I believe this was my fix:
At line 420 of the module, there was a line that looked like this:
In my multisite installation, the users table is a shared table. I had to change the query to use shared_users, rather than $tbl_prefix."users. Ideally, perhaps I could have used a function to figure out what the appropriate users table is for the installation, but I just hard-coded it in the query:
Comment #2
earthday47Sorry, but I won't be supporting the 5.x code (in fact, I took the package link down).
If you're using 6.x, try the latest -dev version.
The shared users is still a sticky bit. I'm looking to address it here: #816948: return correct site's user data on search results page