Page MenuHomePhabricator

Uncaught Error: Cannot use object of type MediaWiki\Logger\Monolog\LegacyHandler as array in /srv/mediawiki/php-1.36.0-wmf.20/includes/exception/MWExceptionRenderer.php:109
Closed, DeclinedPublicPRODUCTION ERROR

Description

Error

MediaWiki version: n/a

message
Uncaught Error: Cannot use object of type MediaWiki\Logger\Monolog\LegacyHandler as array in /srv/mediawiki/php-1.36.0-wmf.20/includes/exception/MWExceptionRenderer.php:109

Impact

Just a few of them logged in.

Notes

It is most probably related to the monolog update T242751

Details

Request ID
96af1b15-d1ce-4ec9-a528-2b0f69f7e55d
Request URL
https://de.wikipedia.org/w/rest.php/de.wikipedia.org/v3/page/pagebundle/Liste_der_Orte_mit_Stolpersteinen/206202978
Stack Trace
exception.trace
#0 /srv/mediawiki/php-1.36.0-wmf.20/includes/exception/MWExceptionRenderer.php(136): MWExceptionRenderer::useOutputPage(Object(WMFTimeoutException))
#1 /srv/mediawiki/php-1.36.0-wmf.20/includes/exception/MWExceptionRenderer.php(65): MWExceptionRenderer::reportHTML(Object(WMFTimeoutException))
#2 /srv/mediawiki/php-1.36.0-wmf.20/includes/exception/MWExceptionHandler.php(106): MWExceptionRenderer::output(Object(WMFTimeoutException), 2)
#3 /srv/mediawiki/php-1.36.0-wmf.20/includes/exception/MWExceptionHandler.php(185): MWExceptionHandler::report(Object(WMFTimeoutException))
#4 /srv/mediawiki/php-1.36.0-wmf.20/includes/exception/MWExceptionHandler.php(156): MWExceptionHandler::handleException(Object(WMFTimeoutException), 'mwe_handler')
#5 [internal function]: MWExceptionHandler::handleUncaughtException(Object(WMFTimeoutException))

Event Timeline

Why is this a Parsoid issue? Nothing in the stack posted suggests it is... It's a MediaWiki-REST-API call with an uncaught exception which MW core than doesn't handle..

https://de.wikipedia.org/w/rest.php/de.wikipedia.org/v3/page/pagebundle/Liste_der_Orte_mit_Stolpersteinen/206202978

{"messageTranslations":{"de":"Der angeforderte relative Pfad (/de.wikipedia.org/v3/page/pagebundle/Liste_der_Orte_mit_Stolpersteinen/206202978) stimmte mit keinem bekannten Handler überein","en":"The requested relative path (/de.wikipedia.org/v3/page/pagebundle/Liste_der_Orte_mit_Stolpersteinen/206202978) did not match any known handler"},"httpCode":404,"httpReason":"Not Found"}

I also can't see any other errors for that request id...

Both were ~6-7 minutes after the deploy (not saying the deploy is necessarily responsible). Not reproducible with the request query...

Happy to look into it further if we get some more evidence/examples/similar

Why is this a Parsoid issue? Nothing in the stack posted suggests it is... It's a MediaWiki-REST-API call with an uncaught exception which MW core than doesn't handle..

Both were on wtp1026

Krinkle subscribed.

Stack and error contain no code from either Parsoid nor REST API.

Seems indeed that there's something about Monolog 2 or core's exception handler that stopped working correctly. Or if it's a one off on wtp1026, maybe opcache corruption?

hashar claimed this task.

I filed it against Parsoid since the error was on a wtp* server and I haven't looked further. Anyway it was a single occurrence, not worth pursuing further.

hashar changed the task status from Resolved to Declined.Dec 21 2020, 9:43 AM