When MediaWiki is moved (physically on-disk that is, the web-facing paths are not relevant in this case) the ResourceLoader cache that contains links to file paths (specifically the contents of the module_deps table) are not purged in anyway.
I'm not sure what the right way to detect a purge-need is, but it's causing php errors like the following (Thanks to JasonJarde for reporting this on IRC):
PHP Warning: filemtime(): stat failed for /home/user/oldpath/wiki/resources/jquery.ui/themes/vector/images/button-down-green.png in /home/user/oldpath/wiki/includes/resourceloader/ResourceLoaderFileModule.php on line 380
...because those paths no longer exist.
For now I recommended JasonJarde to manually DELETE all contents of the module_deps table and that fixes the problem.
- Possibly related bugs: bug 34752
- See also https://www.mediawiki.org/wiki/Manual:Moving_a_wiki (which mentions nothing about this)
Possible solutions I can think of:
- Somehow detect that paths have changed
- Create a maintenance script to clear this cache
I'm not a fan of the latter because a move may not be the only cause for this and when possible I'd like to avoid a manual fix. Having to run a maintenance script is automated in some way, but it still requires manual intervention and knowing that that script has to be ran. ResourceLoader should be able to figure out the caching.