Last modified: 2012-08-09 08:50:30 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 T40739, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38739 - Database returned error ‘1064 when searching any term
Database returned error ‘1064 when searching any term
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikiLexicalData/OmegaWiki (Other open bugs)
unspecified
All All
: Unprioritized critical (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.omegawiki.org/index.php?ti...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-27 01:13 UTC by Fiable.biz
Modified: 2012-08-09 08:50 UTC (History)
1 user (show)

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


Attachments

Description Fiable.biz 2012-07-27 01:13:41 UTC
Since 2012-07-23, when some languages, including British English and Mongolian, are chosen on the left side of the homepage, I have been getting, when typing any word in the "Search" field and pressing "Enter" from the homepage, the following message:

"As an anonymous user, you can only add new data. If you would like to also modify existing data, please create an account and indicate your languages on your user page.
Database error
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

    SELECT expression_id, language_id FROM uw_expression WHERE spelling=BINARY 'débit' AND uw_expression.remove_transaction_id IS NULL AND EXISTS (SELECT * FROM uw_syntrans WHERE uw_syntrans.expression_id=uw_expression.expression_id AND uw_syntrans.remove_transaction_id IS NULL ) AND language_id=

from within function ‘.’ Database returned error ‘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 '' at line 1 (localhost).’ "
Comment 1 Fiable.biz 2012-07-27 01:15:39 UTC
Note that the search doesn't work.
Comment 2 Kipmaster 2012-08-09 08:50:30 UTC
Fixed! It happened when getLanguageIdForCode returns a null value in getExpressionsRecordSet, i.e. when there is no correspondance between a MediaWiki language code and a language_id in OmegaWiki.

I also updated the language table, where the MediaWiki code for en-gb was missing, and the one for Mongolian was wrong.

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


Navigation
Links