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 not working properly

March 14, 2011 2:38pm

Subscribe [3]
  • #1 / Mar 14, 2011 2:38pm

    buridan

    61 posts

    The search function for my site only works when I’m logged into the control panel

    I’m using build 20101220 and no addons or extensions per se, i.e., it has worked in the past and I’m not sure when this started.

    Error message: “The search path contains an error” The search path hasn’t changed either.

    Thanks

  • #2 / Mar 14, 2011 6:26pm

    narration

    773 posts

    buridan, try setting Enable Caching? to No, for the template where the search form tag is located. You can use Edit Preferences for the template, from the Template Manager.

    If this solves your problem, but you need the caching for speed on the overall template, move the search form tag to an embed, and disable caching just for that tag.

    This keeps coming up; it and other search issues were pretty well gone over in the forum, with a bug report attached. Direct to your problem, see here.

    Regards,
    Clive


    p.s. be sure to clear all EE caching, and you probably need the deinstall Seach Module/reinstall step once as well, before testing this workaround, so that you see good results without interference from prior problems.

  • #3 / Mar 14, 2011 7:17pm

    buridan

    61 posts

    Thanks for the response, Clive. All my templates already have the caching set to No.

  • #4 / Mar 14, 2011 7:26pm

    narration

    773 posts

    Well, buridan, it may indeed be something else; however I think search has been solid for everyone working that thread, and the problem there had similar presentation.

    I can just suggest what I did in the p.s. - be sure you did the deinstall Search Module-reinstall step, once all other things are in order, particularly that non-cache setting on template.

    My memory is that the search results are saved separately from what are generally thought of as caches; and those are where the difficulty actually occurs - something involved with session ids that they carry. Thus regular cache clear doesn’t remove them, so that earlier problems can remain.

    Maybe you are encountering something else, however.

    Regards,
    Clive

  • #5 / Mar 15, 2011 9:58am

    buridan

    61 posts

    Thanks, Clive.

    Any thoughts from the EllisLab support folks?

  • #6 / Mar 15, 2011 8:44pm

    Lisa Wess

    20502 posts

    Hi, buridan,

    We can help you get to the bottom of this.  What you’ve described isn’t something I’ve run afoul of before.  Can you show us your template code for the search form?  I’ll also recommend trying that on an otherwise blank template to make sure something else is not interfering.

    Also - do check your Channel preferences for each of your channels and make sure the Search Results URL is set properly.

    That should give us a good start in helping figure this one out.  Thank you!

  • #7 / Mar 16, 2011 3:47pm

    buridan

    61 posts

    Hi Lisa,

    Could you be more specific on which template code you’re asking for? I have three templates for my template group “search” - index, results, search_css. Then there’s the search code that generates the actual search box on the web pages, placed in various page templates of my main template group.

    Thank you,
    buridan

  • #8 / Mar 16, 2011 4:02pm

    buridan

    61 posts

    Okay, the path for the Search Results URL was missing a forward slash… Thank you, Lisa, for suggesting I double check that.

  • #9 / Mar 17, 2011 10:10am

    Sue Crocker

    26054 posts

    Glad Lisa was able to help. Don’t hesitate to post as as needed.

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

ExpressionEngine News!

#eecms, #events, #releases