Topic on Project:Support desk

Kanasalaatti (talkcontribs)

Now I also have a problem with wikifamily that GlobalCssJs extension not work. Or that it is installed and it also reads the page Special:Version, but it doesn't seem to have an effect. If it had an effect, I could create my own global.js and global.css file on the wiki, and that same script will work on all my wikis. I think it's configured correctly (Github commit line), but it just doesn't work properly for some reason. Other similar extensions such as GlobalUserPage do work normally.

Bawolff (talkcontribs)

the config doesn't look correct, you're mixing up the array key names with the wiki name.

Kanasalaatti (talkcontribs)

What should I do?

Mainframe98 (talkcontribs)

Where it says

	'wgGlobalCssJsConfig' => [
		'wiki' => 'metawiki',
		'source' => 'metawiki',
	],

it should say

	'wgGlobalCssJsConfig' => [
		'default' => [
			'wiki' => 'metawiki',
			'source' => 'metawiki',
		],
	],

You should also fix wgResourceLoaderSources to

	'wgResourceLoaderSources' => [
		'default' => [
			'apiScript' => 'https://meta.maamedia.org/api.php', 
			'loadScript' => 'https://meta.maamedia.org/load.php'
		],
	],

Or it won't work.

But really this isn't wiki specific, and should probably go into your GlobalConfig file.

Kanasalaatti (talkcontribs)

Working, thanks!

Reply to "GlobalCssJs"