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

Bootstrap install not detected #351

Open
despens opened this issue Oct 3, 2022 · 5 comments
Open

Bootstrap install not detected #351

despens opened this issue Oct 3, 2022 · 5 comments
Labels

Comments

@despens
Copy link

despens commented Oct 3, 2022

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

@JeroenDeDauw
Copy link
Member

You need to load the Bootstrap extension. wfLoadExtension

@despens
Copy link
Author

despens commented Oct 6, 2022

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.

@malberts
Copy link
Contributor

malberts commented Oct 6, 2022

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

@despens
Copy link
Author

despens commented Oct 8, 2022

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

@Seb35
Copy link

Seb35 commented Jul 25, 2023

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).

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

No branches or pull requests

4 participants