Page MenuHomePhabricator

Special:Listusers gives PHP "iconv(): Detected an illegal character in input string" error message on random binary input.
Closed, DeclinedPublic

Description

Author: nickpj

Description:
Getting a PHP "iconv(): Detected an illegal character in input string in
languages/Language.php on line 786" error message in Special:Listusers, probably
caused by bad binary input. May or may not only be visible with error_reporting(
E_STRICT | E_ALL) enabled. There are two test cases for this, as CURL
command-line scripts, at the following URLs:
http://files.nickj.org/MediaWiki/1-0-7.curl.sh
http://files.nickj.org/MediaWiki/1-4-9.curl.sh
(Note for testing you will need to update the URL at the end of the script if
the test wiki is not on "localhost").


Version: 1.9.x
Severity: normal
URL: http://files.nickj.org/MediaWiki/1-0-7.curl.sh

Details

Reference
bz9454

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:36 PM
bzimport set Reference to bz9454.
bzimport added a subscriber: Unknown Object (MLST).

I'm just getting "bad title" errors here. Assuming it's been resolved in the meantime?

nickpj wrote:

Still getting it on a test machine, on a r36177 checkout but with a rather old PHP 5.1.2 (on Ubuntu 6.06.2 LTS). Tried it on a different box, running MediaWiki stable 1.12.0 and PHP 5.2.0 (this was Debian 4.0), and got the same error - "Notice: iconv() : Detected an illegal character in input string in languages/Language.php on line 1227" (or line 1229 on the SVN checkout). [note had to add "error_reporting( E_ALL );" to LocalSettings.php, and I was using the 1-0-7.curl.sh test]

However, the above are both non-recent versions of PHP - so it's entirely possible that it's a PHP issue. Let's leave this as closed and when I update the Ubuntu box to 8.04 LTS (which I plan to do at the start of August, after the first LTS point release has been made), then I can do a quick check then with a more modern setup - and if it's still happening then will reopen.