ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Search Results only working on Default Site under MSM

April 23, 2009 11:20am

Subscribe [5]
  • #1 / Apr 23, 2009 11:20am

    R.BIRD

    41 posts

    I’ve been wracking my brain on this problem since yesterday, with no results. I have(had) three sites setup under MSM: Default Site, Site 2 and Site 3, let’s call them.

    Search forms, results pages, et cetera function as expected on the Default Site (unchanged since original EE install).

    However, no matter how I set up the forms, parameters, et cetera on either Site 2 or Site 3, search results just lands me back at the site index.

    Site 3, btw, was an eeSiteKit setup. And Kurt D spent a few hours on this with me as well and could find no fault in code, et cetera. Even the two of us, together, could not get search to show results. I’ve since deleted Site 3 and have been trying to get search working on Site 2. No luck.

    I’m not sure where to start troubleshooting on this. Did a search through the Forum, but could find nothing like this.

    Any ideas? Anyone?

  • #2 / Apr 23, 2009 12:39pm

    Sue Crocker

    26054 posts

    Currently, Search isn’t MSM aware. I don’t know if any third party dev has figured out a way around this, but I can move this to HowTo.

  • #3 / Apr 23, 2009 1:39pm

    R.BIRD

    41 posts

    Currently, Search isn’t MSM aware. I don’t know if any third party dev has figured out a way around this, but I can move this to HowTo.

    Can you be a bit more specific on this, Sue?

    Are you saying that “Search” will not work at all under MSM, except on the “default” or first site?

    If correct, then why is that? Is it because of template or template group names?

    I’d like to know more…

  • #4 / Apr 23, 2009 1:49pm

    Lisa Wess

    20502 posts

    The search module will search only the Site you are currently on. 

    There are feature requests for this that you could add your voice to.  If you need an immediate solution, it may be best to look at something like Google.

  • #5 / Apr 23, 2009 2:02pm

    R.BIRD

    41 posts

    Okay, Lisa. You’ve misunderstood my problem. I already know that Search will not work across sites. My problem is this:

    Search is ONLY working on the first site (site id=“1”). It does not work within (not across) the additional sites under MSM. Am I making that understandable?

  • #6 / Apr 23, 2009 2:29pm

    Lisa Wess

    20502 posts

    Ok, so if I am understanding, you have a Site with a weblog and search form, the search form is looking at the weblog on the same site and not pulling results, correct?

    That should work, so please do confirm. There are areas we can look at here.

  • #7 / Apr 23, 2009 3:13pm

    R.BIRD

    41 posts

    Yes, Lisa. That is exactly right. Search form is looking on the same site (not across sites) and not pulling results. (Works fine on the default site, though).

    If I search for something valid (I know the result exists), search is not presenting anything at all. I am dropped off back at site index page. If I search for something INvalid (does NOT exist), then search reports appropriately that no results were found.

  • #8 / Apr 23, 2009 4:53pm

    Ingmar

    29245 posts

    May I ask what version and build of both EE and the MSM you are on?

  • #9 / Apr 23, 2009 5:20pm

    R.BIRD

    41 posts

    EE 1.6.7 20090320
    MSM 1.1

  • #10 / Apr 24, 2009 2:42am

    John Henry Donovan

    12339 posts

    R.BIRD,

    Can you provide the actual search template code you are using?

    If you view the source on your both your sites, what value is used for site_id in each

    <input type="hidden" name="site_id" value="1" />
  • #11 / Apr 24, 2009 10:37am

    R.BIRD

    41 posts

    @John: all is as it should be with regard to site id. Values are correct.

  • #12 / Apr 24, 2009 12:37pm

    R.BIRD

    41 posts

    Still getting nowhere on this issue.

    I’ve checked system paths, templates, form parameters, etc.

    Search on site id 2 just does not find the search/results page whatsoever. Every search, valid or invalid, dumps back to site index page.

    I’ve turned on error reporting, too. Nothing reported.

    I just don’t know where to look for trouble.

  • #13 / Apr 24, 2009 12:59pm

    Kurt Deutscher

    827 posts

    Thought I would chime in here.

    I logged in to this site and set up a default simple search form right out of the docs and couldn’t get things to work.

    I work with the simple search form on nearly every site I build and I’ve never had it do this before.

    Its as if the page_results parameter is being totally ignored AND, not being replaced with the fail-safe of ‘search/results’ that will be used when a person hasn’t set the parameter.

    I’m wondering what sorts of things might allow the site to work, and still prevent the simple search from accessing the correct path info, and/or processing the path info at all from the path.php file on the server (as that’s where this form still gets its info from).

  • #14 / Apr 24, 2009 1:03pm

    Lisa Wess

    20502 posts

    Are you doing this logged in?  I’m curious if the search/results template is access protected.  This would certainly be symptomatic of such a setting.

  • #15 / Apr 24, 2009 1:08pm

    Kurt Deutscher

    827 posts

    Nope, should work for anyone.

    Nothing tricky at all about this, that’s why its so strange.

    The conversation started over here.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases