Extension talk:StructuredDiscussions

About this board

Any questions about the StructuredDiscussions extension.

How to disable the extension on a namespace

2A02:8071:BCA:6E00:5405:D51E:1840:5627 (talkcontribs)
Reply to "How to disable the extension on a namespace"

Prevent editing of "About this board" description

3 (talkcontribs)

Hello, please tell me how to prevent registered users from changing the description of "About this board"?

Jackmcbarn (talkcontribs)

For a single board in particular, or for every board? (talkcontribs)

I would like to close the description editing for all boards, since users often create not a new topic, but edit the board description and want to get an answer ...

Reply to "Prevent editing of "About this board" description"
Amire80 (talkcontribs)


Is the LiquidThreads conversion tool known to be functional?

The documentation at Flow/Converting LiquidThreads looks patchy, and the people who were involved in writing it are, unfortunately, not around.

Jdforrester (WMF) (talkcontribs)

It's known to have issues (which is why LQT is still installed on the Foundation's servers).

Reply to "LiquidThreads conversion"

FlowMention is not working on my private Wiki

2 (talkcontribs)

This might be because my "Template:FlowMentions" is empty. Can anyone help me out? (talkcontribs)

Nevermind, I managed to make it work by changing the content of my "Template:FlowMention" to "@[[User:{{{1}}}|{{{1}}}]]"

Class 'Pimple\Container' not found

Shirayuki (talkcontribs)

'composer update --no-dev' worked successfully. But 'php update.php' failed with error message:

Error from line 5 of D:\xampp\htdocs\mediawiki\extensions\Flow\includes\Container.php: Class 'Pimple\Container' not found
  • MediaWiki master branch
  • PHP 7.4.3
Shirayuki (talkcontribs)

Extension:StructuredDiscussions says "You also need to run the command "composer update --no-dev" from the command line, on the folder where MediaWiki is installed, even if you don't download from git.", but it seems to be wrong.

Ciencia Al Poder (talkcontribs)

I think that's wrong, composer update --no-dev should be run on the folder where the extension is installed (extensions\Flow)

Reply to "Class 'Pimple\Container' not found"

New install - almost new MediaWiki - Class 'Pimple\Container' not found

Summary by Tacsipacsi

You should install and run Composer first.

2605:6000:1025:883:8D5E:A5D3:192D:CD5F (talkcontribs)

Hi everyone, I'm trying to install StructuredDiscussions on a basically brand new 1.32 MediaWiki instance and receiving the following error:

Command 'php update.php'

failed with return code 255 and error message

PHP Fatal error: Class 'Pimple\Container' not found in

.../extensions/Flow/includes/Container.php on line 5

I've tried running composure update in my root MediaWiki folder, Flow extension folder, etc. as I've seen online and it returns composer command not found.

Do I need to run populateContentModel.php and $wgNamespaceContentModels[namespace] before trying to enable Flow?

2605:6000:1025:883:8D5E:A5D3:192D:CD5F (talkcontribs)
Catrope (talkcontribs)

If "composer update" says "composer command not found", you will need to install composer. See installation instructions here.

Structured Discussions in MobileFrontend without Visual Editor

3 (talkcontribs)

How do I make the StructuredDiscussions extension work in MobileFrontend if I do not want to install VisualEditor? The problem is the ability to leave a comment in the thread ...

Catrope (talkcontribs)

Thanks for reporting this bug! This is now fixed in the latest version of Structured Discussions. If you don't want to upgrade, you can also fix it yourself, by editing includes/Hooks.php in the StructuredDiscussion extension and changing:

$resourceLoader->register( 'ext.visualEditor.supportCheck', [] );


$resourceLoader->register( 'ext.visualEditor.supportCheck', [ 'targets' => [ 'desktop', 'mobile' ] ] ); (talkcontribs)

Thank you so much, I followed the recommendations and everything works fine. Thanks again!

Reply to "Structured Discussions in MobileFrontend without Visual Editor"
Jidanni (talkcontribs)

Add removal instructions, and how to restore your wiki to pre-installation state.

Jidanni (talkcontribs)
Reply to "Removal instructions"

Refreshlinks crashes on Topic pages after upgrade MW from 31.x to 34.x

Summary by Revansx

turns out i failed to implement custom namespaces in LocalSettings. I decided I didn't want them or the few pages in them anymore and thought it would be ok to just comment them out. I was for the most part, however, refreshLinks was trying to refresh the talk pages that had no active namespace and that is what was crashing it. I have reenabled my custom namespaces and refreshLinks is running without errors. Hope this helps someone.

Revansx (talkcontribs)
MediaWiki 1.34.1 (d07521a)
PHP 7.2.30 (apache2handler)
MariaDB 5.5.65-MariaDB
ICU 50.2
Echo – (bf9195d) 10:52, 6 April 2020
Flow 1.1.1 (5a1c2eb) 19:38, 17 April 2020

When I run:

sudo php /opt/htdocs/mediawiki/maintenance/refreshLinks.php 1080 --e 1087

I get the following error:

$ sudo php /opt/htdocs/mediawiki/maintenance/refreshLinks.php 1080 --e 1087
Refreshing redirects table.
Starting from page_id 1080 of 1087.
Refreshing links tables.
Starting from page_id 1080 of 1087.
[112ae3971d7874e72cbfe77f] [no req]   TypeError from line 26 of /opt/htdocs/mediawiki/extensions/Flow/includes/Model/WikiReference.php: Argument 8 passed to Flow\Model\WikiReference::__construct() must be an instance of Title, null given, called in /opt/htdocs/mediawiki/extensions/Flow/includes/Model/WikiReference.php on line 81
#0 /opt/htdocs/mediawiki/extensions/Flow/includes/Model/WikiReference.php(81): Flow\Model\WikiReference->__construct(Flow\Model\UUID, string, Flow\Model\UUID, Title, string, Flow\Model\UUID, string, NULL)
#1 /opt/htdocs/mediawiki/extensions/Flow/includes/Data/Mapper/BasicObjectMapper.php(38): Flow\Model\WikiReference::fromStorageRow(array, NULL)
#2 /opt/htdocs/mediawiki/extensions/Flow/includes/Data/ObjectLocator.php(315): Flow\Data\Mapper\BasicObjectMapper->fromStorageRow(array)
#3 /opt/htdocs/mediawiki/extensions/Flow/includes/Data/ObjectManager.php(307): Flow\Data\ObjectLocator->load(array)
#4 /opt/htdocs/mediawiki/extensions/Flow/includes/Data/ObjectLocator.php(119): Flow\Data\ObjectManager->load(array)
#5 /opt/htdocs/mediawiki/extensions/Flow/includes/Data/ObjectLocator.php(70): Flow\Data\ObjectLocator->findMulti(array, array)
#6 /opt/htdocs/mediawiki/extensions/Flow/includes/Data/ManagerGroup.php(127): Flow\Data\ObjectLocator->find(array)
#7 /opt/htdocs/mediawiki/extensions/Flow/includes/Data/ManagerGroup.php(139): Flow\Data\ManagerGroup->call(string, array)
#8 /opt/htdocs/mediawiki/extensions/Flow/includes/LinksTableUpdater.php(121): Flow\Data\ManagerGroup->find(string, array)
#9 /opt/htdocs/mediawiki/extensions/Flow/includes/LinksTableUpdater.php(50): Flow\LinksTableUpdater->getReferencesForTitle(Title)
#10 /opt/htdocs/mediawiki/extensions/Flow/includes/Content/BoardContent.php(195): Flow\LinksTableUpdater->mutateParserOutput(Title, ParserOutput)
#11 /opt/htdocs/mediawiki/includes/Revision/RenderedRevision.php(267): Flow\Content\BoardContent->getParserOutput(Title, integer, ParserOptions, boolean)
#12 /opt/htdocs/mediawiki/includes/Revision/RenderedRevision.php(236): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(Flow\Content\BoardContent, boolean)
#13 /opt/htdocs/mediawiki/includes/Revision/RevisionRenderer.php(215): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)
#14 /opt/htdocs/mediawiki/includes/Revision/RevisionRenderer.php(152): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)
#15 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
#16 /opt/htdocs/mediawiki/includes/Revision/RenderedRevision.php(198): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
#17 /opt/htdocs/mediawiki/includes/Storage/DerivedPageDataUpdater.php(1290): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#18 /opt/htdocs/mediawiki/includes/Storage/DerivedPageDataUpdater.php(1312): MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput()
#19 /opt/htdocs/mediawiki/includes/Storage/DerivedPageDataUpdater.php(1606): MediaWiki\Storage\DerivedPageDataUpdater->getSecondaryDataUpdates(boolean)
#20 /opt/htdocs/mediawiki/includes/page/WikiPage.php(2145): MediaWiki\Storage\DerivedPageDataUpdater->doSecondaryDataUpdates(array)
#21 /opt/htdocs/mediawiki/maintenance/refreshLinks.php(276): WikiPage->doSecondaryDataUpdates(array)
#22 /opt/htdocs/mediawiki/maintenance/refreshLinks.php(199): RefreshLinks::fixLinksFromArticle(integer, boolean)
#23 /opt/htdocs/mediawiki/maintenance/refreshLinks.php(84): RefreshLinks->doRefreshLinks(integer, boolean, integer, boolean, boolean)
#24 /opt/htdocs/mediawiki/maintenance/doMaintenance.php(99): RefreshLinks->execute()
#25 /opt/htdocs/mediawiki/maintenance/refreshLinks.php(492): require_once(string)
#26 {main}

/mediawiki/maintenance/update.php runs without error

The Talk page works as expected.. it's just the refresh links that is failing.

Please advise. Ty

Msnhinet8 (talkcontribs)


how can i install Extension:StructuredDiscussions in my wiki?

i use host no vps.

TiltedCerebellum (talkcontribs)

Manual:Extensions#Installing an extension

If you don't have access to SSH you can download the extension, unpack it and upload the self named folder (usually inside the zip folder) into the "extensions" directory using FTP. Then you visit the extensions page and follow the instructions for what to add to you LocalSettings.php file. BUT be careful because flow can temporarily down your site if it the prerequisites are missing when you enable it in LocalSettings.php (removing or commenting out the line to activiate flow in LocalSettings can often get your site back up by disabling it again). It also requires mw-update to be run which causes changes to the database. If anything goes wrong it can mess up your database. You should always back up your database before installing extensions that make database changes in case anything goes wrong because without that it is unrecoverable (you might already know this).

Flow's prerequisites also need to be installed before trying to run flow. And FLOW does NOT appear to be compatible with Mediawiki 1.34.0 or 1.34.1 as it says it is, ssh in both versions spits out an error saying that it is only compatible with the next (not stable) version 1.35, though it works with 1.32 and 1.33.

Reply to "install"
Return to "StructuredDiscussions" page.