Page MenuHomePhabricator

https://noc.wikimedia.org/wiki.php failing to initialize
Closed, ResolvedPublic

Description

When visiting the Wiki config section of noc.wikimedia.org it gives a 500 error with content:

Fatal error: Uncaught Error: Class "MWMultiVersion" not found in /srv/mediawiki/docroot/noc/wiki.php:23 Stack trace: #0 {main} thrown in /srv/mediawiki/docroot/noc/wiki.php on line 23

Event Timeline

A logstash query for MWMultiVersion AND wiki.php suggests the first error came in on may 3rd at 15:01

Server Admin Log shows a multiversion patch deployed around an hour prior to that, seems reasonable to infer it was broken there.

I ran across this today and came to phab to report it. Looks like you're way ahead of me. Thanks for the patch.

cc @Krinkle, this sounds related to your recent file reorganisation in wmf-config.

EBernhardson claimed this task.

Yep, that's the fix. Deployed meanwhile.

@Krinkle wrote on Gerrit:

noc: Fix "Class MWMultiVersion not found" in wiki.php

In wiki.php, there is call to MWMultiVersion, but the class file
was not included.

Follows-up I808e8bb0a2d6, which removed an (indirect) include of
MWMultiVersion.php from MWConfigCacheGenerator.php, which was
accidentally masking the fact that wiki.php did not import its own
dependency.