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

Broken extension (SG/Lingo?) #62

Closed
GunMan-fr opened this issue Jul 14, 2021 · 16 comments
Closed

Broken extension (SG/Lingo?) #62

GunMan-fr opened this issue Jul 14, 2021 · 16 comments

Comments

@GunMan-fr
Copy link

Setup and configuration

MediaWiki | 1.36.1
PHP | 7.4.15 (fpm-fcgi)
MySQL | 5.6.50-log
Semantic Glossary | 4.0.0
Semantic MediaWiki | 3.2.3
Lingo | 3.1.1

Issue

Trying desperately to setup SG/Lingo to create a working glossary for my wiki :) I've setup using Composer and the setup seems correct (no crash, no error). I can also confirm SMW is setup correctly.
I've tried to implement my glossary different ways - two found here : https://www.mediawiki.org/wiki/Topic:S6wfmfqxb8clhwag and by recreating the structure found on https://sandbox.semantic-mediawiki.org/wiki/Cat%C3%A9gorie:Semantic_Glossary_example
I had trouble identifying the correct way to achieve a working glossary with SMW and willing to contribute to the wiki pages once I find the right method.

Anyway, no tooltip is displayed. I don't know whether the problem comes from SG or Lingo. Looks like no tooltip is displayed on the sandbox example either.

@GunMan-fr
Copy link
Author

GunMan-fr commented Jul 18, 2021

@kghbln or anyone, please PM me if you want access to the wiki. Still trying to identify whether Semantic Glossary or Lingo fail or both, but as I'm new to SG/SMW/MW, debug is tedious :)

@krabina FYI

@kghbln
Copy link
Member

kghbln commented Jul 23, 2021

I am attending to the sandbox wiki and I also fail to get it to work. Not sure why. Apparently it works in some environments but not in all of them.

@krabina
Copy link
Contributor

krabina commented Aug 2, 2021

I don't know about MW 1.36, but according to #56 , the way to do it in MW 1.35 is:

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

and make sure to have at least PHP 7.3 (see #61)

@krabina
Copy link
Contributor

krabina commented Aug 2, 2021

you can see a working example here: https://testwiki2.kdz.eu

@WouterRademaker
Copy link
Contributor

MediaWiki | 1.36.1
PHP | 7.4.3 (fpm-fcgi)
MariaDB | 10.3.29-MariaDB-0ubuntu0.20.04.1
Semantic MediaWiki | 3.2.3
Semantic Glossary | 4.0.0
Lingo | 3.1.1

I probably have a related problem. For items added after the upgrade to MW 1.36, no property is created. And also no tooltip is displayed.

For example the items: ENMGV, KJB, LdH, OPV, SPL on https://nl.scoutwiki.org/Afkortingen

The last semantic edit is from before the upgrade to MW 1.36, but edits have been made after that time that should also be semantic.

https://nl.scoutwiki.org/index.php?title=Speciaal:Paginaeigenschap&limit=500&offset=0&from=Afkortingen&type=Heeft+subobject

Related to #63 ?

@krabina
Copy link
Contributor

krabina commented Aug 5, 2021

On your first link I can see working glossary items:
grafik

So did you figure it out?

@WouterRademaker
Copy link
Contributor

So did you figure it out?

No

https://nl.scoutwiki.org/index.php?title=Afkortingen&type=revision&diff=100312&oldid=97458

  • Items added on 2021-03-30 or before have a working glossary item.
  • Items added on 2021-07-16 or after don't have a working glossary item

A likely difference between the two groups is the upgrade to MW 1.36.

@krabina
Copy link
Contributor

krabina commented Aug 5, 2021

ah, yes. I see:
grafik

I have never used SG/Lingo with subobjects. Maybe it has to do with this? Can you try adding a SG entry on a regular test page and see if you get the same result.

@krabina
Copy link
Contributor

krabina commented Aug 5, 2021

I actually excpect this more to be a SMW issue. As the properties are not set, SG can of course not display anything.
https://nl.scoutwiki.org/index.php?title=Speciaal%3AOpEigenschapZoeken&property=Begrippenlijstbegrip&value=ENMGV

@WouterRademaker
Copy link
Contributor

WouterRademaker commented Aug 5, 2021

If you put this on a page, only property "heeft plaats" is set

*[[Glossary-Link::Test]]
*[[Glossary-Term::Test]]
*[[Glossary-Definition::Dit is een test]]
*[[heeft plaats::puk]]

https://nl.scoutwiki.org/Speciaal:Bekijken/:Test

If you put it in one "set" statement no properties are set.

{{#set:Glossary-Link=Test
|Glossary-Term=Test
|Glossary-Definition=Dit is een test
|heeft plaats=puk
}}

https://nl.scoutwiki.org/Speciaal:Bekijken/:Test1

@krabina
Copy link
Contributor

krabina commented Aug 5, 2021

This is bad. I added a __SHOWFACTBOX__ on the Test1 page.
Result: the fact box is showing the properties, but the Browse interface is not. I have never seen anything like this. Maybe a major bug of SMW in MW 1.36? I guess SMW is just not compatible with 1.36 yet: https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/docs/COMPATIBILITY.md

@krabina
Copy link
Contributor

krabina commented Aug 5, 2021

However, the regular property is set after all: https://nl.scoutwiki.org/index.php?title=Eigenschap%3AHeeft+plaats&limit=20&offset=0&filter=puk
So this might be related to the special properties of SG after all.

@GunMan-fr
Copy link
Author

Thanks for your inputs. I guess I'll wait for the official SMW compatibility and report back in a few weeks once it's out.

@kghbln
Copy link
Member

kghbln commented Oct 13, 2021

Another report of SG not working: https://www.mediawiki.org/wiki/Topic:Wic3dtzv79x894nd

@glenatron
Copy link

Do we know what the cause of the problem is here? Are MediaWiki 1.36 and SemanticMediaWiki simply incompatible somewhere?

@krabina
Copy link
Contributor

krabina commented Oct 22, 2021

SMW is not officially supporting 1.36 yet: https://www.semantic-mediawiki.org/wiki/Help:Compatibility

WouterRademaker added a commit to WouterRademaker/SemanticGlossary that referenced this issue Jan 20, 2022
change
             return wfMemcKey(.........);
to
                $cache = self::getCache();
                return  $cache->makeKey( ......... );
in SemanticGlossary/src/Cache/GlossaryCache.php
JeroenDeDauw added a commit that referenced this issue Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants