Reputation: 9
I am running mediaiwiki on windows server and using IIS
I am getting this error, i have updated my wiki from 1.26 to latest version 1.42.1 , i did not jump from 1.26 to 1.42.1 directly , made few hops !
the page is loading but the vector skin is not applying and in the developer console I see the 500 error
Refused to execute script from 'http://xxxxxx:8080/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
and when i click on that link i see this error
[0bd1c37609b216989be1c6fb] /load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector Error: Class "ResourceLoaderFileModule" not found
I am really frustrated its been 2 weeks i tried everything , downloaded the latest stable skin folder and placed it in skins folder.
Please someone help me out , I am new to this
Tried everything that's on the internet but no luck
Upvotes: 0
Views: 312
Reputation: 9
The problem was with the extensions , although the error was realted to the skin , by replacing the extension files with the latest one the error was resolved !!! Thanks @w8ody and @Alexander Mashin
Upvotes: 0
Reputation: 11
It has to do with an extension you have active in your LocalSettings.php file.
Go to /your-mediawiki-dir/extensions and run ag ResourceLoaderFileModule
and for each extension that has something like class Base extends \ResourceLoaderFileModule
you will need to update with class Base extends \MediaWiki\ResourceLoader\FileModule
.
This is due to a breaking change in Mediawiki 1.42. https://www.mediawiki.org/wiki/Release_notes/1.42 "ResourceLoaderFilePath – use MediaWiki\ResourceLoader\FilePath"
Upvotes: 1
Reputation: 4537
Make sure that the skin is on the same branch as MediaWiki. The class ResourceLoaderFileModule
was removed in MediaWiki 1.39; therefore, if the skin still requires it, it is older.
This is the general principle: skins and extensions developed by WikiMedia or bundled with MediaWiki ought to have the same version.
You may also need to run composer update
within skins/vector
directory.
Upvotes: 1