Topic on Skin talk:Chameleon

Summary by AdamPloof

Solution presented below was successful in resolving the issue.

AdamPloof (talkcontribs)

I recently installed the chameleon skin on a local environment and ran into a confusing error that I'm having trouble solving. The symptom is that the bootstrap/chameleon style sheet is not loading properly and I'm getting an almost completely un-styled page when enabling the chameleon skin. I had previously installed the Bootstrap extension which was working fine before installing the chameleon skin, but now that is no longer working.

After loading my wiki with debug=true and examining the responses for each style sheet I found the request for load.php?modules=ext.bootstrap.styles... is returning an error in the response which is:

/* SCSS compile error: @return may only be used within a function: C:\xampp\htdocs\mediawiki/skins/chameleon/resources/styles/_functions.scss on line 22, at column 4

Call Stack:

#0 function abs C:\xampp\htdocs\mediawiki/skins/chameleon/resources/styles/_mixins.scss on line 56

#1 mixin bullet C:\xampp\htdocs\mediawiki/skins/chameleon/resources/styles/_basics.scss on line 22

#2 import C:\xampp\htdocs\mediawiki/skins/chameleon/resources/styles/_basics.scss C:\xampp\htdocs\mediawiki/skins/chameleon/resources/styles/chameleon.scss on line 15

#3 import C:\xampp\htdocs\mediawiki/skins/chameleon/resources/styles/chameleon.scss (unknown file) on line 1*/


This error is the only content of the response, there is no other CSS returned.


Looking at _functions.scss I couldn't see anything wrong -- the @return statement is indeed inside a @function as it should be. It looks like the the .scss is not compiling properly, but I haven't been able to figure out why. I'm not sure what the unknown file in .../chameleon.scss (unknown file) on line 1*/ is referring to either, but perhaps that's also a clue. Any help appreciated.


For reference: I'm running MediaWiki version 1.34.2, Chameleon skin 3.0.1, and Bootstrap 4.2.1. All are listed as installed on the Special:Version page.

John Bradie (talkcontribs)

Looks like it might be the same error as in the "1.35.0-rc.2" below, tracked with issue 187 on GitHub.


Try this from your installation directory (e.g. C:\xampp\htdocs\mediawiki)?

$ composer require scssphp/scssphp:1.1.1 --update-no-dev