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 after upgrade

August 02, 2012 4:43pm

Subscribe [2]
  • #1 / Aug 02, 2012 4:43pm

    ronanmcmahon

    13 posts

    Hello,

    I recently upgraded to EE2.5.2 and now search doesn’t seem to be working anymore.

    I am using the following code for the search, it was working perfectly on EE1

    {exp:channel:entries channel="property" sort="asc" orderby="title" dynamic_parameters="search:country|search:price|search:property|search:type2|search:financing" search:country="" search:price="" search:property="" search:type2="" search:financing="dummy"}

    Any ideas on what could be causing the problem?

    Thank you.

  • #2 / Aug 02, 2012 4:55pm

    Shane Eckert

    7174 posts

    Hey ronanmcmahon,

    I am sorry to hear you are running into this problem.

    Can you show me your actual search form?

    Thank you,

  • #3 / Aug 02, 2012 5:03pm

    ronanmcmahon

    13 posts

    Hello,

    This is the code for the search form:

    <form action="{path='property/index'}" method="post" id="plisting">
    
    <select name="search:country">
        <option value="">Country</option>
        <option value="Argentina">Argentina</option>
        <option value="Belize">Belize</option>
        <option value="Brazil">Brazil</option>
        <option value="Costa Rica">Costa Rica</option>
        <option value="Dominican Republic">Dominican Republic</option>
        <option value="Ecuador">Ecuador</option>
        <option value="Mexico">Mexico</option>
        <option value="Nicaragua">Nicaragua</option>
        <option value="Panama">Panama</option>
        <option value="Thailand">Thailand</option>
        <option value="Uruguay">Uruguay</option>
        <option value="">All</option>
    </select>
    
    <select name="search:price">
        <option value="">Price</option>
    <option value="Less than 100,000">Less than 100,000</option>
    <option value="100,000 to 200,000">100,000 to 200,000</option>
    <option value="200,000 to 300,000">200,000 to 300,000</option>
    <option value="More than 300,000">More than 300,000</option>
        <option value="">All</option>
    </select>
    <select name="search:type2">
        <option value="">Type</option>
        <option value="New">New</option>
        <option value="Pre-construction">Pre-construction</option>
        <option value="Resale">Resale</option>
        <option value="Other">Other</option>
        <option value="">All</option>
    </select>
    
    
    <select name="search:property">
        <option value="">Property</option>
        <option value="Condo">Condo</option>
        <option value="House">House</option>
        <option value="Lots">Lots</option>
        <option value="Townhouse">Townhouse</option>
        <option value="">All</option>
    </select>
    
    <select name="search:financing">
        <option value="">Financing</option>
        <option value="Yes">Yes</option>
        <option value="No">No</option>
        <option value="">All</option>
    </select>
    
    <input type="submit" value="Submit">
    
    </form>
  • #4 / Aug 03, 2012 1:45pm

    Shane Eckert

    7174 posts

    Hey,

    Can you create a new template and test out just a basic form?

    {exp:search:simple_form channel="news" search_in="everywhere" where="all"}
    
    <label for="keywords">Search:</label>
    
    <input type="text" name="keywords" id="keywords" value="" size="18" maxlength="100">
    
    
    <input type="submit" value="submit" class="submit">
    
    {/exp:search:simple_form}

    Optional

    no_result_page="search/noresults"
    result_page="news/searches"

    Thank you,

  • #5 / Aug 03, 2012 2:16pm

    ronanmcmahon

    13 posts

    ok I managed to get this fixed.

    http://ellislab.com/forums/viewthread/202699/#946923 pointed me in the right direction, I had to redo the .htaccess file with the EE guide.

    Thanks for the help!

  • #6 / Aug 03, 2012 4:18pm

    Lisa Wess

    20502 posts

    Hey Ronanmcmahon -

    I’m glad to hear you got this figured out!  If anything else comes up, please let us know. Thank you!

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

ExpressionEngine News!

#eecms, #events, #releases