Page MenuHomePhabricator

TypeError: Return value of JsonSchemaHooks::onEditFilterMergedContent() must be of the type boolean, none returned
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   TypeError: Return value of JsonSchemaHooks::onEditFilterMergedContent() must be of the type boolean, none returned
exception.trace
from /srv/mediawiki/php-1.37.0-wmf.12/extensions/EventLogging/includes/JsonSchemaHooks.php(104)
#0 /srv/mediawiki/php-1.37.0-wmf.12/includes/HookContainer/HookContainer.php(338): JsonSchemaHooks::onEditFilterMergedContent(DerivativeContext, JsonSchemaContent, Status, string, User, boolean)
#1 /srv/mediawiki/php-1.37.0-wmf.12/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#2 /srv/mediawiki/php-1.37.0-wmf.12/includes/HookContainer/HookRunner.php(1495): MediaWiki\HookContainer\HookContainer->run(string, array)
#3 /srv/mediawiki/php-1.37.0-wmf.12/includes/editpage/Constraint/EditFilterMergedContentHookConstraint.php(90): MediaWiki\HookContainer\HookRunner->onEditFilterMergedContent(DerivativeContext, JsonSchemaContent, Status, string, User, boolean)
#4 /srv/mediawiki/php-1.37.0-wmf.12/includes/editpage/Constraint/EditConstraintRunner.php(88): MediaWiki\EditPage\Constraint\EditFilterMergedContentHookConstraint->checkConstraint()
#5 /srv/mediawiki/php-1.37.0-wmf.12/includes/EditPage.php(2270): MediaWiki\EditPage\Constraint\EditConstraintRunner->checkConstraints()
#6 /srv/mediawiki/php-1.37.0-wmf.12/includes/EditPage.php(1689): EditPage->internalAttemptSave(NULL, boolean)
#7 /srv/mediawiki/php-1.37.0-wmf.12/includes/EditPage.php(665): EditPage->attemptSave(NULL)
#8 /srv/mediawiki/php-1.37.0-wmf.12/includes/actions/EditAction.php(71): EditPage->edit()
#9 /srv/mediawiki/php-1.37.0-wmf.12/includes/actions/SubmitAction.php(38): EditAction->show()
#10 /srv/mediawiki/php-1.37.0-wmf.12/includes/MediaWiki.php(536): SubmitAction->show()
#11 /srv/mediawiki/php-1.37.0-wmf.12/includes/MediaWiki.php(320): MediaWiki->performAction(Article, Title)
#12 /srv/mediawiki/php-1.37.0-wmf.12/includes/MediaWiki.php(917): MediaWiki->performRequest()
#13 /srv/mediawiki/php-1.37.0-wmf.12/includes/MediaWiki.php(551): MediaWiki->main()
#14 /srv/mediawiki/php-1.37.0-wmf.12/index.php(53): MediaWiki->run()
#15 /srv/mediawiki/php-1.37.0-wmf.12/index.php(46): wfIndexMain()
#16 /srv/mediawiki/w/index.php(3): require(string)
#17 {main}
Impact
Notes

Event Timeline

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

[mediawiki/extensions/EventLogging@master] Add return value for the case of no exception

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

Change 704635 merged by jenkins-bot:

[mediawiki/extensions/EventLogging@master] Add return value for the case of no exception

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

Zabe claimed this task.
Zabe added a project: User-Zabe.

This should be fixed in wmf.15.

I'll backport it today, this bug is causing some pages to be impossible to edit (e.g. the entire 'Schema' namespace on meta.wikimedia.org).

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

[mediawiki/extensions/EventLogging@wmf/1.37.0-wmf.12] Add return value for the case of no exception

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

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

[mediawiki/extensions/EventLogging@wmf/1.37.0-wmf.14] Add return value for the case of no exception

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

Change 704811 merged by jenkins-bot:

[mediawiki/extensions/EventLogging@wmf/1.37.0-wmf.12] Add return value for the case of no exception

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

Change 704812 merged by jenkins-bot:

[mediawiki/extensions/EventLogging@wmf/1.37.0-wmf.14] Add return value for the case of no exception

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

Mentioned in SAL (#wikimedia-operations) [2021-07-15T18:34:13Z] <reedy@deploy1002> Synchronized php-1.37.0-wmf.12/extensions/EventLogging/includes/JsonSchemaHooks.php: T286611 (duration: 01m 07s)

Mentioned in SAL (#wikimedia-operations) [2021-07-15T18:35:26Z] <reedy@deploy1002> Synchronized php-1.37.0-wmf.14/extensions/EventLogging/includes/JsonSchemaHooks.php: T286611 (duration: 01m 06s)