Page MenuHomePhabricator

MobileFrontend breaks MediaWiki 1.31
Closed, InvalidPublic

Description

If MobileFrontend is enabled under MediaWiki 1.31, the ResourceLoader cannot form the script https://(domain)/w/load.php?debug=false&lang=ru&modules=startup&only=scripts&skin=vector:

[e0dbadd83730bf2d8917131c] /w/load.php?debug=false&lang=ru&modules=startup&only=scripts&skin=vector Error from line 561 of /var/www/wiki/w/includes/resourceloader/ResourceLoader.php: Class 'MFResourceLoaderParsedMessageModule' not found

Backtrace:

#0 /var/www/wiki/w/includes/resourceloader/ResourceLoader.php(148): ResourceLoader->getModule(string)
#1 /var/www/wiki/w/includes/resourceloader/ResourceLoaderStartUpModule.php(440): ResourceLoader->preloadModuleInfo(array, DerivativeResourceLoaderContext)
#2 /var/www/wiki/w/includes/resourceloader/ResourceLoaderStartUpModule.php(422): ResourceLoaderStartUpModule->getAllModuleHashes(DerivativeResourceLoaderContext)
#3 /var/www/wiki/w/includes/resourceloader/ResourceLoaderModule.php(831): ResourceLoaderStartUpModule->getDefinitionSummary(DerivativeResourceLoaderContext)
#4 /var/www/wiki/w/includes/resourceloader/ResourceLoader.php(665): ResourceLoaderModule->getVersionHash(DerivativeResourceLoaderContext)
#5 [internal function]: ResourceLoader->{closure}(string)
#6 /var/www/wiki/w/includes/resourceloader/ResourceLoader.php(678): array_map(Closure, array)
#7 /var/www/wiki/w/includes/resourceloader/ResourceLoader.php(759): ResourceLoader->getCombinedVersion(ResourceLoaderContext, array)
#8 /var/www/wiki/w/load.php(51): ResourceLoader->respond(ResourceLoaderContext)
#9 {main}

This issue is also described here.

Perhaps, the change https://gerrit.wikimedia.org/r/445014 should be backported to MediaWiki 1.31.

MediaWiki1.31.1 (a013eed) 16:46, 31 октября 2018
PHP7.2.11-3+ubuntu18.04.1+deb.sury.org+1 (fpm-fcgi)
MariaDB10.3.10-MariaDB-1:10.3.10+maria~bionic-log
LilyPond2.18.2
LuaSandbox2.0.13-alpha
Lua5.1.5
MobileFrontend2.1.0 (7f66849) 03:25, 18 апреля 2018GPL-2.0-or-laterМобильный интерфейсPatrick Reilly, Max Semenik, Jon Robson, Arthur Richards, Brion Vibber, Juliusz Gonera, Ryan Kaldari, Florian Schmidt, Rob Moen, Sam Smith и другие

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 4 2018, 8:35 AM
alex-mashin updated the task description. (Show Details)Nov 4 2018, 8:36 AM

Note that the change you mentioned (https://gerrit.wikimedia.org/r/445014) does remove the MFResourceLoaderParsedMessageModule class, which is already missing in your installation. This means it's either backported already, or you downloaded master instead of REL1_31

You also may want to check you have the latest Minerva version installed in case it might be trying to use this class.

alex-mashin updated the task description. (Show Details)Nov 11 2018, 6:43 AM

You also may want to check you have the latest Minerva version installed in case it might be trying to use this class.

It was commented out altogether.

The issue has gone away. Most probably due to rebuilding the localisation cachem which I had done in connection to another bug.

alex-mashin closed this task as Invalid.Nov 11 2018, 6:59 AM