chameleon icon indicating copy to clipboard operation
chameleon copied to clipboard

Bootstrap install not detected

Open despens opened this issue 3 years ago • 5 comments

Setup:

Product Version
MediaWiki 1.37.6
PHP 8.0.23 (apache2handler)
MariaDB 10.3.36-MariaDB-1:10.3.36+maria~ubu2004
ICU 67.1
Lua 5.1.5
Pygments 2.10.0
Extension Version License Description Authors
Bootstrap 4.6.0 GPL-3.0-or-later Provides the Bootstrap framework in the wiki Stephan Gambke, Professional.Wiki and James Hong Kong

Installed via composer:

mediawiki/bootstrap:~4.0 mediawiki/chameleon-skin:~4.0

PHP error:

Fatal error: Uncaught ExtensionDependencyError: chameleon requires Bootstrap to be installed. in /var/www/html/includes/registration/ExtensionRegistry.php:432 Stack trace: #0 /var/www/html/includes/registration/ExtensionRegistry.php(255): ExtensionRegistry->readFromQueue(Array) #1 /var/www/html/includes/Setup.php(168): ExtensionRegistry->loadFromQueue() #2 /var/www/html/includes/WebStart.php(90): require_once('/var/www/html/i...') #3 /var/www/html/index.php(44): require('/var/www/html/i...') #4 {main} thrown in /var/www/html/includes/registration/ExtensionRegistry.php on line 432

despens avatar Oct 03 '22 19:10 despens

You need to load the Bootstrap extension. wfLoadExtension

JeroenDeDauw avatar Oct 03 '22 22:10 JeroenDeDauw

Bootstrap is installed and loaded via wfLoadExtension( 'Bootstrap' );. When removing the Chameleon skin, it shows up as expected on Special:Version, as copy-pasted above.

When the chameleon skin is installed, regardless if activated via wfLoadSkin( 'chameleon' ); or not, the error message above appears. Only when not installing the Chameleon skin at all the error message doesn't appear.

despens avatar Oct 06 '22 09:10 despens

What commands did you use to install Bootstrap and Chameleon? Or did you add it directly to composer.local.json?

malberts avatar Oct 06 '22 15:10 malberts

I used the commands provided in the instructions:

Bootstrap

COMPOSER=composer.local.json composer require --no-update mediawiki/bootstrap:~4.0
composer update mediawiki/bootstrap --no-dev -o

Chameleon

COMPOSER=composer.local.json composer require --no-update mediawiki/chameleon-skin:~4.0
composer update mediawiki/chameleon-skin --no-dev -o

despens avatar Oct 08 '22 07:10 despens

It may be because wfLoadSkin( 'chameleon' ); is before wfLoadExtension( 'Bootstrap' );, try to flip them: Bootstrap before chameleon (I vaguely remember this "issue" although I did not recheck recently).

Seb35 avatar Jul 25 '23 22:07 Seb35