Error
- mwversion: 1.40.0-wmf.6
- reqId: 30463b53-d694-48e0-b6cb-9a4f088b3562
- Find reqId in Logstash
[{reqId}] {exception_url} PHP Warning: get_class() expects parameter 1 to be object, unknown given
from /srv/mediawiki/php-1.40.0-wmf.6/includes/exception/MWExceptionHandler.php(495) #0 /srv/mediawiki/php-1.40.0-wmf.6/includes/exception/MWExceptionHandler.php(495): MWExceptionHandler::handleError(integer, string, string, integer, array) #1 [internal function]: MWExceptionHandler::{closure}() #2 /srv/mediawiki/php-1.40.0-wmf.6/includes/exception/MWExceptionHandler.php(496): array_map(Closure, array) #3 [internal function]: MWExceptionHandler::{closure}(array) #4 /srv/mediawiki/php-1.40.0-wmf.6/includes/exception/MWExceptionHandler.php(499): array_map(Closure, array) #5 /srv/mediawiki/php-1.40.0-wmf.6/includes/exception/MWExceptionHandler.php(478): MWExceptionHandler::redactTrace(array) #6 /srv/mediawiki/php-1.40.0-wmf.6/includes/exception/MWExceptionHandler.php(651): MWExceptionHandler::getRedactedTrace(Wikimedia\RequestTimeout\RequestTimeoutException) #7 /srv/mediawiki/php-1.40.0-wmf.6/includes/exception/MWExceptionHandler.php(723): MWExceptionHandler::getStructuredExceptionData(Wikimedia\RequestTimeout\RequestTimeoutException, string) #8 /srv/mediawiki/php-1.40.0-wmf.6/includes/exception/MWExceptionHandler.php(756): MWExceptionHandler::jsonSerializeException(Wikimedia\RequestTimeout\RequestTimeoutException, boolean, integer, string) #9 /srv/mediawiki/php-1.40.0-wmf.6/includes/exception/MWExceptionHandler.php(193): MWExceptionHandler::logException(Wikimedia\RequestTimeout\RequestTimeoutException, string) #10 /srv/mediawiki/php-1.40.0-wmf.6/includes/Rest/Reporter/MWErrorReporter.php(25): MWExceptionHandler::rollbackPrimaryChangesAndLog(Wikimedia\RequestTimeout\RequestTimeoutException, string) #11 /srv/mediawiki/php-1.40.0-wmf.6/includes/Rest/Router.php(410): MediaWiki\Rest\Reporter\MWErrorReporter->reportError(Wikimedia\RequestTimeout\RequestTimeoutException, MWParsoid\Rest\Handler\PageHandler, MediaWiki\Rest\RequestFromGlobals) #12 /srv/mediawiki/php-1.40.0-wmf.6/includes/Rest/EntryPoint.php(170): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals) #13 /srv/mediawiki/php-1.40.0-wmf.6/includes/Rest/EntryPoint.php(135): MediaWiki\Rest\EntryPoint->execute() #14 /srv/mediawiki/php-1.40.0-wmf.6/rest.php(31): MediaWiki\Rest\EntryPoint::main() #15 /srv/mediawiki/w/rest.php(3): require(string) #16 {main}
Notes
- Looks like invalid json being passed from Rest/Router and MediaWiki exception handler is choking on it
- Happening infrequently, but has happened for a long time.