Error
- mwversion: 1.37.0-wmf.20
- reqId: bba1ee17-f597-49e8-973f-613d1dbc17cf
- Find reqId in Logstash
- Find normalized_message in Logstash
[{reqId}] {exception_url} PHP Warning: json_decode() expects parameter 1 to be string, array givenfrom /srv/mediawiki/php-1.37.0-wmf.20/extensions/GrowthExperiments/includes/VisualEditorHooks.php(117)
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.37.0-wmf.20/extensions/GrowthExperiments/includes/VisualEditorHooks.php(117): json_decode(array, boolean)
#2 /srv/mediawiki/php-1.37.0-wmf.20/includes/HookContainer/HookContainer.php(160): GrowthExperiments\VisualEditorHooks->onVisualEditorApiVisualEditorEditPostSave(MediaWiki\Page\PageIdentityValue, User, string, array, array, array, array)
#3 /srv/mediawiki/php-1.37.0-wmf.20/extensions/VisualEditor/includes/VisualEditorHookRunner.php(72): MediaWiki\HookContainer\HookContainer->run(string, array, array)
#4 /srv/mediawiki/php-1.37.0-wmf.20/extensions/VisualEditor/includes/ApiVisualEditorEdit.php(517): MediaWiki\Extension\VisualEditor\VisualEditorHookRunner->onVisualEditorApiVisualEditorEditPostSave(MediaWiki\Page\PageIdentityValue, User, string, array, array, array, array)
#5 /srv/mediawiki/php-1.37.0-wmf.20/includes/api/ApiMain.php(1844): ApiVisualEditorEdit->execute()
#6 /srv/mediawiki/php-1.37.0-wmf.20/includes/api/ApiMain.php(823): ApiMain->executeAction()
#7 /srv/mediawiki/php-1.37.0-wmf.20/includes/api/ApiMain.php(794): ApiMain->executeActionWithErrorHandling()
#8 /srv/mediawiki/php-1.37.0-wmf.20/api.php(90): ApiMain->execute()
#9 /srv/mediawiki/php-1.37.0-wmf.20/api.php(45): wfApiMain()
#10 /srv/mediawiki/w/api.php(3): require(string)
#11 {main}Impact
The post save code used by GrowthExperiments fails. Not sure yet if this also causes the edit to fail entirely.
Notes
There are some related messages in Logstash:
- PHP Notice: Undefined index: acceptedTargets
- PHP Notice: Undefined index: rejectedTargets
- PHP Notice: Undefined index: skippedTargets