Page MenuHomePhabricator

Unable to edit on beta cluster while logged in: Cannot unpack array with string keys
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:

[YeDiaGGa2KasF5qkD0EbIwAAABU] /w/index.php?title=Bert&action=edit Error: Cannot unpack array with string keys

Backtrace:

from /srv/mediawiki/php-master/vendor/oojs/oojs-ui/php/Tag.php(219)
#0 /srv/mediawiki/php-master/vendor/oojs/oojs-ui/php/mixins/GroupElement.php(96): OOUI\Tag->appendContent(array)
#1 /srv/mediawiki/php-master/vendor/oojs/oojs-ui/php/layouts/HorizontalLayout.php(26): OOUI\HorizontalLayout->addItems(array)
#2 /srv/mediawiki/php-master/includes/EditPage.php(3892): OOUI\HorizontalLayout->__construct(array)
#3 /srv/mediawiki/php-master/includes/EditPage.php(3138): EditPage->showStandardInputs()
#4 /srv/mediawiki/php-master/includes/EditPage.php(727): EditPage->showEditForm()
#5 /srv/mediawiki/php-master/includes/actions/EditAction.php(71): EditPage->edit()
#6 /srv/mediawiki/php-master/includes/MediaWiki.php(543): EditAction->show()
#7 /srv/mediawiki/php-master/includes/MediaWiki.php(320): MediaWiki->performAction(Article, Title)
#8 /srv/mediawiki/php-master/includes/MediaWiki.php(903): MediaWiki->performRequest()
#9 /srv/mediawiki/php-master/includes/MediaWiki.php(563): MediaWiki->main()
#10 /srv/mediawiki/php-master/index.php(53): MediaWiki->run()
#11 /srv/mediawiki/php-master/index.php(46): wfIndexMain()
#12 /srv/mediawiki/w/index.php(3): require(string)
#13 {main}

[YeDiRWGa2KasF5qkD0Ea8wAAAA4] /w/index.php?title=User_talk:AJ&action=edit Error: Cannot unpack array with string keys

Backtrace:

from /srv/mediawiki/php-master/vendor/oojs/oojs-ui/php/Tag.php(219)
#0 /srv/mediawiki/php-master/vendor/oojs/oojs-ui/php/mixins/GroupElement.php(96): OOUI\Tag->appendContent(array)
#1 /srv/mediawiki/php-master/vendor/oojs/oojs-ui/php/layouts/HorizontalLayout.php(26): OOUI\HorizontalLayout->addItems(array)
#2 /srv/mediawiki/php-master/includes/EditPage.php(3892): OOUI\HorizontalLayout->__construct(array)
#3 /srv/mediawiki/php-master/includes/EditPage.php(3138): EditPage->showStandardInputs()
#4 /srv/mediawiki/php-master/includes/EditPage.php(727): EditPage->showEditForm()
#5 /srv/mediawiki/php-master/includes/actions/EditAction.php(71): EditPage->edit()
#6 /srv/mediawiki/php-master/includes/MediaWiki.php(543): EditAction->show()
#7 /srv/mediawiki/php-master/includes/MediaWiki.php(320): MediaWiki->performAction(Article, Title)
#8 /srv/mediawiki/php-master/includes/MediaWiki.php(903): MediaWiki->performRequest()
#9 /srv/mediawiki/php-master/includes/MediaWiki.php(563): MediaWiki->main()
#10 /srv/mediawiki/php-master/index.php(53): MediaWiki->run()
#11 /srv/mediawiki/php-master/index.php(46): wfIndexMain()
#12 /srv/mediawiki/w/index.php(3): require(string)
#13 {main}

When logged out, the edit form loads. Editing with the API also works fine.

One or two hours ago it was fine. This edit at 00:42, 14 January 2022 (UTC) was clearly not an API edit.

What should have happened instead?:
Load the edit form.

Event Timeline

Change 753871 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/core@master] EditPage: Don't use string array keys for OOUI HorizontalLayout items

https://gerrit.wikimedia.org/r/753871

Change 753871 merged by jenkins-bot:

[mediawiki/core@master] EditPage: Don't use string array keys for OOUI HorizontalLayout items

https://gerrit.wikimedia.org/r/753871

Zabe assigned this task to matmarex.