Jump to content

Topic on Extension talk:IframeTag

Is this extension compatible with MW 1.38-1.39?

2
Pspviwki (talkcontribs)

Is this extension compatible with MW 1.38-1.39? I run tests of this extension on 1.38.2 and get MediaWiki internal error: Error: Class 'NicheWork\MW\Tag' not found.

Seb35 (talkcontribs)

Ah! I was wondering why it was marked as non-compatible since I installed it on MediaWiki 1.40 with only a minor change (I used third method below).

This missing class is because this extension requires the Composer library nichework/tag-builder. This extension can be installed with one of these 3 ways:

  1. install the MediaWiki extension IframeTag with Composer (this should work but there are various opinions about its support in MediaWiki), this will automatically install the required library;
  2. add the extension’s composer.json in the global MediaWiki’s composer.json (or global MediaWiki’s composer.local.json), in the section extra.merge-plugin.include (see Composer#Using_composer-merge-plugin): after running composer update --no-dev in the root MediaWiki directory, the library required by this extension will be available;
  3. execute composer update --no-dev in the extension directory + add the patch below
diff --git a/extension.json b/extension.json
index 022ac1f..7b97a29 100644
--- a/extension.json
+++ b/extension.json
@@ -40,4 +40,5 @@
 		}
 	},
+	"load_composer_autoloader": true,
 	"manifest_version": 2
 }

Hence, except the minor change for the third method, it is compatible with MediaWiki 1.38–1.40, but more importantly it lacks installation instructions.

Reply to "Is this extension compatible with MW 1.38-1.39?"