Last modified: 2014-11-20 23:49:06 UTC
-rakkaus:#mediawiki-i18n- [18-Nov-2014 14:18:47 UTC] PHP Notice: Uninitialized string offset: 710 in /www/translatewiki.net/w/includes/libs/JavaScriptMinifier.php on line 571
Excerpt: class JavaScriptMinifier { public static function minify( $s, $statementsOnOwnLine = false, $maxLineLength = 1000 ) { // .. $out = ''; $pos = 0; $length = strlen( $s ); $lineLength = 0; $last = ';'; while( $pos < $length ) { // .. $out .= $token; $lineLength += $end - $pos; $last = $s[$end - 1]; $pos = $end; The while loop manipulates $end to reflect where we are in the code. In some cases it advanced artificially based on changes or assumptions it made. I guess it must be off in some cases. Does this one happen often on translatewiki? Can you produce a stack trace (so that we know whether it's triggered by ResourceLoaderFileModule, WikiModule, something else, etc. And ideally also an excerpt of $s (e.g. the first 20 characters) which will probably identify what the input script was.
@Nemo: Can you help get a test case? By getting a stack trace we'll narrow down whehter this is from a file module, wiki module or other generated script. And by getting the argument we'll identify the script in question.