Topic on Skin talk:Chameleon

Lua Modules appear not to run in Mediawiki when using Chameleon skin

6
Albert Ke (talkcontribs)

Hi,

I noticed that Lua programs running in the mediawiki are not working properly when using the Chameleon skin. For example the module “clickable buttons 2” that create buttons with text (see e.g.: https://en.wikipedia.org/wiki/Template:Clickable_button_2) won’t create any clickable buttons when using chameleon skin.

However, as soon as a different skin is chosen, the buttons work fine.

See copied above example at: http://csdms.colorado.edu/wiki/Template:Clickable_button_2 (default skin is customized, and Lua works, buttons show. Here an image when displaying same page using Chameleon skin: http://csdms.colorado.edu/wiki/File:ChameleonSkin-NoButtons.png).

Any idea what a work around could be to get Lua modules to work with the Chameleon skin?

Versions: (http://csdms.colorado.edu/wiki/Special:Version)

Chameleon 1.5

Mediawiki 1.27.0

PHP 5.6.28

Lua 5.1.5

Thanks,

Albert.

F.trott (talkcontribs)
F.trott (talkcontribs)

In any case I noticed on your site that a SecurityError is raised which seems to come from the HeaderTabs extension. Could you try to disable that extension for a moment and see if it helps?

Albert Ke (talkcontribs)

Thanks for the prompt reply. I disabled the HeaderTabs extension. Reloaded the pages in different browser, logged in to get the skin to Chameleon 1.5, same thing, buttons disappear as soon as using the Chameleon skin. I'll put the HeaderTabs extension back on, but will install a newer version (if there is one) soon to see if that solves the security error.

Thanks, Albert.

F.trott (talkcontribs)

I think I know what's happening. At some point I removed the call to include MW legacy CSS. I think this call is now also used for mw.ui.button, the CSS module containing the button formatting rules. So I'll have to reintroduce that call and get rid of the legacy stuff in a different way.

Give me a few days, I'm not home right now.

Albert Ke (talkcontribs)

Totally fine, already happy that you opened an 'issue' and are on it. Thanks!, Albert.

Reply to "Lua Modules appear not to run in Mediawiki when using Chameleon skin"