]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/Can_not_advance_past_first_page_of_results_using_search_plugin.mdwn
(no commit message)
[ikiwiki.git] / doc / forum / Can_not_advance_past_first_page_of_results_using_search_plugin.mdwn
1 I'm using the [[/plugins/search/]] plugin and it correctly displays the first page of results, but the "Next" button doesn't work.
2
3 If I search for "linux", for example, I see "1-10 of exactly 65 matches" and this in my browser's address bar: https://example.com/ikiwiki.cgi?P=linux
4
5 Then, I scroll down and click "Next" and I see. . .
6
7 > Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party.
8
9 > Are you sure you want to continue sending this information?
10
11 . . . then I click "Continue" but I'm stuck on the first page of search results (it still says "1-10 of exactly 65 matches") and I have the following in my browser's address bar:
12
13 https://example.com/ikiwiki.cgi?P=linux&DEFAULTOP=or&%253E=Next&DB=default&FMT=query&xP=Zlinux&xDB=default&xFILTERS=--O
14
15 I noticed that if I change what's in the address bar to the following, I **can** advance to page 2 (it shows "11-20 of exactly 65 matches").  That is to say, I'm removing "25" from "%253E" as a work around:
16
17 https://example.com/ikiwiki.cgi?P=linux&DEFAULTOP=or&%3E=Next&DB=default&FMT=query&xP=Zlinux&xDB=default&xFILTERS=--O
18
19 Based on this output, I might need to make a change to "searchquery.tmpl", which is under [[/templates]]. . .
20
21     [wikiuser@ikiwiki1 ~]$ grep -r DEFAULTOP /usr/share/ikiwiki
22     /usr/share/ikiwiki/templates/searchquery.tmpl:<SELECT NAME=DEFAULTOP>
23     [wikiuser@ikiwiki1 ~]$ rpm -qf /usr/share/ikiwiki/templates/searchquery.tmpl 
24     ikiwiki-3.20120202-1.el6.noarch
25
26 . . . but I would appreciate any guidance on what the fix might be.