Bug Report

Search results pagination redux

Date: 08/26/2010 Show-stopper?:
Status: Duplicate Reporter: Brandon Jones
Reported in Version: 2.1.0 Assigned To: Not Assigned
Keywords: Add-On Issues, Modules, Search,
Support Thread:

Details

Likely related to http://expressionengine.com/bug_tracker/bug/13379/

To reproduce on a fresh install w/ Agile theme:

1. Edit the global_top_search snippet and add results=“1” to exp:simple:search
2. Add standard pagination after the closing exp:search:results tag in Agile’s search/results template:

{if paginate}
  
<div class='paginate'>
    <
span class='pagecount'>{page_count}</span>&nbsp{paginate}
  
</div>
{/if} 

3. Publish a new entry to News containing the word “ExpressionEngine” (this should give us a total of 3 results)
4. Perform a simple search for ‘ExpressionEngine’

Bugs:
- Pagination nav indicates you’re on page 3, but you’re on 1
- Click on page 2 and receive the error:

Error Number1064

You have an error in your SQL syntax
check the manual that corresponds to your MySQL server version for the right syntax to use near ‘P11’ at line 11

SELECT DISTINCT
(t.entry_id), t.entry_idt.channel_idt.forum_topic_idt.author_idt.ip_addresst.titlet.url_titlet.statust.dst_enabledt.view_count_onet.view_count_twot.view_count_threet.view_count_fourt.allow_commentst.comment_expiration_datet.stickyt.entry_datet.yeart.montht.dayt.entry_datet.edit_datet.expiration_datet.recent_comment_datet.comment_totalt.site_id as entry_site_id,
    
w.channel_titlew.channel_namew.search_results_urlw.search_excerptw.channel_urlw.comment_urlw.comment_moderatew.channel_html_formattingw.channel_allow_img_urlsw.channel_auto_link_urls,
    
m.usernamem.emailm.urlm.screen_namem.locationm.occupationm.interestsm.aol_imm.yahoo_imm.msn_imm.icqm.signaturem.sig_img_filenamem.sig_img_widthm.sig_img_heightm.avatar_filenamem.avatar_widthm.avatar_heightm.photo_filenamem.photo_widthm.photo_heightm.group_idm.member_idm.bday_dm.bday_mm.bday_ym.bio,
    
md.*,
    
wd.*
  
FROM exp_channel_titles AS t
  LEFT JOIN exp_channels   
AS w ON t.channel_id w.channel_id
  LEFT JOIN exp_channel_data 
AS wd ON t.entry_id wd.entry_id
  LEFT JOIN exp_members 
AS m ON m.member_id t.author_id
  LEFT JOIN exp_member_data 
AS md ON md.member_id m.member_id
  WHERE t
.entry_id IN (1,2,31)  ORDER BY entry_date desc LIMIT P1

Comment on Bug Report

Page 1 of 1 pages
Posted by: Derek Jones on 27 August 2010 8:43am
Derek Jones's avatar

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?