Topic on Extension talk:Semantic Forms Select

This version of SemanticFormsSelect is only compatible with Semantic Forms 2.8 or above

13
RacingRalf (talkcontribs)

Tried to install SFS using composer and got the error message above.

MediaWiki 1.27.0-rc.0

PHP 5.6.21

Semantic Forms 3.6

Installed Semantic Media Wiki and Semantic Forms using composer too. But somehow SFS doesn't detect them.

Am I doing something wrong?

MWJames (talkcontribs)
Kghbln (talkcontribs)

Try to switch to "@dev"

"mediawiki/semantic-media-wiki": "@dev",

"mediawiki/semantic-forms": "@dev",

"mediawiki/semantic-forms-select": "@dev",

I have this working on a MW 1.25 but I remember to know that things may break starting with MW 1.26 due to the new fancy extension loading mechanism. I will soon find out when switching the wiki to MW 1.27.

Another approach may be to install Semantic Forms not via Composer but in the classic manner by cloning and invoking manually.

RacingRalf (talkcontribs)

No change. Still the same error message. No matter, what I do.

Kghbln (talkcontribs)

Ouch, I will most probably run into the same issue, presumably on Saturday. So my fears will probably come true. Will open an issue for this. Pls ping me if I forget to do it.

Nicolas NALLET (talkcontribs)

Same error with MW 1.27 and SF 3.6

But works with MW 1.26.2 and SF 3.6

Nicolas NALLET (talkcontribs)

I think SFS is not compatible with MW 1.27 whatever the version of SF and the installation type (with composer or manually)

Seb35 (talkcontribs)

@Kghbln @Nicolas NALLET: I was able to install it on 1.27 and 1.28 almost like said Kghbln but with an additionnal step. It works directly with @dev version on MediaWiki 1.29-alpha. Also, note SemanticFormsSelect version master (composer "*@dev") is no longer advertising itself in Special:Version, so you have to try in a form if it works and/or add some lines $wgExtensionCredits in SemanticFormsSelect.php.

0. you must have Git installed.
1. In composer.json:

"mediawiki/semantic-forms": "*@dev",
"mediawiki/semantic-forms-select": "*@dev",

2. In command line:

composer update --no-dev
cd extensions/SemanticForms
git checkout 6c8d929

OR

1. In composer.json:

"mediawiki/semantic-forms": "3.6",
"mediawiki/open-layers": "*@dev",
"mediawiki/semantic-forms-select": "*@dev",

2. In command line:

composer update --no-dev

Rationale:

  • MediaWiki 1.27 and 1.28 don’t support the extension.json version 2 introduced after SF 3.6, so any version of SemanticForms greater than 6c8d929 (and 3.7 is greater) will not work on these MediaWiki version (at least not until there is no backport to read extension.json version 2, and I expect there will be one, else it will be a long time until the next LTS 1.31)
  • with SemanticFormsSelect current stable (1.3) loaded with require_once (because no extension.json) expects to find a constant defined by SemanticForms (SF_VERSION) when require_once is executed, BUT SemanticForms is now loaded with wfLoadExtension, so it only define this constant after SemanticFormsSelect has executed its require_once => QED, it is mandatory to use master version (composer "*@dev") of SemanticFormsSelect with MediaWiki 1.27 and 1.28

On a side note, be warn about the loading mechanisms when extensions require other extensions:

if (B requires A) and (A is loaded with wfLoadExtension) and (B is loaded with require_once) and (B checks at loading time there is A) => will not work

btw I begin to be tired of these explosive mixes between Composer, require_once, wfLoadExtension v1, wfLoadExtension v2, and extensions checking too early other extensions.

Nicolas NALLET (talkcontribs)

Thank you Seb, I tell that to the extension creator : @Toniher

Kghbln (talkcontribs)
Seb35 (talkcontribs)

@Kghbln: I’ve just tested with MW 1.27 and 1.28, it works with:

 "mediawiki/page-forms": "*",
 "mediawiki/semantic-forms-select": "*@dev",

Just don’t forget to now activate PageForms with wfLoadExtension.

Kghbln (talkcontribs)

@Seb35 Thanks a lot for reporting back. Now that the extension is installed does it do its job? A worrisome issue was reported for it.

Seb35 (talkcontribs)

Fixed for the issue Kghbln spoke just above.

Reply to "This version of SemanticFormsSelect is only compatible with Semantic Forms 2.8 or above"