Topic on Project:Support desk

[RESOLVED] - Problem with Javascript

4
EFFemeer (talkcontribs)

I had a perfectly working wiki until four days ago, when I started to get the following mime type problems:

Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://drebbel.net/wiki/load.php?debug=false&lang=en&modules=ext.slideshow.…face%7Cmediawiki.ui.button%7Cskins.vector.styles&only=styles&skin=vector&*".

Main_Page:17 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://drebbel.net/wiki/load.php?debug=false&lang=en&modules=site&only=styles&skin=vector&*".

Main_Page:20 Resource interpreted as Script but transferred with MIME type text/html: "http://drebbel.net/wiki/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector&*".

Main_Page:1 Refused to execute script from 'http://drebbel.net/wiki/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector&*' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

My site is drebbel.net/wiki

Product Version
MediaWiki 1.24.1
PHP 5.3.28 (apache2handler)
MySQL 5.0.95

I tried including

  • AddType text/css css
  • AddType application/x-javascript js
  • AddType application/json json

into .htaccess to no avail.

I'm using a paid hostserver.

Florianschmidtwelzow (talkcontribs)

Look in your LocalSettings.php before the starting <?php and remove the point "." there (before the <?php should be nothing).

EFFemeer (talkcontribs)

Wow. Thank you Florian. You made the right point.

I think this should be made more well-known, because there are some text editors which tend to add such a point before <?php

Florianschmidtwelzow (talkcontribs)
Reply to "[RESOLVED] - Problem with Javascript"