hallowelt / mwstake-mediawiki-component-commonwebapis

0 stars 2 forks source link

Uncaught Error: Call to undefined function OOJSPlus #6

Closed krabina closed 1 year ago

krabina commented 1 year ago

When trying to install the extension on MW 1.35, I get the following error.

Fatal error: Uncaught Error: Call to undefined function OOJSPlus\mwsInitComponents() in extensions/OOJSPlus/src/Extension.php:7 Stack trace: #0 1.35.8/includes/registration/ExtensionRegistry.php(578): OOJSPlus\Extension::callback() #1 1.35.8/includes/registration/ExtensionRegistry.php(261): ExtensionRegistry->exportExtractedData() #2 1.35.8/includes/Setup.php(161): ExtensionRegistry->loadFromQueue() #3 1.35.8/includes/WebStart.php(89): require_once('1...') #4 1.35.8/index.php(44): require('1...') #5 {main} thrown in extensions/OOJSPlus/src/Extension.php on line 7

krabina commented 1 year ago

I tried both the master branch and the REL1_35 branch As well as on MW 1.39, PHP8.

osnard commented 1 year ago

Did you use "Special:ExtensionDistributor" from mediawiki.org to download the extensions? Or did you install using composer?

krabina commented 1 year ago

I used git

krabina commented 1 year ago

Indeed, downloading with extension distributor works! Thank you!

osnard commented 1 year ago

Great! If you use git, you may need to manually run composer update in the respective extension directory. But this is not recommended.