Open despens opened 2 years ago
You need to load the Bootstrap extension. wfLoadExtension
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.
What commands did you use to install Bootstrap and Chameleon? Or did you add it directly to composer.local.json?
I used the commands provided in the instructions:
COMPOSER=composer.local.json composer require --no-update mediawiki/bootstrap:~4.0
composer update mediawiki/bootstrap --no-dev -o
COMPOSER=composer.local.json composer require --no-update mediawiki/chameleon-skin:~4.0
composer update mediawiki/chameleon-skin --no-dev -o
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).
Setup:
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