Error
Request ID: XIxtJApAEDIAAE3EcFsAAAAG
PHP Warning: Illegal string offset 'lang'
#1 /srv/mediawiki/php-1.33.0-wmf.21/extensions/VisualEditor/includes/ApiVisualEditor.php(664): ApiVisualEditor->getLangLinks(Title) #2 /srv/mediawiki/php-1.33.0-wmf.21/includes/api/ApiMain.php(1595): ApiVisualEditor->execute() #3 /srv/mediawiki/php-1.33.0-wmf.21/includes/api/ApiMain.php(531): ApiMain->executeAction() #4 /srv/mediawiki/php-1.33.0-wmf.21/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling() #5 /srv/mediawiki/php-1.33.0-wmf.21/api.php(87): ApiMain->execute() #6 /srv/mediawiki/w/api.php(3): require(string)
Impact
Unknown.
Due to the error being non-fatal, the program unfortunately continues with unspecified behaviour. I do not know what the accidental outcome is and whether it happens to be correct, or whether it corrupts something on pages.
Notes
Seen about 700 times in the past week under Logstash/mediawiki-errors from PHP 7 beta testers.
The error is likely many times more frequent than that for all other users. However, HHVM does not have detection for this error. Instead, it casts the string 'lang' to the number 0 and returns the first character of the string that the code is performing ['lang'] on. This is most certainly not the intended behaviour.