Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: OutputPage::getModuleStyles #51

Open
Mywifi opened this issue Dec 15, 2015 · 7 comments
Open

Warning: OutputPage::getModuleStyles #51

Mywifi opened this issue Dec 15, 2015 · 7 comments

Comments

@Mywifi
Copy link

Mywifi commented Dec 15, 2015

Warning: OutputPage::getModuleStyles: style module should define its position explicitly: skins.bootstrapmediawiki ResourceLoaderFileModule [Called from OutputPage::getModuleStyles in C:\wamp\www\mediawiki-1.26.0\includes\OutputPage.php at line 621] in C:\wamp\www\mediawiki-1.26.0\includes\debug\MWDebug.php on line 300

@RominYue
Copy link

Actually, the newest mediawiki 1.26.0 (which I installed) has some differences than before.

For your problem, you should explicitly define module position attribute like this in bootstrap-mediawiki.php

$wgResourceModules['skins.bootstrapmediawiki'] = array(
    'styles' => *,
    'scripts' =>*,
    'dependencies' *,
    'remoteBasePath' => *,
    'localBasePath'  => *,
    "position"=> "bottom",
);

Or you can imitate other skins such as monobook to establish a file 'skin.json' to do some configurations.
Hope can help you~~~

@adriel
Copy link

adriel commented Dec 23, 2015

Legendary RominYeu, this fixed it for me!

I just installed this skin on the 1.26, just upgraded from a very old version, figured it was time for a better skin.

@clrh
Copy link

clrh commented Feb 12, 2016

Oh great, thanks you ;)

@wintstar
Copy link

open bootstrap-mediawiki.php
search

$wgResourceModules['skins.bootstrapmediawiki'] = array(

change to

$wgResourceModules['skins.bootstrapmediawiki'] = array(
    'position' => 'top',

@raiha7
Copy link

raiha7 commented Feb 13, 2016

Thank yu

1 similar comment
@raiha7
Copy link

raiha7 commented Feb 13, 2016

Thank yu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
@adriel @clrh @wintstar @RominYue @Mywifi @raiha7 and others