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 returning results after upgrading from 2.1.0 -> 2.3.1

November 11, 2011 3:38pm

Subscribe [2]
  • #1 / Nov 11, 2011 3:38pm

    ShawnCBerg

    79 posts

    This question may be related to a resolved thread.

    We just upgraded from version 2.1.0 -> 2.3.1, partly to alleviate a problem with pagination in search results. After upgrading the search will not return any results. The code has not changed and it was returning results immediately prior to upgrading. Here’s the code:

    {exp:search:simple_form channel="a_closer_look|columns_blogs|consumer_corner|editors_desk|editorials|hnf_stories|state_letters|hnf_letters|top_stories|consumer_corner_resources" result_page="search/results" no_result_page="search/no_results" search_in="entries" status="open|Archive" results="9999"}
    
            <input type="text" name="keywords" id="keywords" />
            <input type="submit" value="Search" class="submit" />
    
            {/exp:search:simple_form}

    You can try the search yourself by visiting http://www.healthnewsflorida.org. If you search for ‘Carol Gentry’ you should have a few hundred results returned.

  • #2 / Nov 14, 2011 3:54am

    John Henry Donovan

    12339 posts

    Hi Shawn,

    Can you create a blank template and just add the following default template code as below

    {exp:search:simple_form channel="a_closer_look|columns_blogs|consumer_corner|editors_desk|editorials|hnf_stories|state_letters|hnf_letters|top_stories|consumer_corner_resources" result_page="search/results" no_result_page="search/no_results" search_in="entries" status="not closed" results="20"}
            
                    <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}

    Do you have any addons installed?

  • #3 / Nov 14, 2011 2:29pm

    ShawnCBerg

    79 posts

    Hi John,

    I was able to resolve this myself this morning. I created a blank template as you suggested and got the same result. I realized that I wasn’t seeing the normal no_results template that I should have been seeing. I checked the Template Manager and saw there were about 10 duplicate ‘search’ template groups. We had some problems with the recent upgrade due to a $conf[] variable in config.php. Maybe these got duplicated each time we retried the upgrade wizard? I’m not entirely sure. In any case, I deleted ALL of the ‘search’ template groups and created a new one with the proper templates. All is well now 😊.

    Thanks!

  • #4 / Nov 16, 2011 4:46am

    John Henry Donovan

    12339 posts

    Glad you are up and running again. Feel free to start a new thread if you have any more questions.

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

ExpressionEngine News!

#eecms, #events, #releases