Page MenuHomePhabricator

Static resources not loading for nonprimary multiwikis
Open, MediumPublic1 Estimated Story Points

Description

The browser is trying to load images from, e.g.

http://payments.wiki.local.wmftest.net:8080/w/extensions/DonationInterface/gateway_forms/includes/padlock.gif

This is a paymentswiki-only resource.

Event Timeline

@mmodell Wondering who to ping about this... It hampers our development testing, please let us know if we should try to tackle this regression.

mmodell added a subscriber: Krinkle.

@Krinkle: Could this be related to the recent static resource loader change?

I'm not sure what needs to happen on vagrant to make it work like prod.

It didn't affect MediaWiki-Vagrant (at least not by my doing). MediaWiki core doesn't hijack that path in any way by default.

I would assume this is not a recent regression but something that existed for longer in Vagrant (or probably never worked).

@awight What do you mean by a "paymentswiki-only resource". Surely the directory exists on disk regardless of whether or not the extension is enabled within MediaWiki for the current wiki?

MediaWiki-Vagrant's Apache configuration for wikis is shared between all wikis and points to the same (default) mediawiki docroot.

It's not just "missing" paymentwiki-specific files like these. All other files will also be of the "wrong" version. The easiest fix might be to create an explicit vhost for the payments wiki as part of the payments Puppet role and ensuring it points to the appropiate docroot instead of the default.