Last modified: 2008-09-07 22:49:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 15504 - Illegal mix of collations
Illegal mix of collations
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
FlaggedRevs (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Aaron Schulz
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-06 23:50 UTC by Tisza Gergő
Modified: 2008-09-07 22:49 UTC (History)
0 users

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


Attachments

Description Tisza Gergő 2008-09-06 23:50:42 UTC
I'm getting the following SQL error in my test wiki:

1267: Illegal mix of collations (latin1_bin,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' (localhost)

originating in

SELECT ft_tmp_rev_id FROM `flaggedtemplates` WHERE ft_rev_id = '5470' AND ft_namespace = '10' AND ft_title = 'USA_emberes_űrprogram' LIMIT 1 

called from FlaggedRevsHooks::parserFetchStableTemplate

The bug only occurs on a specific page and it's nondeterministic, sometimes it appears, sometimes not. The page has been imported from the Hungarian Wikipedia via XML dump.

Both MediaWiki and FlaggedRevs are fresh (r40555), MySQL version is 5.0.32. LocalSettings.php lines that seem relevant:
$wgDBTableOptions   = "ENGINE=InnoDB, DEFAULT CHARSET=utf8";
$wgDBmysql5 = true;
Comment 1 Aaron Schulz 2008-09-06 23:58:48 UTC
I would avoid using $wgDBmysql5, it tends to be broken...
Comment 2 Aaron Schulz 2008-09-07 20:38:06 UTC
Sounds like  /*$wgDBTableOptions*/; wasn't replaced when the SQL table queries were done. This is easiest to do automatically. Drop the tables and run update.php.
Comment 3 Tisza Gergő 2008-09-07 20:47:22 UTC
Thanks. Does that mean update.php will create the table automatically if it does not exist? Then you could just delete these two lines from readme.txt:

* (MySQL) Run the 'FlaggedRevs.sql' query, substituting in your wiki's table prefix.
* (PostgreSQL) Use 'FlaggedRevs.pg.sql' instead.
Comment 4 Tisza Gergő 2008-09-07 21:42:15 UTC
Also, update.php seems to expect flaggedrevs.sql in all lowercase.
Comment 5 Aaron Schulz 2008-09-07 22:48:00 UTC
(In reply to comment #3)
> Thanks. Does that mean update.php will create the table automatically if it
> does not exist? Then you could just delete these two lines from readme.txt:
> 
> * (MySQL) Run the 'FlaggedRevs.sql' query, substituting in your wiki's table
> prefix.
> * (PostgreSQL) Use 'FlaggedRevs.pg.sql' instead.
> 

Already removed :)
Comment 6 Aaron Schulz 2008-09-07 22:49:15 UTC
(In reply to comment #4)
> Also, update.php seems to expect flaggedrevs.sql in all lowercase.
> 

This was developed on XP, where that doesn't matter. Fixed case in r40600.

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


Navigation
Links