Difference between revisions 1157344 and 1157365 on mediawikiwiki

<languages/>
{{ {{TNTN|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 RewriteRule in the file ''.htaccess''. Change your .htaccess file to make sure that calls to load.php (and to api.php btw.) are ''not'' rewritten. 

 RewriteEngine On
 RewriteRule ^(api|load)\.php - [L]
 ...

After that load.php should return the right contents and your wiki should be styled.

Other possible problems: [[Special:MyLanguage/Manual:Errors and symptoms#The wiki appears without styles applied and images are missing|Manual:Errors and symptoms#The wiki appears without styles applied and images are missing]]

== Details ==

FiZuerst it checks thprüft es die PHP v-Version, which must bdie {{MW stable php requirement}} oder higöher, and it includes [[Special:MyLanguage/Manual:WebStart.php|WebStart.php]]. Next, it creates a sein muss und es {{ll|Manual:WebStart.php|WebStart.php}} enthalten. Anschließend erstellt es ein [http://svn.wikimedia.org/doc/classResourceLoader.html <code>ResourceLoader</code> o-Objeckt] aund calls itsruft seine <code>respond()</code> m-Method, which outputs the specified resource contene auf, welche die angegebenen Ressourceninhalte ausgibt, eincluding a cschließlich eines Content-tType h-Headers.

A custom value for the location of the load.php script can be provided using <code>{{ll|Manual:$wgLoadScript|$wgLoadScript}}</code>.