Topic on Skin talk:Chameleon

The skin works OOtB, but Layouts do not

1
Z929669 (talkcontribs)

SOLVED: I posted too soon ... missed that __DIR__ is evidently relative to "LocalSettings.php", and I have mine pointing to a custom config in the directory above, so I just had to add my wiki directory to the beginning of the path spec. Sorry!

Installed and set Chameleon without issue. Here's my relevant config:

### Bootstrap
wfLoadExtension( 'Bootstrap' );

### Bootstrap Components
wfLoadExtension( 'BootstrapComponents' );

## Chameleon layouts
wfLoadSkin( 'chameleon' );
#$egChameleonLayoutFile= __DIR__ . '/skins/chameleon/layouts/clean.xml';
#$egChameleonLayoutFile= __DIR__ . '/skins/chameleon/layouts/fixedhead.xml';
#$egChameleonLayoutFile= __DIR__ . '/skins/chameleon/layouts/navhead.xml';
#$egChameleonLayoutFile= __DIR__ . '/skins/chameleon/layouts/standard.xml';
#$egChameleonLayoutFile= __DIR__ . '/skins/chameleon/layouts/stickyhead.xml';

Looks good. BUT, uncommenting any of the layout options gives me the following error (the paths and file names are accurate, and all permissions, ownership, and SELinux settings are not the problem):

MediaWiki internal error.
 
 Original exception: [85c7041d451c5f96045b1ee8] /wikidev/Main_Page   RuntimeException from line 108 of /srv/sites/_wikidev/skins/chameleon/src/ComponentFactory.php: Expected an accessible /srv/sites/skins/chameleon/layouts/stickyhead.xml layout file
 Backtrace:
 #0 /srv/sites/_wikidev/skins/chameleon/src/ComponentFactory.php(60): Skins\Chameleon\ComponentFactory->setLayoutFile()
 #1 /srv/sites/_wikidev/skins/chameleon/src/Chameleon.php(191): Skins\Chameleon\ComponentFactory->__construct()
 #2 /srv/sites/_wikidev/skins/chameleon/src/Chameleon.php(177): Skins\Chameleon\Chameleon->getComponentFactory()
 #3 /srv/sites/_wikidev/includes/skins/SkinTemplate.php(322): Skins\Chameleon\Chameleon->setupTemplateForOutput()
 #4 /srv/sites/_wikidev/skins/chameleon/src/Chameleon.php(165): SkinTemplate->prepareQuickTemplate()
 #5 /srv/sites/_wikidev/includes/skins/SkinTemplate.php(127): Skins\Chameleon\Chameleon->prepareQuickTemplate()
 #6 /srv/sites/_wikidev/includes/skins/SkinTemplate.php(144): SkinTemplate->generateHTML()
 #7 /srv/sites/_wikidev/includes/OutputPage.php(2615): SkinTemplate->outputPage()
 #8 /srv/sites/_wikidev/includes/MediaWiki.php(947): OutputPage->output()
 #9 /srv/sites/_wikidev/includes/MediaWiki.php(960): MediaWiki->{closure}()
 #10 /srv/sites/_wikidev/includes/MediaWiki.php(543): MediaWiki->main()
 #11 /srv/sites/_wikidev/index.php(53): MediaWiki->run()
 #12 /srv/sites/_wikidev/index.php(46): wfIndexMain()
 #13 {main}
 
 Exception caught inside exception handler: [85c7041d451c5f96045b1ee8] /wikidev/Main_Page   RuntimeException from line 108 of /srv/sites/_wikidev/skins/chameleon/src/ComponentFactory.php: Expected an accessible /srv/sites/skins/chameleon/layouts/stickyhead.xml layout file
 Backtrace:
 #0 /srv/sites/_wikidev/skins/chameleon/src/ComponentFactory.php(60): Skins\Chameleon\ComponentFactory->setLayoutFile()
 #1 /srv/sites/_wikidev/skins/chameleon/src/Chameleon.php(191): Skins\Chameleon\ComponentFactory->__construct()
 #2 /srv/sites/_wikidev/skins/chameleon/src/Chameleon.php(177): Skins\Chameleon\Chameleon->getComponentFactory()
 #3 /srv/sites/_wikidev/includes/skins/SkinTemplate.php(322): Skins\Chameleon\Chameleon->setupTemplateForOutput()
 #4 /srv/sites/_wikidev/skins/chameleon/src/Chameleon.php(165): SkinTemplate->prepareQuickTemplate()
 #5 /srv/sites/_wikidev/includes/skins/SkinTemplate.php(127): Skins\Chameleon\Chameleon->prepareQuickTemplate()
 #6 /srv/sites/_wikidev/includes/skins/SkinTemplate.php(144): SkinTemplate->generateHTML()
 #7 /srv/sites/_wikidev/includes/OutputPage.php(2615): SkinTemplate->outputPage()
 #8 /srv/sites/_wikidev/includes/exception/MWExceptionRenderer.php(153): OutputPage->output()
 #9 /srv/sites/_wikidev/includes/exception/MWExceptionRenderer.php(65): MWExceptionRenderer::reportHTML()
 #10 /srv/sites/_wikidev/includes/exception/MWExceptionHandler.php(106): MWExceptionRenderer::output()
 #11 /srv/sites/_wikidev/includes/exception/MWExceptionHandler.php(185): MWExceptionHandler::report()
 #12 /srv/sites/_wikidev/includes/MediaWiki.php(576): MWExceptionHandler::handleException()
 #13 /srv/sites/_wikidev/index.php(53): MediaWiki->run()
 #14 /srv/sites/_wikidev/index.php(46): wfIndexMain()
 #15 {main}
Reply to "The skin works OOtB, but Layouts do not"