Page MenuHomePhabricator

"Badly formed search query" error for every search
Closed, InvalidPublic

Description

Author: bugzilla.wikipedia.org

Description:
The query gets lost; pressing [Go] or [Search] give the same error page:

Search results
From Folktunes
For query ""

For more information about searching Folktunes, see Searching Folktunes.
Badly formed search query
...


Version: 1.4.x
Severity: major
OS: Linux
Platform: PC
URL: http://www.folktunes.org/wiki/Special:Search?search=polly&fulltext=Search

Details

Reference
bz2193

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:26 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz2193.
bzimport added a subscriber: Unknown Object (MLST).

The expanded URL works:
http://www.folktunes.org/music/index.php?title=Special:Search&search=polly&fulltext=Search

It looks like your rewrite rules are incorrect; they are obliterating the query string which is used
to pass the search term. Use the QSA (query string append) option in the rewrite rule to prevent
this.

bugzilla.wikipedia.org wrote:

Thank you so much. I thought this might have been my fault.
For me the correct line is:
RewriteRule ^wiki/?(.*)$ /music/index.php?title=$1 [QSA]