Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-08-20 13:39:43
- simbwoof
- New Member
- Registered: 2006-08-01
- Posts: 5
Extra blank search result
Hi Guys,
On my search resuts page TextPattern is producing an extra set of search results which is blank.
This is the empty html it produces at the bottom of my search results…
<code><div class=“blog_list_entry”>
<h3></h3>
<p></p>
<div class=“read_more”></div></code>
This is the code I have on my search results Page (I haven’t put in the pagination code yet)
<code><txp:article limit=5 pgonly=1 />
<h2><txp:search_result_count /></h2>
<txp:article limit=5 />
<txp:output_form form=“search_results” /></code>
And this is the code from my search results Form
<code><div class=“blog_list_entry”>
<h3><txp:search_result_title /></h3>
<p><txp:search_result_excerpt /></p>
<div class=“read_more”><txp:permlink>Read more…</txp:permlink></div>
</div></code>
Does anyone have any idea why I keep getting this blank result at the end of my results page?
Thanks
Scott
Offline
#2 2006-08-20 18:38:04
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Extra blank search result
Tag trace please. Post any errors you get in debugging mode as well.
Offline
#3 2006-08-20 22:02:52
- simbwoof
- New Member
- Registered: 2006-08-01
- Posts: 5
Re: Extra blank search result
Here is my tag trace. I don’t get any new errors in debugging mode.
Thanks
<!-- Runtime: 0.0801 -->
<!-- Query time: 0.025068 -->
<!-- Queries: 28 -->
<!-- Memory: no info available -->
<!-- txp tag trace:
[SQL (0.000512): select name from `txp_lang` where lang='en-gb' limit 1]
[SQL (0.003917): select name, data from `txp_lang` where lang='en-gb' AND ( event='public' OR event='common')]
[SQL (0.002124): select name, code from `txp_plugin` where status='1']
[SQL (0.000344): select title from `txp_section` where name='']
[SQL (0.000378): select * from `txp_section` where name = 'searchr' limit 1]
[SQL (0.000597): select host from `txp_log` where ip='80.189.65.207' limit 1]
[SQL (0.000481): insert into `txp_log` set `time`=now(),page='/index.php?s=searchr&q=Search',ip='80.189.65.207',host='207.65.adsl.brightview.com',refer='',status='200',method='GET']
[SQL (0.000429): select user_html from `txp_page` where name='searchr']
[Page: searchr]
<txp:output_form form="header_info" />
[SQL (0.000420): select form from `txp_form` where `name` = 'header_info' limit 1]
<txp:css/>
<txp:page_title/>
<txp:output_form form="search_input" />
[SQL (0.000358): select form from `txp_form` where `name` = 'search_input' limit 1]
<txp:article limit=5 pgonly=1 />
[SQL (0.000426): select name from `txp_section` where searchable != '1']
[SQL (0.002078): select count(*) from `textpattern` where 1 and Status='4' and Posted < now() and (Title rlike 'Search' or Body rlike 'Search') and Section != 'article' and Section != 'searchr' and Section != 'archive' and Section != 'worktest' and Section != 'home']
<txp:php>
</txp:php>
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:older>
</txp:older>
<txp:newer>
</txp:newer>
</txp:if_article_list>
<txp:article limit=5 />
[SQL (0.000458): select name from `txp_section` where searchable != '1']
[SQL (0.002032): select count(*) from `textpattern` where 1 and Status='4' and Posted < now() and (Title rlike 'Search' or Body rlike 'Search') and Section != 'article' and Section != 'searchr' and Section != 'archive' and Section != 'worktest' and Section != 'home']
[SQL (0.002708): select *, unix_timestamp(Posted) as uPosted, match (Title,Body) against ('Search') as score from `textpattern` where 1 and Status='4' and Posted < now() and (Title rlike 'Search' or Body rlike 'Search') and Section != 'article' and Section != 'searchr' and Section != 'archive' and Section != 'worktest' and Section != 'home' order by score desc limit 0, 5]
[SQL (0.000331): select Form from `txp_form` where `name` = 'search_results' limit 1]
[Form: search_results]
[article 5]
<txp:search_result_title/>
<txp:title/>
<txp:search_result_excerpt/>
<txp:permlink>
</txp:permlink>
<txp:output_form form="search_results" />
[SQL (0.000386): select form from `txp_form` where `name` = 'search_results' limit 1]
<txp:search_result_title/>
<txp:search_result_excerpt/>
<txp:permlink>
</txp:permlink>
<txp:if_article_list>
[<txp:if_article_list>: true]
<txp:older>
</txp:older>
<txp:newer>
</txp:newer>
</txp:if_article_list>
<txp:output_form form="recent_entries" />
[SQL (0.000336): select form from `txp_form` where `name` = 'recent_entries' limit 1]
<txp:article_custom limit="5" section="blog" sortby="Posted" sortdir="desc listform="recent_articles" />
[SQL (0.001458): select *, unix_timestamp(Posted) as uPosted from `textpattern` where 1 and Status='4' and Posted < now() and Section = 'blog' order by Posted desc limit 0, 5]
[SQL (0.000514): select Form from `txp_form` where `name` = 'recent_articles' limit 1]
[Form: recent_articles]
[article 17]
<txp:image id="13" />
[SQL (0.000394): select * from `txp_image` where id='13' limit 1]
<txp:image id="14" />
[SQL (0.000336): select * from `txp_image` where id='14' limit 1]
<txp:image id="15" />
[SQL (0.000343): select * from `txp_image` where id='15' limit 1]
<txp:permlink>
<txp:title/>
</txp:permlink>
[article 13]
<txp:permlink>
<txp:title/>
</txp:permlink>
[article 16]
<txp:image id="12" />
[SQL (0.000442): select * from `txp_image` where id='12' limit 1]
<txp:permlink>
<txp:title/>
</txp:permlink>
[article 14]
<txp:permlink>
<txp:title/>
</txp:permlink>
[article 15]
<txp:image id="11" />
[SQL (0.000417): select * from `txp_image` where id='11' limit 1]
<txp:permlink>
<txp:title/>
</txp:permlink>
<txp:article_custom limit="5" section="work" sortby="Posted" sortdir="desc" listform="recent_articles" />
[SQL (0.001280): select *, unix_timestamp(Posted) as uPosted from `textpattern` where 1 and Status='4' and Posted < now() and Section = 'work' order by Posted desc limit 0, 5]
[Form: recent_articles]
[article 5]
<txp:permlink>
<txp:title/>
</txp:permlink>
[article 3]
<txp:permlink>
<txp:title/>
</txp:permlink>
[article 2]
<txp:permlink>
<txp:title/>
</txp:permlink>
<txp:output_form form="footer" />
[SQL (0.000358): select form from `txp_form` where `name` = 'footer' limit 1]
[ --- secondpass --- ]
-->
(Edit: updated to display code properly. -Mary)
Last edited by Mary (2006-08-22 14:49:40)
Offline
#4 2006-08-22 14:50:49
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Extra blank search result
This is your problem:
<txp:output_form form="search_results" />
Remove that.
Offline
Pages: 1