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

Error in MediaWiki 1.35: Call to undefined method ExtensionRegistry::load() #56

Closed
krabina opened this issue Jan 22, 2021 · 13 comments
Closed
Labels

Comments

@krabina
Copy link
Contributor

krabina commented Jan 22, 2021

Setup and configuration

  • MW version: 1.35.1
  • PHP version: 7.3
  • DB (MySQL etc.):
  • SMW version: 3.2.2

Issue

Enabling Semantic Glossary in MediaWiki 1.31.5 produces the following error

Fatal error: Uncaught Error: Call to undefined method ExtensionRegistry::load() in extensions/SemanticGlossary/SemanticGlossary.php:27 

Stack trace: 
#0 includes/registration/ExtensionRegistry.php(541): SemanticGlossary::initExtension(Array) 
#1 includes/registration/ExtensionRegistry.php(232): ExtensionRegistry->exportExtractedData(Array) 
#2 includes/Setup.php(161): ExtensionRegistry->loadFromQueue() 
#3 includes/WebStart.php(89): require_once('/home/testw...') 
#4 index.php(44): require('...') 
#5 {main} thrown in extensions/SemanticGlossary/SemanticGlossary.php on line 27

Steps to reproduce the observation (recommendation is to use the sandbox):

@kghbln
Copy link
Member

kghbln commented Jan 24, 2021

Thanks for reporting. Note that SG does not work with MW 1.35+ even if it is loaded.

@krabina
Copy link
Contributor Author

krabina commented Feb 9, 2021

It seems that the followingg approach is working:

  • update Semantic Glossary to master
  • update Lingo to master
  • envoke both in LocalSettings.php

It works in my setup now in MW 1.35. The only thing I see that is this notice and warning, but only on Special:Version:

Notice
: Undefined index: parserhook in
.../extensions/Lingo/src/Lingo.php
on line
89


Warning
: Invalid argument supplied for foreach() in
.../extensions/Lingo/src/Lingo.php
on line
89

@kghbln
Copy link
Member

kghbln commented Feb 9, 2021

@krabina And the bubble show?

@kghbln kghbln added the bug label Feb 9, 2021
@krabina
Copy link
Contributor Author

krabina commented Feb 10, 2021

yes:
grafik

@kghbln
Copy link
Member

kghbln commented Feb 10, 2021

Ok, thanks. Last time on sandbox I had no bubbles. Will give it another shot.

@kghbln
Copy link
Member

kghbln commented Feb 11, 2021

Nope, not working on sandbox. Moreover with Composer I cannot longer install master so I had to check out master with Git. Additionally I to not get the Notices on Special:Version you mentioned. I am giving up on this.

@krabina
Copy link
Contributor Author

krabina commented Feb 11, 2021

did you invoke both in LocalSettings.php, first Lingo, ,then SG?

@kghbln
Copy link
Member

kghbln commented Feb 11, 2021

did you invoke both in LocalSettings.php, first Lingo, ,then SG?

Sure yes. I guess some other extension may interfere. However I have no time to figure this out a the moment. Also I am on MW 1.35.0-rc2 which I cannot upgrade at the moment. Perhaps MediaWiki is at play to though this would surprise me at the moment.

@gesinn-it-gea
Copy link
Member

I think a first step could be a current (working) release of Lingo: https://www.mediawiki.org/wiki/Topic:W365ntpdz01m3zif. Not sure if it is really working, since Travis CI seems to be not triggered. Last Travis build is 3 years old: https://travis-ci.org/github/wikimedia/mediawiki-extensions-Lingo/builds. I forked the repo from Github to manually trigger Travis...

@gesinn-it-gea
Copy link
Member

Lingo definitely requires some love before a next release. All Travis build jobs failed: https://travis-ci.org/github/gesinn-it/mediawiki-extensions-Lingo/builds/758499039

@gesinn-it-gea
Copy link
Member

Btw. the above mentioned fork of Lingo was not meant to be permanent. It was just to allow manually triggering Travis...

@kghbln
Copy link
Member

kghbln commented Feb 11, 2021

Very much indeed. Heaps of love needed. Helping hands appreciated!

@krabina
Copy link
Contributor Author

krabina commented Jun 29, 2021

I guess this is fixed.
Latest version 3.0.0 (5feb7e4) 18:51, 21. Jun. 2021 is working for me in 1.35

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

3 participants