Page MenuHomePhabricator

ResourceLoaderFileModule::getFileContents: style file not found, or is not a file: "/srv/mediawiki/php-1.35.0-wmf.24/extensions/RelatedArticles/"
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.35.0-wmf.24

message
ResourceLoaderFileModule::getFileContents: style file not found, or is not a file: "/srv/mediawiki/php-1.35.0-wmf.24/extensions/RelatedArticles/"

Impact

Notes

Details

Request ID
XnN2PQpAADwAAIproNkAAAEA
Request URL
https://sv.wikivoyage.org/w/load.php?lang=sv&modules=ext.relatedArticles.cards%2Clib%2CreadMore&skin=minerva&version=mm3en
Stack Trace
exception.trace
#0 /srv/mediawiki/php-1.35.0-wmf.24/includes/resourceloader/ResourceLoaderFileModule.php(1005): ResourceLoaderFileModule->getFileContents(string, string)
#1 /srv/mediawiki/php-1.35.0-wmf.24/includes/resourceloader/ResourceLoaderFileModule.php(985): ResourceLoaderFileModule->readStyleFile(string, ResourceLoaderContext)
#2 /srv/mediawiki/php-1.35.0-wmf.24/includes/resourceloader/ResourceLoaderFileModule.php(454): ResourceLoaderFileModule->readStyleFiles(array, ResourceLoaderContext)
#3 /srv/mediawiki/php-1.35.0-wmf.24/includes/resourceloader/ResourceLoaderModule.php(713): ResourceLoaderFileModule->getStyles(ResourceLoaderContext)
#4 /srv/mediawiki/php-1.35.0-wmf.24/includes/resourceloader/ResourceLoaderModule.php(661): ResourceLoaderModule->buildContent(ResourceLoaderContext)
#5 /srv/mediawiki/php-1.35.0-wmf.24/includes/resourceloader/ResourceLoader.php(1162): ResourceLoaderModule->getModuleContent(ResourceLoaderContext)
#6 /srv/mediawiki/php-1.35.0-wmf.24/includes/resourceloader/ResourceLoader.php(870): ResourceLoader->makeModuleResponse(ResourceLoaderContext, array, array)
#7 /srv/mediawiki/php-1.35.0-wmf.24/load.php(46): ResourceLoader->respond(ResourceLoaderContext)
#8 /srv/mediawiki/w/load.php(3): require(string)
#9 {main}

Event Timeline

hashar created this task.Mar 19 2020, 1:41 PM
Restricted Application added subscribers: Liuxinyu970226, Aklapper. · View Herald TranscriptMar 19 2020, 1:41 PM

Looking again at the urls in logstash, they all seem to have skin=minerva. So maybe that is mobile related?

(Triggered by one of my fixes.)

Change 581609 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/RelatedArticles@master] Don't try to register "" as a style path, that breaks ResourceLoader

https://gerrit.wikimedia.org/r/581609

Jdforrester-WMF triaged this task as Unbreak Now! priority.Mar 19 2020, 3:06 PM

Change 581618 had a related patch set uploaded (by Krinkle; owner: Jforrester):
[mediawiki/extensions/RelatedArticles@wmf/1.35.0-wmf.24] Don't try to register "" as a style path, that breaks ResourceLoader

https://gerrit.wikimedia.org/r/581618

Change 581609 merged by jenkins-bot:
[mediawiki/extensions/RelatedArticles@master] Don't try to register "" as a style path, that breaks ResourceLoader

https://gerrit.wikimedia.org/r/581609

Change 581618 merged by jenkins-bot:
[mediawiki/extensions/RelatedArticles@wmf/1.35.0-wmf.24] Don't try to register "" as a style path, that breaks ResourceLoader

https://gerrit.wikimedia.org/r/581618

Mentioned in SAL (#wikimedia-operations) [2020-03-19T16:54:27Z] <hashar@deploy1001> Synchronized php-1.35.0-wmf.24/extensions/RelatedArticles: Do not register "" as a style path, that breaks ResourceLoader - T248090 (duration: 01m 07s)

hashar closed this task as Resolved.Mar 19 2020, 5:00 PM

It is no more showing in the logs!

Jdlrobson added a subscriber: Jdlrobson.

Just saw this in the logs. Thanks for dealing with this!

Just saw this in the logs. Thanks for dealing with this!

It happens. :-)