Jump to content

Extension talk:BootstrapComponents

About this board

Summary by Kghbln

Please update to version 5.0 and invoke correctly as explained.

Lotusccong (talkcontribs)

PHP 7.4.32 MW 1.39.0 SMW 4.0.2 Bootstrap 4.6.0.

After installed the BoostrapCompenants with Compose, I got the folling error message -

Fatal error: Uncaught TypeError: Argument 1 passed to wfLoadExtensions() must be of the type array, string given, called in /XX/ywfjctmfyw/public_html/LocalSettings.php on line 823 and defined in /XX/ywfjctmfyw/public_html/includes/GlobalFunctions.php:69 Stack trace: #0 /XX/public_html/LocalSettings.php(823): wfLoadExtensions() #1 /XX/public_html/includes/Setup.php(218): require_once('/home/887100....') #2 /XX/public_html/includes/WebStart.php(86): require_once('/home/887100.cl...') #3 /XX/public_html/index.php(44): require('/home/887100.cl...') #4 {main} thrown in /XX/public_html/includes/GlobalFunctions.php on line 69

Does it means that BoostrapCompenants not support with MW 1.39.0 ?

Oetterer (talkcontribs)

Please try release 5.0. This should be compatible with 1.39. If you still have issues, please let me know.

Lotusccong (talkcontribs)

Hi Oetterer,

Even I upgrade to Release 5.0 , I still can'tget the Extension loaded. It shoud the following error.

Fatal error: Uncaught TypeError: Argument 1 passed to wfLoadExtensions() must be of the type array, string given, called in /XXXpublic_html/LocalSettings.php on line 857 and defined in

XXX/public_html/includes/GlobalFunctions.php:69 Stack trace: #0 /XXX/public_html/LocalSettings.php(857): wfLoadExtensions() #1

XXX/public_html/includes/Setup.php(218): require_once('/XXX.') #2 XXX/public_html/includes/WebStart.php(86): require_once('/home/887100.cl...') #3

XXX/public_html/index.php(44): require('/XXX.') #4 {main} thrown in /XXX/public_html/includes/GlobalFunctions.php on line 69

Oetterer (talkcontribs)

You are using the extension loader function wrong, I think. You can either use wfLoadExtension() to load functions one by one as in

wfLoadExtension( 'Bootstrap' );
wfLoadExtension( 'BootstrapComponents' );

or you load them all in one by using wfLoadExtensions():

wfLoadExtensions( [ 'Bootstrap', 'BootstrapComponents'] );

Please not the additional s in the second example.

You are trying to use wfLoadExtensions(), but are supplying only a single extension (like wfLoadExtensions('BootstrapComponents');) which is causing the error, since this function expects multiple extensions as an array.

Lotusccong (talkcontribs)

I did load the Bootstrap before BootstrapCOmpenents. After I use the

wfLoadExtensions( [ 'Bootstrap', 'BootstrapComponents'] );

It was succesfully loaded withour any error. Thanks.

Summary by Kghbln

Use Composer to install this extension.

Budstellabecks (talkcontribs)

I'm getting the following Error when I try to install this extension. Any ideas please? Thank you.


Fatal error: Uncaught Error: Class 'ExtensionRegistryHelper\ExtensionRegistryHelper' not found in /var/www/vhosts/mywiki.com/httpdocs/extensions/BootstrapComponents/src/BootstrapComponents.php:88 Stack trace: #0 /var/www/vhosts/mywiki.com/httpdocs/includes/registration/ExtensionRegistry.php(574): BootstrapComponents\BootstrapComponents::init() #1 /var/www/vhosts/mywiki.com/httpdocs/includes/registration/ExtensionRegistry.php(258): ExtensionRegistry->exportExtractedData() #2 /var/www/vhosts/mywiki.com/httpdocs/includes/Setup.php(252): ExtensionRegistry->loadFromQueue() #3 /var/www/vhosts/mywiki.com/httpdocs/includes/WebStart.php(93): require_once('/var/www/vhosts...') #4 /var/www/vhosts/mywiki.com/httpdocs/index.php(44): require('/var/www/vhosts...') #5 {main} thrown in /var/www/vhosts/mywiki.com/httpdocs/extensions/BootstrapComponents/src/BootstrapComponents.php on line 88"

Budstellabecks (talkcontribs)
Budstellabecks (talkcontribs)

Sorted it, the manual install was the issue. Used the composer instructions and all seems fine now

Summary by Kghbln

Now even at 1.1.0 :)

Kghbln (talkcontribs)

I will be installing this extension on sandbox.s-wm.o however it will be nice to get a tag since it uses Composer.

Oetterer (talkcontribs)

done. had some problems, getting into the mediawiki vendor. btw: already at 1.1.0 since I added scribunto support today

Kghbln (talkcontribs)

I know. I ended up in the loop. Thanks! See also Q47528699

There are no older topics