Last modified: 2013-09-10 22:14:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T55982, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53982 - Invalid srbackend argument should become $wgSearchType, not SearchMySQL
Invalid srbackend argument should become $wgSearchType, not SearchMySQL
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
1.22.0
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://www.mediawiki.org/wiki/Specia...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-10 07:20 UTC by Kevin Israel (PleaseStand)
Modified: 2013-09-10 22:14 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kevin Israel (PleaseStand) 2013-09-10 07:20:25 UTC
Navigating to the following URL:

https://www.mediawiki.org/wiki/Special:Search/Query_pages?srbackend=INVALID

gives me the following error message:

Database error

A database query error has occurred. This may indicate a bug in the software.

    Function: SearchMySQL::searchInternal
    Error: 1214 The used table type doesn't support FULLTEXT indexes (10.64.0.7)
Comment 1 Sam Reed (reedy) 2013-09-10 20:04:07 UTC

	public function getSearchEngine() {
		if ( $this->searchEngine === null ) {
			$this->searchEngine = $this->searchEngineType ?
				SearchEngine::create( $this->searchEngineType ) : SearchEngine::create();
		}
		return $this->searchEngine;
	}

------------

	public static function create( $type = null ) {
		global $wgSearchType;
		$dbr = null;

		$alternatives = self::getSearchTypes();
		$type = $type !== null ? $type : $wgSearchType;
		if ( $type && in_array( $type, $alternatives ) ) {
			$class = $type;
		} else {
			$dbr = wfGetDB( DB_SLAVE );
			$class = $dbr->getSearchEngine();
		}
		$search = new $class( $dbr );
		$search->setLimitOffset( 0, 0 );
		return $search;
	}
Comment 2 Gerrit Notification Bot 2013-09-10 20:13:31 UTC
Change 83754 had a related patch set uploaded by Reedy:
Improved search backend fallback in Special:Search

https://gerrit.wikimedia.org/r/83754
Comment 3 Gerrit Notification Bot 2013-09-10 21:35:32 UTC
Change 83754 merged by jenkins-bot:
Improved search backend fallback in Special:Search

https://gerrit.wikimedia.org/r/83754
Comment 4 Gerrit Notification Bot 2013-09-10 21:43:10 UTC
Change 83763 had a related patch set uploaded by Reedy:
Improved search backend fallback in Special:Search

https://gerrit.wikimedia.org/r/83763
Comment 5 Gerrit Notification Bot 2013-09-10 21:46:23 UTC
Change 83763 merged by Reedy:
Improved search backend fallback in Special:Search

https://gerrit.wikimedia.org/r/83763

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links