Steps to replicate the issue (include links if applicable):
wikimedia/metrics-platform on 4.1.0 in composer.json in EventLogging extension on Local
visit http://localhost:8080/view/en/Z801
select type 'String'
enter a string
click Run function
What happens?:
{ "error": { "code": "internal_api_error_Error", "info": "[23476b0a2c17f0f13053375d] Exception caught: Interface \"Wikimedia\\MetricsPlatform\\EventSubmitter\" not found", "errorclass": "Error", "*": "Error at /var/www/html/w/extensions/EventLogging/includes/MetricsPlatform/EventSubmitter.php(12)\nfrom /var/www/html/w/extensions/EventLogging/includes/MetricsPlatform/EventSubmitter.php(12)\n#0 /var/www/html/w/includes/AutoLoader.php(225): require()\n#1 /var/www/html/w/extensions/EventLogging/includes/MetricsPlatform/MetricsClientFactory.php(39): AutoLoader::autoload()\n#2 /var/www/html/w/extensions/EventLogging/includes/EventLogging.php(58): MediaWiki\\Extension\\EventLogging\\MetricsPlatform\\MetricsClientFactory->newMetricsClient()\n#3 /var/www/html/w/extensions/WikiLambda/includes/ActionAPI/WikiLambdaApiBase.php(284): MediaWiki\\Extension\\EventLogging\\EventLogging::getMetricsPlatformClient()\n#4 /var/www/html/w/extensions/WikiLambda/includes/ActionAPI/ApiFunctionCall.php(205): MediaWiki\\Extension\\WikiLambda\\ActionAPI\\WikiLambdaApiBase->submitMetricsEvent()\n#5 /var/www/html/w/extensions/WikiLambda/includes/ActionAPI/ApiFunctionCall.php(187): MediaWiki\\Extension\\WikiLambda\\ActionAPI\\ApiFunctionCall->submitFunctionCallEvent()\n#6 /var/www/html/w/extensions/WikiLambda/includes/ActionAPI/ApiFunctionCall.php(50): MediaWiki\\Extension\\WikiLambda\\ActionAPI\\ApiFunctionCall->run()\n#7 /var/www/html/w/includes/api/ApiMain.php(1952): MediaWiki\\Extension\\WikiLambda\\ActionAPI\\ApiFunctionCall->execute()\n#8 /var/www/html/w/includes/api/ApiMain.php(928): ApiMain->executeAction()\n#9 /var/www/html/w/includes/api/ApiMain.php(899): ApiMain->executeActionWithErrorHandling()\n#10 /var/www/html/w/includes/api/ApiEntryPoint.php(158): ApiMain->execute()\n#11 /var/www/html/w/includes/MediaWikiEntryPoint.php(200): MediaWiki\\Api\\ApiEntryPoint->execute()\n#12 /var/www/html/w/api.php(44): MediaWiki\\MediaWikiEntryPoint->run()\n#13 {main}" }, "servedby": "d0055c7e33f3" }
What should have happened instead?:
The string should be displayed
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
1.43.0-alpha
Other information (browser name/version, screenshots, etc.):