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> {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 Number: 1064
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 ‘P1, 1’ at line 11
SELECT DISTINCT(t.entry_id), t.entry_id, t.channel_id, t.forum_topic_id, t.author_id, t.ip_address, t.title, t.url_title, t.status, t.dst_enabled, t.view_count_one, t.view_count_two, t.view_count_three, t.view_count_four, t.allow_comments, t.comment_expiration_date, t.sticky, t.entry_date, t.year, t.month, t.day, t.entry_date, t.edit_date, t.expiration_date, t.recent_comment_date, t.comment_total, t.site_id as entry_site_id,
w.channel_title, w.channel_name, w.search_results_url, w.search_excerpt, w.channel_url, w.comment_url, w.comment_moderate, w.channel_html_formatting, w.channel_allow_img_urls, w.channel_auto_link_urls,
m.username, m.email, m.url, m.screen_name, m.location, m.occupation, m.interests, m.aol_im, m.yahoo_im, m.msn_im, m.icq, m.signature, m.sig_img_filename, m.sig_img_width, m.sig_img_height, m.avatar_filename, m.avatar_width, m.avatar_height, m.photo_filename, m.photo_width, m.photo_height, m.group_id, m.member_id, m.bday_d, m.bday_m, m.bday_y, m.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, 1
Comment on Bug Report
| Posted by: Derek Jones on 27 August 2010 8:43am | |
|
|
[ Permalink ]
Duplicate of http://expressionengine.com/bug_tracker/bug/13536/ |
