Page MenuHomePhabricator

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



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



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:

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. 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]