Page MenuHomeMiraheze

SMW extensions
Open, LowPublic

Description

Wiki URLFractured

Hello,
I would like to request these extensions to be installed on Fractured wiki:
Semantic Form Select
Semantic Glossary
Semantic Result Formats
Thank you,
Gor

Event Timeline

Hi, we have taken note of your request to install a new extension, however for security reasons Miraheze reviews all new extensions to make sure that they are secure for use, so this will have to be done first.

Unknown Object (User) moved this task from Backlog to Security Review Needed on the Extensions board.Jun 10 2022, 04:51
Unknown Object (User) moved this task from Backlog to Short Term on the MediaWiki (SRE) board.
Unknown Object (User) added a subscriber: Routhwick.
Unknown Object (User) claimed this task.Sep 12 2022, 18:23

Semantic Result Formats is approved, will review others shortly

Unknown Object (User) added a comment.Sep 12 2022, 19:02
  • Semantic Result Formats does not work: Fatal error: Cannot redeclare smwfContLang() (previously declared in /srv/mediawiki/w/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/includes/GlobalFunctions.php:28) in /srv/mediawiki/w/extensions/SemanticMediaWiki/includes/GlobalFunctions.php on line 27

I believe this is caused by an incompatibility with how composer is needed to be installed for the extension, which is incompatible with our setup of submodules.

Unfortunately, because of that, that extension can not be done.

All 3 extensions are approved, but also an issue with SemanticGlossary, which is again caused by incompatibilities with our composer setup.

  • Error: Class 'SG\HookRegistry' not found

However, Semantic Forms Select does appear to work, so that can be approved/installed.

I may look into adjusting our composer setup eventually to support those other type of extensions, but for now they can not be installed. I apologise for the inconvenience.

Unknown Object (User) moved this task from Unsorted to Short Term on the Universal Omega board.Sep 12 2022, 19:15
Unknown Object (User) updated the task description. (Show Details)
In T9287#197042, @Universal_Omega wrote:
  • Semantic Result Formats does not work: Fatal error: Cannot redeclare smwfContLang() (previously declared in /srv/mediawiki/w/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/includes/GlobalFunctions.php:28) in /srv/mediawiki/w/extensions/SemanticMediaWiki/includes/GlobalFunctions.php on line 27

I believe this is caused by an incompatibility with how composer is needed to be installed for the extension, which is incompatible with our setup of submodules.

Maybe this Hostinger support page has just the tip for how to fix it (but we can't quite be so sure yet):

This point can be fixed easily by using include_once instead of include when including your PHP file.

Unknown Object (User) added a comment.Sep 12 2022, 21:21
In T9287#197042, @Universal_Omega wrote:
  • Semantic Result Formats does not work: Fatal error: Cannot redeclare smwfContLang() (previously declared in /srv/mediawiki/w/extensions/SemanticResultFormats/extensions/SemanticMediaWiki/includes/GlobalFunctions.php:28) in /srv/mediawiki/w/extensions/SemanticMediaWiki/includes/GlobalFunctions.php on line 27

I believe this is caused by an incompatibility with how composer is needed to be installed for the extension, which is incompatible with our setup of submodules.

Maybe this Hostinger support page has just the tip for how to fix it (but we can't quite be so sure yet):

This point can be fixed easily by using include_once instead of include when including your PHP file.

The submodules way we install extensions mean we can not edit extensions, the way MediaWiki also works, prevents us from modifying the way things load, so in this case, that will not work. The issue is because SMW is installed via submodule, but the extension tries to re-install and include it via composer, which leads to files being double loaded and thus not working.

Unknown Object (User) closed this task as Resolved.Sep 12 2022, 22:05

Semantic Form Select is now available in Special:ManageWiki/extensions#mw-section-other

As for Semantic Result Formats, customising it for Miraheze seems like the only viable alternative left, I assume.

To @Universal_Omega: After nearly a month's delay, I have brought the SRF issue here to the SMW team's attention at GitHub. Sitting back and waiting on further developments.

Reopening thanks to feedback from earlier this week by Jeroen De Dauw (re: SRF; via Y! Mail):

Perhaps they [Miraheze] can work around the issue by telling Composer that SMW is already installed. That said, installing the dependencies of MediaWiki and extensions independently with Composer is not safe. Composer is supposed to know about all dependencies and only install a single copy of each.

Unknown Object (User) removed Unknown Object (User) as the assignee of this task.Mar 18 2023, 03:30
Unknown Object (User) removed a project: Universal Omega.
Unknown Object (User) removed a subscriber: Unknown Object (User).
BrandonWM lowered the priority of this task from Normal to Low.Apr 29 2023, 23:36

Seemingly it would have to be configured for Miraheze, per earlier comments, so lowering priority to low.