Jump to content

Extension talk:StructuredDiscussions/2014

Add topic
From mediawiki.org
Note: this talk page is not using Flow, it is using LiquidThreads, an earlier discussion system. Flow is enabled on other pages on www.mediawiki.org, see Flow/Interactive prototype.

Errors, just trying it out

[edit]
Just trying to install on a clean 1.23wmf14+ (A git master from Feb27th)
I have this error.
[cce633e8] 2014-02-28 06:43:02: Fatal exception of type Flow\Exception\InvalidInputException
Notice: Uncommitted DB writes (transaction from DatabaseBase::query (LCStoreDB::get)). in /home/kidsopen/public_html/wiki/includes/db/Database.php on line 4118
I know it's still early but I thought I'd try. :) MarkJurgens (talk) 06:50, 28 February 2014 (UTC)Reply
You have to run maintenance/update.php before using this extension. SeanFoe (talk) 08:44, 15 March 2014 (UTC)Reply
Tried it again. Fresh Install from Master 1.23, installed the Flow extension at the same time, no errors on the install.
On discussion page load, I got:
Invalid value was provided for loading flow content.
Return to Main Page.
[a77b3b08] /core5/index.php?title=User_talk:MarkJurgens Exception from line 166 of /home/wiki/public_html/core5/extensions/Flow/includes/WorkflowLoader.php: Unknown flow type 'discussion' requested
Backtrace:
  1. 0 /home/wiki/public_html/core5/extensions/Flow/includes/WorkflowLoader.php(111): Flow\WorkflowLoader->loadDefinition()
  2. 1 /home/wiki/public_html/core5/extensions/Flow/includes/WorkflowLoader.php(85): Flow\WorkflowLoader->loadWorkflow(Title)
  3. 2 /home/wiki/public_html/core5/extensions/Flow/includes/WorkflowLoader.php(344): Flow\WorkflowLoader->__construct(Title, NULL, boolean, Flow\DbFactory, Flow\Data\LocalBufferedCache, Flow\Data\ManagerGroup, Flow\Data\RootPostLoader, Flow\NotificationController)
  4. 3 /home/wiki/public_html/core5/extensions/Flow/Hooks.php(194): Flow\WorkflowLoaderFactory->createWorkflowLoader(Title, NULL)
  5. 4 [internal function]: FlowHooks::onPerformAction(OutputPage, Article, Title, User, WebRequest, MediaWiki)
  6. 5 /home/wiki/public_html/core5/includes/Hooks.php(206): call_user_func_array(string, array)
  7. 6 /home/wiki/public_html/core5/includes/GlobalFunctions.php(4011): Hooks::run(string, array, NULL)
  8. 7 /home/wiki/public_html/core5/includes/Wiki.php(410): wfRunHooks(string, array)
  9. 8 /home/wiki/public_html/core5/includes/Wiki.php(292): MediaWiki->performAction(Article, Title)
  10. 9 /home/wiki/public_html/core5/includes/Wiki.php(588): MediaWiki->performRequest()
  11. 10 /home/wiki/public_html/core5/includes/Wiki.php(447): MediaWiki->main()
  12. 11 /home/wiki/public_html/core5/index.php(49): MediaWiki->run()
  13. 12 {main} Mark Jurgens 06:06, 17 March 2014 (UTC)
I have installed Flow on a fresh 1.23wmf18 and it works using flow 1.23wmf18
The main trouble is when you try to use flow for the first time on a given page it doesn't work and you have to modify the URL to something like www.example.org/wiki/User_talk:MarkJurgens SeanFoe (talk) 11:39, 20 March 2014 (UTC)Reply
Thanks for the reply Sean, but I still can't make it work.
Anyone want to help me by installing it for me? I'd like to use it with my grade 2/3 class.
I'm also trying to get Visual Editor to work, can't do it.
I just need someone else to do it. I'm a front-end designer, not a backend guy. MarkJurgens (talk) 16:38, 20 March 2014 (UTC)Reply
Mark, Flow adds the "discussion" workflow at setup time. It should happen the first time you run maintenance/update.php after adding Flow, it adds the Flow database tables and runs 'FlowInsertDefaultDefinitions'. So run that as SeanFoe suggested.
One problem is if Flow install goes wrong, MediaWiki can think that this step completed (the step is recorded in the table 'updatelog'), so you get
...Update 'FlowInsertDefaultDefinitions' already logged as completed
If you have some kind of mysql inspection tool (e.g. mysql -u root mywikidb),
mysql> select * from flow_definition;
should show two definitions,for "topic" and "discussion". If it complains the table doesn't exist, then you need to rerun update.php; if it doesn't find anything, you can follow EBernhardson's instructions below to delete this:
mysql> DELETE FROM updatelog WHERE ul_key = 'FlowInsertDefaultDefinition' LIMIT 1';
then rerun update.php
In general, if you have developer problems, we're in the (poorly-named) #wikimedia-corefeatures connect. S Page (WMF) (talk) 20:58, 21 March 2014 (UTC)Reply
Hi ! I was also stuck with the Unknown flow type 'discussion' requested Backtrace. After some time, i tried at least with :
  • MW versions (2.22, 2.23),
  • Flow versions (Master, REL_1.22, REL_1.23)
  • Different configurations (with/without visualEditor, with/without Echo, with differents namespaces, ...)
All seems fine but responses with an error. In my LocalSettings.php, i change :
$wgEnableParserCache = true;
$wgMainCacheType = CACHE_DB;
to
$wgEnableParserCache = true;
// $wgMainCacheType = CACHE_DB;
And... It appears to work Oo'
The update.php run without problem and i can access Talk pages (NS_TALK). It display some input boxes and elements. But when i click the button to post a subject, it trhow me that :
Une valeur non valide a été fournie lors du chargement du contenu du flux.
[edaeaea2] /wiki/index.php?title=Discussion:Agentivit%C3%A9&workflow=ruw4yp3yjq5vhry4&action=new-topic Exception from line 135 of C:\wamp\www\wiki\extensions\Flow\includes\WorkflowLoader.php: Invalid workflow requested by id
Backtrace:
#0 C:\wamp\www\wiki\extensions\Flow\includes\WorkflowLoader.php(84): Flow\WorkflowLoader->loadWorkflowById(Title, Flow\Model\UUID)
#1 C:\wamp\www\wiki\extensions\Flow\includes\WorkflowLoader.php(346): Flow\WorkflowLoader->__construct(Title, Flow\Model\UUID, boolean, Flow\DbFactory, Flow\Data\LocalBufferedCache, Flow\Data\ManagerGroup, Flow\Data\RootPostLoader, Flow\NotificationController)
#2 C:\wamp\www\wiki\extensions\Flow\Hooks.php(268): Flow\WorkflowLoaderFactory->createWorkflowLoader(Title, Flow\Model\UUID)
#3 [internal function]: FlowHooks::onPerformAction(OutputPage, Article, Title, User, WebRequest, MediaWiki)
#4 C:\wamp\www\wiki\includes\Hooks.php(199): call_user_func_array(string, array)
#5 C:\wamp\www\wiki\includes\GlobalFunctions.php(3877): Hooks::run(string, array)
#6 C:\wamp\www\wiki\includes\Wiki.php(430): wfRunHooks(string, array)
#7 C:\wamp\www\wiki\includes\Wiki.php(312): MediaWiki->performAction(Article, Title)
#8 C:\wamp\www\wiki\includes\Wiki.php(602): MediaWiki->performRequest()
#9 C:\wamp\www\wiki\includes\Wiki.php(467): MediaWiki->main()
#10 C:\wamp\www\wiki\index.php(49): MediaWiki->run()
#11 {main}
Here is the line 135 of Workflowloader.php, where it seems to be a bug with $workflow (but how? why? (need help)) :
protected function loadWorkflowById( /* Title or false */ $title, $workflowId ) {
$workflow = $this->storage->getStorage( 'Workflow' )->get( $workflowId );
if ( !$workflow ) {
throw new InvalidInputException( 'Invalid workflow requested by id', 'invalid-input' );
} 4rkiel 12:29, 17 May 2014 (UTC)Reply
Hi,
You've uncovered some bugs there!
The first one: CACHE_DB causes some issues.
Apparantly, there's a small discrepancy in how SqlBagOStuff (SQL-based cache) returns cache misses, compared to other cache types.
I've filed bug https://bugzilla.wikimedia.org/show_bug.cgi?id=65637
Fix should be at https://gerrit.wikimedia.org/r/134820
The second: you seem to be running with javascript disabled (or something preventing it from being executed). Apparently, we've broken our no-js pretty bad and it's now impossible to submit new topics/replies without JS.
I've filed bug https://bugzilla.wikimedia.org/show_bug.cgi?id=65639
There's a couple of fixes, at: https://gerrit.wikimedia.org/r/134825, https://gerrit.wikimedia.org/r/134831, https://gerrit.wikimedia.org/r/134832
I still have to figure out if there are other actions that are now broken without JS; the above patches should fix create-topic & reply.
Once the patches I've linked to have been merged, these issues should be fixed. Or you can cherry-pick the to your local setup.
Thanks for the help! Mlitn (talk) 15:28, 22 May 2014 (UTC)Reply
Would mathematics like following work on Flow comments/replies?
<math>\alpha+\beta=\gamma</math> 208.71.159.10 (talk) 18:42, 7 February 2017 (UTC)Reply
Of course I am assuming mathematics work on the rest of the wiki. TitusiMW (talk) 18:47, 7 February 2017 (UTC)Reply

Flow stuck in loading

[edit]
Installed flow on a MediaWiki v1.22. Ran the updates script and had no errors.
However, when I try to a header or message, nothing happens. A spinning loading icon appears, but nothing ever loads. Is there something obvious that I forgot to configure? Wolftyler (talk) 16:54, 10 April 2014 (UTC)Reply
Have you tried looking at the browser console/dev tools? Ricordisamoa 09:25, 12 April 2014 (UTC)Reply
Didn't see much in the browser console. Looks like I am getting this error "Fatal exception of type MWException". Wolftyler (talk) 16:27, 14 April 2014 (UTC)Reply
Hi, u resolved your problem? Because i have the same on 1.26
I am using parsoid on shared hosting (heroku). Parsoid works perfectly (Visual Editor is working).
bit.ly/1pLt7sb NH35 (talk) 14:33, 16 March 2016 (UTC)Reply

Error replying to a user whose user page is a soft redirect.

[edit]
bug 65093, fixed.

this may be a fluke, and unrelated to the "soft redirect", but maybe not: i tried to comment on [1], by pressing "reply".

after writing my response i pressed "reply", and received the following message in red:

=========== message start ==========

An error occurred. The error message received was: Exception Caught: Attempted to compact row containing objects, must be scalar values: Flow\Model\UUID Object ( [binaryValue:protected] => ��EJ����� � [hexValue:protected] => 0517454aa98b1da9060a0e [alphadecimalValue:protected] => ru7lut84ni79e2oe [timestamp:protected] => )

========== message end ==============

when i removed the user name of the person i was replying to ( Pyb ), i could save my response. this was reproducible (3 times, i think).

peace. קיפודנחש (talk) 23:36, 9 May 2014 (UTC)Reply

That was bugzilla:65093 - it's been patched, though I'm not sure if the patch is live now, or on Thursday. Thanks for the bug report. Quiddity (WMF) (talk) 23:18, 13 May 2014 (UTC)Reply

Appearance on WM 1.22 (css error ? )

[edit]

The extension doesn't look good on my local wikimedia 1.22. I am a developer and I feel like I have downloaded a wrong version.

Attached is the screenshot of Flow from Download Extension Distributor 1.22

I have tried the one from Git clone but it requires Mantle (then even with Mantle it gave many weird errors).

Any idea for me ? Phuyem (talk) 18:43, 6 July 2014 (UTC)Reply

I'm afraid Flow only supports mw1.24+ according to the extension page. :( Quiddity (WMF) (talk) 18:04, 21 July 2014 (UTC)Reply

Uncommitted DB changes being unfixed by update.php

[edit]

I have enabled Flow on NS_TALK and NS_USER_TALK on my local MW 1.23 instance. I'm also running BetaFeatures with Winter, Mantle, Flow, Thanks, and Echo. It seems that when I go to any of the pages that I enabled Flow on, I get [323774ff] 2014-07-18 02:39:30: Fatal exception of type Flow\Exception\InvalidInputException as well as Notice: Uncommitted DB writes (transaction from DatabaseBase::query (LCStoreDB::get)). in /home/wiki24x1/public_html/testing/includes/db/Database.php on line 4147. I have run the update script a few times, I have looked in flow_definition and it returns zero rows, and I have tried deleting the updatelog entry (which didn't exist). Any ideas? Thanks, -24Talk 02:49, 18 July 2014 (UTC)Reply

I asked a dev, who says: "uncommited db writes is a core problem - bugzilla:56269 - basically ... several parts of the program act like they own the database connection when instead they are sharing one, and it causes issues"
Hope that helps. :) Quiddity (WMF) (talk) 18:00, 21 July 2014 (UTC)Reply
I'm experiencing that bug '[bbf05805] 2014-11-19 08:40:58: Fatal exception of type Flow\Exception\InvalidInputException' too with the exact same extensions except Winter. Any solution to this bug is appreciated. Jorgejavieran (talk) 08:43, 19 November 2014 (UTC)Reply
I too am getting an error. Not when posting replies, but only when trying to edit the header for a Talk: page
Exception Caught: Invalid workflow requested by id
MediaWiki 1.25alpha (1.25wmf5), PHP 5.4.16, Flow ~ master from around Nov 5th Ckoerner (talk) 18:13, 24 November 2014 (UTC)Reply
Just updated Flow to master as of this date and I'm still getting the error. Ckoerner (talk) 18:40, 24 November 2014 (UTC)Reply
User:Ckoerner, unless you're seeing this error in conjunction with "Uncommitted DB changes", please file a separate bug or create a separate thread.
Can you enable logging and look for the exception in a log that gives more details?
And/or, in your browser console look at the Net tab and the error from the server may have more information in it. It sounds like Flow can't access the workflow object that it thinks corresponds to the Flow board. Does this happen when you try to edit the header of all Flow boards? SPage (WMF) (talk) 02:55, 26 November 2014 (UTC)Reply
Sorry, User:SPage (WMF), I didn't intend to piggyback on the originally posted issue.
I can edit the header for other Flow enabled Talk pages. Interesting.
The page that is giving me issues appears to time out when connecting to the API. Here's a screenshot. Note that the error is different "An error occurred while contacting the server." appears the first time I attempt to save. On subsequent clicks of the 'Save header' button I receive the message I mentioned above.
http://i.imgur.com/JkAspdm.png
Is this something I can fix in the DB or by re-creating the page somehow? Ckoerner (talk) 22:22, 1 December 2014 (UTC)Reply

Invalid workflow

[edit]

Hi,

I installed Flow on a fresh wiki, defined $wgFlowOccupyPages and ran update.php.

If I try to create a topic, I get an error: "Exception Caught: Invalid workflow: s1tqx36kfotqbxbe".

Did I miss anything in the configuration or is it a bug? Amir E. Aharoni (talk) 13:16, 6 September 2014 (UTC)Reply

This is very likely related to this bug: https://bugzilla.wikimedia.org/show_bug.cgi?id=70148
Try setting up parsoid and use html as default storage format Bsitu (talk) 20:01, 9 September 2014 (UTC)Reply