Topic on Project:Support desk

Tekgecko (talkcontribs)

I have just done a Server 2012 installation which is now set up, the only problem is that there is no CSS on the Vector skin or any of the others.

I have already given the IIS user (IUSR) full control of C:/Windows/Temp, as well as editing $wgServer to the server name not just 'LocalHost' ($wgServer = "http://emsv22")

does anyone know where I am going wrong?

Ciencia Al Poder (talkcontribs)
Tekgecko (talkcontribs)

Thank you, I used &debug=true at the end of my link and CSS is displayed correctly. I checked under dev tools on Chrome and the load.php is getting an Error 500 message when loading the page. Do you know the best way to troubleshoot this?

Ciencia Al Poder (talkcontribs)

look at the developer console of firefox/Chrome/IE by hitting F11, reload the page and see if you get any error (JavaScript errors in the console, or HTTP 500 errors on the network tab)

You should also see that CSS pages come with a text/css content-type, otherwise the browser will refuse to treat them as CSS, which may indicate the page is giving an error or redirecting to a weird page...

Tekgecko (talkcontribs)

I checked the Dev tools in Chrome and can see there is a 500 error. I can also see it tries to load it as a style-sheet like you said under type. Do you have any idea what could be causing the error? I attached a screenshot (CSS is only working here because debugging is turned on):

Error Screenshot

Ciencia Al Poder (talkcontribs)

Open the URLs that give the error on a new window and see if they display an error message. See Manual:How to debug for things you may need to change to display an error there if you only get a blank page. For example:

error_reporting( -1 );
ini_set( 'display_errors', 1 );
$wgShowExceptionDetails = true;
Tekgecko (talkcontribs)

Thanks, I don't get a blank page, just this "The page cannot be displayed because an internal server error has occurred." which is useless for finding out the error.

Is there any way I can set it to load CSS individually on a permanent basis as a workaround?

Ciencia Al Poder (talkcontribs)

You can set $wgResourceLoaderDebug to true.

You may look at error logs to see the cause of the error. Maybe on system logs you'll find the error.

Tekgecko (talkcontribs)

Ok where can I set that? Can't see it in local settings. I checked the IIS error logs before and there is nothing of interest.

Ciencia Al Poder (talkcontribs)