Page MenuHomePhabricator

Styles not loaded after go to mobile version: File `minerva.variables` not found. in toast.less
Closed, DeclinedPublic

Description

Hello.
I install extension Mobile Frontend and skin MinervaNeue.Part of my LocalSettings:

# Темы оформления
$wgDefaultSkin = "Vector";
wfLoadExtension( 'MobileFrontend' );
wfLoadSkin( 'Vector' ); # Тема Vector
wfLoadSkin( 'MinervaNeue' ); # Тема Minerva Neue
$wgMFAutodetectMobileView = true;
$wgMFDefaultSkinClass = "SkinMinerva";

My wiki configuration:

MediaWiki	1.33.2
PHP	7.3.13 (apache2handler)
MariaDB	10.1.41-MariaDB-0+deb9u1
ICU	57.1
Lua	5.1.5

When I go to mobile version I get page without styles.
Developer Tools by Google Chrome:

load.php?lang=ru&modules=startup&only=scripts&skin=minerva&target=mobile:30 [ea5b557a78094872b730045e] /load.php?lang=ru&modules=startup&only=scripts&skin=minerva&target=mobile   Less_Exception_Parser from line 2793 of /var/www/anthecology/data/www/cherepovets.org/vendor/wikimedia/less.php/lib/Less/Parser.php: File `minerva.variables` not found. in toast.less
Backtrace:
#0 /var/www/anthecology/data/www/cherepovets.org/vendor/wikimedia/less.php/lib/Less/Parser.php(471): Less_Parser->Error(string)
#1 /var/www/anthecology/data/www/cherepovets.org/vendor/wikimedia/less.php/lib/Less/Tree/Import.php(275): Less_Parser->parseFile(string, string, boolean)
#2 /var/www/anthecology/data/www/cherepovets.org/vendor/wikimedia/less.php/lib/Less/Tree/Import.php(198): Less_Tree_Import->ParseImport(string, string, Less_Environment)
#3 /var/www/anthecology/data/www/cherepovets.org/vendor/wikimedia/less.php/lib/Less/Tree/Ruleset.php(248): Less_Tree_Import->compile(Less_Environment)
#4 /var/www/anthecology/data/www/cherepovets.org/vendor/wikimedia/less.php/lib/Less/Tree/Ruleset.php(235): Less_Tree_Ruleset->evalImports(Less_Environment)
#5 /var/www/anthecology/data/www/cherepovets.org/vendor/wikimedia/less.php/lib/Less/Tree/Ruleset.php(70): Less_Tree_Ruleset->PrepareRuleset(Less_Environment)
#6 /var/www/anthecology/data/www/cherepovets.org/vendor/wikimedia/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Less_Environment)
#7 /var/www/anthecology/data/www/cherepovets.org/includes/resourceloader/ResourceLoaderFileModule.php(1030): Less_Parser->getCss()
#8 /var/www/anthecology/data/www/cherepovets.org/includes/resourceloader/ResourceLoaderFileModule.php(926): ResourceLoaderFileModule->compileLessFile(string, ResourceLoaderContext)
#9 /var/www/anthecology/data/www/cherepovets.org/includes/resourceloader/ResourceLoaderFileModule.php(897): ResourceLoaderFileModule->readStyleFile(ResourceLoaderFilePath, boolean, ResourceLoaderContext)
#10 /var/www/anthecology/data/www/cherepovets.org/includes/resourceloader/ResourceLoaderFileModule.php(430): ResourceLoaderFileModule->readStyleFiles(array, boolean, ResourceLoaderContext)
#11 /var/www/anthecology/data/www/cherepovets.org/includes/resourceloader/ResourceLoaderModule.php(747): ResourceLoaderFileModule->getStyles(ResourceLoaderContext)
#12 /var/www/anthecology/data/www/cherepovets.org/includes/resourceloader/ResourceLoaderModule.php(694): ResourceLoaderModule->buildContent(ResourceLoaderContext)
#13 /var/www/anthecology/data/www/cherepovets.org/includes/resourceloader/ResourceLoaderModule.php(830): ResourceLoaderModule->getModuleContent(ResourceLoaderContext)
#14 /var/www/anthecology/data/www/cherepovets.org/includes/resourceloader/ResourceLoaderStartUpModule.php(255): ResourceLoaderModule->getVersionHash(ResourceLoaderContext)
#15 /var/www/anthecology/data/www/cherepovets.org/includes/resourceloader/ResourceLoaderStartUpModule.php(438): ResourceLoaderStartUpModule->getModuleRegistrations(ResourceLoaderContext)
#16 /var/www/anthecology/data/www/cherepovets.org/includes/resourceloader/ResourceLoaderModule.php(727): ResourceLoaderStartUpModule->getScript(ResourceLoaderContext)
#17 /var/www/anthecology/data/www/cherepovets.org/includes/resourceloader/ResourceLoaderModule.php(694): ResourceLoaderModule->buildContent(ResourceLoaderContext)
#18 /var/www/anthecology/data/www/cherepovets.org/includes/resourceloader/ResourceLoaderModule.php(830): ResourceLoaderModule->getModuleContent(ResourceLoaderContext)
#19 /var/www/anthecology/data/www/cherepovets.org/includes/resourceloader/ResourceLoader.php(656): ResourceLoaderModule->getVersionHash(ResourceLoaderContext)
#20 [internal function]: ResourceLoader->{closure}(string)
#21 /var/www/anthecology/data/www/cherepovets.org/includes/resourceloader/ResourceLoader.php(668): array_map(Closure, array)
#22 /var/www/anthecology/data/www/cherepovets.org/includes/resourceloader/ResourceLoader.php(749): ResourceLoader->getCombinedVersion(ResourceLoaderContext, array)
#23 /var/www/anthecology/data/www/cherepovets.org/load.php(46): ResourceLoader->respond(ResourceLoaderContext)
#24 {main}

Event Timeline

Antohabio triaged this task as Medium priority.Jan 20 2020, 9:51 PM
DannyS712 raised the priority of this task from Medium to Needs Triage.Jan 20 2020, 10:12 PM
Aklapper renamed this task from Styles not loaded after go to mobile version (MobileFrontend + Minerva Neue) to Styles not loaded after go to mobile version: File `minerva.variables` not found. in toast.less.Jan 20 2020, 11:34 PM
Jdlrobson added a subscriber: Jdlrobson.

Which versions of MobileFrontend and Minerva do you have according to special:version ?

Aklapper changed the task status from Open to Stalled.Feb 8 2020, 7:31 PM

Which versions of MobileFrontend and Minerva do you have according to special:version ?

@Antohabio: Could you please answer?