Difference between revisions 2617701 and 2769707 on mediawikiwiki<languages/> {{TNT|MW file|load.php}} '''load.php''' ist ein Skript für den Front-End, um [[ResourceLoader]] Module zum laden einzuhaken. == Nicht angezeigte Styles == After they updated to MediaWiki 1.18 or newer, many users had the problem that their wiki showed up without styles. CSS styles were not applied; what they saw instead looks like a trimmed down version. All styles are browser defaults; no special styles are applied. '''Lösung:''' The problem in most cases is caused by the fact that requests to load.php are redirected to the MediaWiki main PHP file, which finally returns a MediaWiki page. The expected output however are CSS styles. To fix the issue you have to add a RewriteCond and a RewriteRule in the file ''.htaccess''. Change your .htaccess file to make sure that calls to load.php (and to api.php btwalso.) are ''not'' rewritten. RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f RewriteRule (api|load)\.php - [L] ... After that load.php should return the right contents and your wiki should be styled. (contracted; show full) </div> A custom value for the location of the load.php script can be provided using <code>{{ll|Manual:$wgLoadScript|$wgLoadScript}}</code>. [[Category:Entry point URLs{{#translation:}}]] All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://mediawiki.org/w/index.php?diff=prev&oldid=2769707.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|