Page MenuHomePhabricator

TypeError: Argument 4 passed to MediaWiki\Content\Transform\ContentTransformer::preloadTransform() must be of the type array, null given
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   TypeError: Argument 4 passed to MediaWiki\Content\Transform\ContentTransformer::preloadTransform() must be of the type array, null given, called in /srv/mediawiki/php-1.37.0-wmf.20/extensions/VisualEditor/includes/ApiVisualEdit
exception.trace
from /srv/mediawiki/php-1.37.0-wmf.20/includes/content/Transform/ContentTransformer.php(60)
#0 /srv/mediawiki/php-1.37.0-wmf.20/extensions/VisualEditor/includes/ApiVisualEditor.php(121): MediaWiki\Content\Transform\ContentTransformer->preloadTransform(WikitextContent, Title, ParserOptions, NULL)
#1 /srv/mediawiki/php-1.37.0-wmf.20/extensions/VisualEditor/includes/ApiVisualEditor.php(272): ApiVisualEditor->getPreloadContent(string, NULL)
#2 /srv/mediawiki/php-1.37.0-wmf.20/includes/api/ApiMain.php(1844): ApiVisualEditor->execute()
#3 /srv/mediawiki/php-1.37.0-wmf.20/includes/api/ApiMain.php(823): ApiMain->executeAction()
#4 /srv/mediawiki/php-1.37.0-wmf.20/includes/api/ApiMain.php(794): ApiMain->executeActionWithErrorHandling()
#5 /srv/mediawiki/php-1.37.0-wmf.20/api.php(90): ApiMain->execute()
#6 /srv/mediawiki/php-1.37.0-wmf.20/api.php(45): wfApiMain()
#7 /srv/mediawiki/w/api.php(3): require(string)
#8 {main}
Impact
Notes

4 of these in 1.37.0-wmf.20 (T281161), shortly after rollout to group1.

Tentatively marking as a blocker.

Details

Request URL
https://uk.wiktionary.org/w/api.php?action=visualeditor&format=*&paction=*&page=*&uselang=*&editintro=*&preload=*&formatversion=*

Event Timeline

brennen triaged this task as Unbreak Now! priority.Aug 25 2021, 7:39 PM
brennen created this task.

Change 714826 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/extensions/VisualEditor@master] Make sure params is an array

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

Change 714826 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Make sure params is an array

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

Change 714681 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/extensions/VisualEditor@wmf/1.37.0-wmf.20] Make sure params is an array

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

Change 714681 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@wmf/1.37.0-wmf.20] Make sure params is an array

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

Mentioned in SAL (#wikimedia-operations) [2021-08-25T22:04:58Z] <urbanecm@deploy1002> Synchronized php-1.37.0-wmf.20/extensions/VisualEditor/includes/ApiVisualEditor.php: 73478bc9c72286123cef69e57e0aef9e745dcff9: Make sure params is an array (T289730) (duration: 01m 04s)

Zabe added a project: User-Zabe.