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 Problems

September 01, 2012 11:33pm

Subscribe [2]
  • #1 / Sep 01, 2012 11:33pm

    Sean Ford

    13 posts

    Greetings,
      For some reason my simple search form isn’t working for Firefox, but works fine for Safari and Chrome.  Here is my code:

    <div class="sidebar-box">
       {exp:search:simple_form channel="products" search_in="everywhere" result_page="/_embeds/search_results" status="not closed" where="all" show_expired="yes" show_future_entries="yes"}
        <h3>Search</h3>
    <p>    <div id="search-form"><br />
         <form method="post" action=""><br />
          <input type="text" id="search-box" name="keywords" value="Enter keywords…" /><br />
          <input type="submit" value="Go !" id="search-button"></input><br />
         </form><br />
        </div><br />
       {/exp:search:simple_form}  <br />
      </div><!-- end sidebar-box -->

  • #2 / Sep 02, 2012 10:12am

    John St-Amand

    865 posts

    Try removing <form method=“post” action=”“> and </form> from the code - the simple search tags insert those for you, so it could be that the browsers are reacting differently to the duplication of the form tags.  If you view the source of the rendered page, you should see what I mean.

  • #3 / Sep 02, 2012 4:00pm

    Sean Ford

    13 posts

    Hey John thanks for your reply,
      Unfortunately, that did not work for me.  That just bring me to an error page, and since I have no error templates it displays this:


    The following errors were encountered
      No templates defined for the Custom System Messages extension settings, or the defined templates can not be found.

    Return to Previous Page

  • #4 / Sep 02, 2012 4:12pm

    John St-Amand

    865 posts

    Can you post what your new simple search tag pair looks like, as well as the content of your search results template?  Hard to say what may be at work there without knowing how each is setup.  Are you conducting a search for an item you expect would generate a result?  I notice you don’t have a no_result_page parameter defined.  The leading slash on _embeds may also be part of it, as the search form uses its own automatic path to the search result destination.

  • #5 / Sep 02, 2012 7:08pm

    Sean Ford

    13 posts

    Hey John,
      I sent you an email with all of the information.  For some reason these forums wouldn’t allow me to post it all here.  I probably need to update my status as a paying member since I own a copy of expressionengine.

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

ExpressionEngine News!

#eecms, #events, #releases