SemanticMediaWiki / SemanticGlossary

Allows you define terms and abbreviations together with a definition.
https://www.mediawiki.org/wiki/Extension:Semantic_Glossary
Other
13 stars 12 forks source link

[MW 1.31] Call to undefined function SG\wfProfileIn() #41

Closed gesinn-it-gea closed 5 years ago

gesinn-it-gea commented 6 years ago

Setup and configuration

Issue

Produces a [stack trace] and outputs:

[26ede58529768eca57968c9f] /wiki01/index.php/Main_Page Error from line 58 of /var/www/wikis/wiki01/extensions/SemanticGlossary/src/LingoBackendAdapter.php: Call to undefined function SG\wfProfileIn()

Backtrace:

#0 /var/www/wikis/wiki01/extensions/Lingo/src/LingoParser.php(191): SG\LingoBackendAdapter->next()
#1 /var/www/wikis/wiki01/extensions/Lingo/src/LingoParser.php(163): Lingo\LingoParser->buildLingo()
#2 /var/www/wikis/wiki01/extensions/Lingo/src/LingoParser.php(223): Lingo\LingoParser->getLingoTree()
#3 /var/www/wikis/wiki01/extensions/Lingo/src/LingoParser.php(80): Lingo\LingoParser->realParse(Parser, string)
#4 /var/www/wikis/wiki01/includes/Hooks.php(177): Lingo\LingoParser->parse(Parser, string, StripState)

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

Happens when opening any page in the wiki.

s7eph4n commented 6 years ago

It should be safe to just delete any calls to wfProfileIn.

s7eph4n commented 6 years ago

Fixed in 2fad044e20ce7fc

Guess I should make a release.

gesinn-it-gea commented 6 years ago

...cool! Should the new release also require Lingo 3.x?

s7eph4n commented 6 years ago

For the moment I don't see the need. You can use Lingo 3.0, but 2.x should also still work and might be preferred by some.

hermannschwaerzlerUIBK commented 5 years ago

This issue can be closed, can't it? The relevant fix is part of master and all releases since quite some time...

s7eph4n commented 5 years ago

Good point. Thanks!