Results suddenly stopped working
Similar to the problem describe in this thread: https://getsatisfaction.com/low/topic...
I also am suddenly having problems with getting the results tag to output any results to my users. The backend is recording all the queries fine, but nothing is showing up in the results. This was working, so I'm puzzled as to why it has stopped. I'm running the latest of EE and LowSearch.
Here's my search tag:
{exp:low_search:form collection="sights|articles|accommodations|activities|beaches|blog|facts|hiking|planning|towns" search_mode="any" result_page="search/results" form_class="search" secure="no"}
Search:
{/exp:low_search:form}
And here's my results tag:
{exp:low_search:results query="{segment_3}" status="open" limit="30" disable="member_data|category_fields" paginate="both"}
{if count == 1}
<!--begin primary content-->
{if low_search_keywords}Searched for {low_search_keywords}{/if} — Total results: {absolute_results}
-
{title} Goes Here
{low_search_excerpt}
Found in {low_search_collection_label} with a score of {low_search_score}
{/if}
{paginate}
Page {current_page} of {total_pages} pages {pagination_links}
{/paginate}
{if no_results}
Sorry, your query did not return any results.
Check your spelling or try a different search term.
{/if}
{if count==total_results}
{/if}
{/exp:low_search:results}
Any ideas? Thanks!
Replies
Low 18 Mar 2013 09:21
Can you turn on template debugging and copy/paste the lines that mention Low Search (or any low_search tag) here?
JCDerrick 18 Mar 2013 12:00
No problem, below is the Results page debugging results since I think that's where the problem is located. All instances of low_search are posted:
(0.009151 / 13.12MB) Tag: {exp:low_search:form collection="sights|articles|accommodations|activities|beaches|blog|facts|hiking|planning|towns" search_mode="any" result_page="search/results" form_class="search" secure="no"}
(0.009388 / 13.13MB) Tag: {exp:low_search:results query="eyjjb2xszwn0aw9uijoic2lnahrzfgfydgljbgvzfgfjy29tbw9kyxrpb25zfgfjdgl2axrpzxn8ymvhy2hlc3xibg9nfgzhy3rzfghpa2luz3xwbgfubmluz3x0b3ducyisinjlc3vsdf9wywdlijoic2vhcmnoxc9yzxn1bhrziiwic2vhcmnox21vzguioijhbnkilcjrzxl3b3jkcyi6im9ozw8ifq" status="open" limit="30" disable="member_data|category_fields" paginate="both"}
(0.009654 / 13.14MB) Module Tag: Low_search/form
(0.009688 / 13.14MB) Module Tag: Low_search/results
(0.022925 / 17.04MB) Calling Class/Method: Low_search/form
(0.023002 / 17.04MB) -> Class Called: Low_search
(0.045781 / 18.06MB) Calling Class/Method: Low_search/results
(0.045991 / 18.06MB) -> Class Called: Low_search
(0.081313 / 25.90MB) Calling Extension Class/Method: Low_search_ext/channel_entries_query_result
Low 18 Mar 2013 12:06
There should be more in the template log. Can you see any lines saying "Low Search: ..."?
JCDerrick 18 Mar 2013 12:08
Ah, yes. These are interesting:
(0.027902 / 18.06MB) Low Search: No or invalid query given
(0.046565 / 18.07MB) Low Search: Query parameter set, but invalid
Low 18 Mar 2013 12:09
Yeah, when I try to decode the query string, it doesn't give me the right results. Can you give me superadmin access? I'd like to try something out. You can send the login credentials to hi at gotolow dot com.
JCDerrick 18 Mar 2013 12:14
Thanks, I've just shot you an email over with the credentials.
Low 18 Mar 2013 12:52
After looking on the server, it turned out to be a rule in your .htaccess that transformed the URL to lowercase. Low Search's encoded query is case sensitive so must remain intact to work properly. That's why the query was found to be 'invalid', which in turn triggered the no_results.
Removing the rule fixed the problem.