Page MenuHomePhabricator

array_slice() expects an array in ApiRecordLint
Closed, DuplicatePublic


Spotted in production:

Warning: Invalid operand type was used: array_slice expects an array or collection as argument 1 in /srv/mediawiki/php-1.29.0-wmf.18/extensions/Linter/includes/ApiRecordLint.php on line 65

Event Timeline

demon created this task.Apr 6 2017, 7:03 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 6 2017, 7:03 PM
Legoktm added a subscriber: Legoktm.Apr 6 2017, 7:05 PM

Hmm, I guess parsoid is sending lint errors without a 'dsr' field?

Yep, right before it in the logs:

Apr  6 18:49:17 mw1192:  [Thu Apr  6 18:49:17 2017] [hphp] [18491:7fbf0b3ff700:139559:000001] [] \nNotice: Undefined index: dsr in /srv/mediawiki/php-1.29.0-wmf.18/extensions/Linter/includes/ApiRecordLint.php on line 65
mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:10 PM