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.

Simple search oddly not returning any results

May 22, 2012 6:09pm

Subscribe [1]
  • #1 / May 22, 2012 6:09pm

    ianryde

    112 posts

    Hi all,

    A site I created a while ago, has got to a stage where it needs a good clean up. I noticed that the simple search in the header always seems to return nothing:

    http://www.houseofbatteries.co.uk

    code:

    {exp:search:simple_form channel="products" id="search_mini_form" result_page="search/results" search_in="everywhere"}
      <div class="form-search">
        <input type="text" name="keywords" id="keywords" class="input-text" value="Find your batteries" />
        <input type="image" src="/images/btn-search.png" value="submit" alt="Search" class="submit" />
      </div>
      {/exp:search:simple_form}

    The product name fields and sku fields are all set to searchable in the channel field group.

    Can anyone help?

    Ian

     

     

  • #2 / May 23, 2012 2:37pm

    Dan Decker

    7338 posts

    Hi ianryde,

    Sorry for the sudden trouble!

    Can you give this code a go for a test?

    {exp:search:simple_form channel="products" search_in="everywhere" result_page="search/results" status="not closed" where="all" show_expired="yes" show_future_entries="yes"}
         <input type="text" name="keywords" id="keywords" value="" size="18" maxlength="100" />
         <input type="submit" value="search" />
    {/exp:search:simple_form}

    Let’s see what that gets us!

    Cheers,

  • #3 / Jun 01, 2012 10:06am

    ianryde

    112 posts

    Hi Dan,

    Just added the code and I get:

    Search Results:

      Your search did not return any results.

    Return to Previous Page


    Really weird.

    Ian

  • #4 / Jun 05, 2012 5:29pm

    Dan Decker

    7338 posts

    Hi Ian,

    Can you check that you are consistently using or removing the “www” in the address.

    For instance, if you visit the search with “domain.com” and ExpressionEngine is set to use “www.domain.com” it can lead to this kind of behavior.

    Cheers,

  • #5 / Jun 13, 2012 2:25pm

    ianryde

    112 posts

    Hi Dan,

    I’ve checked that, i think.

    I use leevi graham .htaccessgenerator. Have tried it without, cleared caches. And also tried removing the www. which caused the search not not even try to work and just refreshed the screen.

    No matter what I search for the results are still: Nothing found.

    Thanks,
    Ian

  • #6 / Jun 13, 2012 6:05pm

    Dan Decker

    7338 posts

    Hi Ian,

    Let’s get in for a closer look at this. Be looking for an email from me.

    Cheers,

  • #7 / Jun 15, 2012 3:48pm

    Dan Decker

    7338 posts

    Hi all,

    We are looking into this with Ian in private. We’ll post back here when we have a resolution!

    Cheers,

  • #8 / Aug 24, 2012 12:01pm

    ianryde

    112 posts

    Hi Dan,

    This was now fixed, many thanks for your support, as ever spot on!

    Ian

  • #9 / Aug 27, 2012 12:43pm

    Kevin Smith

    4784 posts

    Woo! Glad we were able to take care of you here. If there’s anything else we can do for you, just let us know!

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

ExpressionEngine News!

#eecms, #events, #releases