Topic on Extension talk:Semantic Glossary

Error trying to get Semantic Glossary working

4
Kriegfrj (talkcontribs)

I have been trying unsuccessfully to get Semantic Glossary to work and I've been having issues. Whenever I enable it in LocalSettings.php I get the following error in the php log:

PHP Fatal error:  Call to a member function getValueFormatter() on null in C:\inetpub\wwwroot\w\extensions\SemanticMediaWiki\includes\datavalues\SMW_DV_String.php on line 74

I was wondering if anyone had come across this and/or had a fix for it?

Version info:

Component Version
MediaWiki 1.28.1
SMW 2.5.2
Semantic Result Formats 2.5.0
Semantic Cite 1.3.0
Semantic Breadcrumb Links 1.3.1
DisplayTitle 1.2
Semantic Glossary 2.0

Plus various other extensions that I am not sure whether or not they are causing problems.

F.trott (talkcontribs)

Try upgrading to latest version, please.

Kriegfrj (talkcontribs)

Well, whaddaya know. I thought I was already at the latest version (I normally check that before posting for help), but it turns out I had a typo in my composer.local.json, specifying version 2.0 of SG rather than ~2.0. When I fixed it and ran composer it upgraded to 2.2.0 - and the problem seems to have resolved itself.

Thank you for your help, F.trott - to be honest, I'm a bit embarrassed that the solution turned out to be so trivial. At least it wasn't as simple as rebooting the web server. :)

F.trott (talkcontribs)

:D

Reply to "Error trying to get Semantic Glossary working"