Extension talk:StructuredDiscussions/2017
Add topicThis page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Any questions about Extension:Flow
Full Visual Editor in Flow
[edit]extensions/Flow/modules/editor/editors/visualeditor/mw.flow.ve.Target.js
to put the code
mw.flow.ve.Target.static.toolbarGroups = ve.init.mw.Target.static.toolbarGroups; mw.flow.ve.Target.static.toolbarGroups.unshift({name: 'flowMention', include: ['flowMention']});
Hey, is it possible by configuration or any other trick to have the full toolbars for Visual Editor in flow? I am particularly interested in the Insert Media button (with upload) as it is really useful to be able to upload and link a file right in a discussion.
The visual editor in flow only has a limited amount of buttons (by design I suppose) but it seems to be working in its entirety (for example writing this post I can set text to bold/italic with buttons but not remove formatting, however if I use CTRL+M it works even if there is no button visible so the functionality is still loaded) FMalvisi (talk) 16:00, 13 January 2017 (UTC)
- @Roan Kattouw (WMF) may help you. Trizek_(WMF) (talk) 17:27, 13 January 2017 (UTC)
- It's unfortunately not quite trivial to do this, because while most features work some don't (if you hit
Ctrl+/
in Flow and VE and compare the result, there are a few things missing), but you should be able to get pretty close by editingextensions/Flow/modules/editor/editors/visualeditor/mw.flow.ve.Target.js
to put the codemw.flow.ve.Target.static.toolbarGroups = ve.init.mw.Target.static.toolbarGroups;
right above the line that says// Methods
. Roan Kattouw (WMF) (talk) 05:17, 16 January 2017 (UTC) - I will try, thank you very much for your suggestions! FMalvisi (talk) 08:29, 16 January 2017 (UTC)
- I guess, you'll also want the button for tagging other users, in which case you should add before
// Methods
- Tinss (talk) 01:54, 10 January 2021 (UTC)
mw.flow.ve.Target.static.toolbarGroups = ve.init.mw.Target.static.toolbarGroups; mw.flow.ve.Target.static.toolbarGroups.unshift({name: 'flowMention', include: ['flowMention']});
Widgets doesn't work in description
[edit]Dear developpers please be kindly informed that there is a error message if I use some widgets in description. Would be nice to have opportunity to use some widgets in description table 2.92.195.13 (talk) 19:55, 13 January 2017 (UTC)
- Hello
- What do you mean by "widget"? A templates?
- Do you have an example? Trizek_(WMF) (talk) 22:51, 13 January 2017 (UTC)
I do not see any "reply" button.
[edit]I setup a new wiki. I have visual editor working just fine.
But I cannot seem to get the Flow working properly.
I dont even see a "reply" button. I can see a button "add topic" next to "edit source" but it does not look anything it looks on this wiki. TitusiMW (talk) 18:54, 7 February 2017 (UTC)
- I don't see Flow on that page.
- Do you have access to site/Special:EnableFlow? If so, does it creates a Flow board on the any page? Trizek_(WMF) (talk) 19:37, 7 February 2017 (UTC)
- I get the following error while trying to access that page :-
- You do not have permission to create Flow boards in any location, for the following reason:
- The action you have requested is limited to users in the group: Flow bots.
- I am the admin with root access to the shell. What can I do to fix this? TitusiMW (talk) 22:21, 7 February 2017 (UTC)
- BTW, my intention is to enable flow for entire wiki by default. I followed the instructions on this page.
- I did do following:-
- php maintenance/populateContentModel.php --wiki=somewiki --ns='all' --table=revision
- php maintenance/populateContentModel.php --wiki=somewiki --ns='all' --table=archive
- php maintenance/populateContentModel.php --wiki=somewiki --ns='all' --table=page
- And added following on the LocalSetting.php
- $wgNamespaceContentModels['all']='flow-board'; TitusiMW (talk) 22:25, 7 February 2017 (UTC)
'all'
is not a valid value here. In order to enable Flow in all talk namespaces, you have to list them all off manually:$wgNamespaceContentModels[NS_TALK] = 'flow-board';
$wgNamespaceContentModels[NS_USER_TALK] = 'flow-board';
$wgNamespaceContentModels[NS_PROJECT_TALK] = 'flow-board';
$wgNamespaceContentModels[NS_FILE_TALK] = 'flow-board';
// etc etc, see Manual:Namespace constants for the full list of namespaces
Roan Kattouw (WMF) (talk) 11:29, 8 February 2017 (UTC)
- If I add myself to the group "Flow bots" then I am able to create Flow boards in "new" pages.
- Thanks for the help!
- My next questions are :-
- How do I enable Flow boards by default on all new and old "Talk Pages"?
- Can the Talk page be transcluded in the original page?
- Thanks for your help. TitusiMW (talk) 23:10, 7 February 2017 (UTC)
- No, unfortunately transcluding Flow pages is not supported. It can probably be made to work, but we don't have any plans to work on this soon. Roan Kattouw (WMF) (talk) 11:34, 8 February 2017 (UTC)
- Your questions go further than my knowledge of Flow's technical aspects. I've pinged a developer to help you. Trizek_(WMF) (talk) 08:17, 8 February 2017 (UTC)
VisualEditor toolbar inside Flow Boards does not show mathematics (\Sigma') insert button
[edit]If I use VisualEditor on regular page, I can see full toolbar including mathematics, media, special symbols etc.
By default VisualEditor on FlowBoards show very limitted buttons, like those on this wiki.
I followed a suggestion here :- https://www.mediawiki.org/w/index.php?title=Extension%20talk%3AStructuredDiscussions/2017#c-Roan_Kattouw_%28WMF%29-2017-01-16T05%3A17%3A00.000Z-FMalvisi-2017-01-13T16%3A00%3A00.000Z
This work beautifully and gives me almost all buttons in the VE toolbar inside Flow.
But mathematics button is still missing. [Note that mathematics is working inside flow board using the <math> ? </math> tags)
Any idea how I can get the mathemtics button on VE toolbar inside Flow Boards?
Thanks in advance! TitusiMW (talk) 22:14, 8 February 2017 (UTC)
- Sorry for the late reply. @Roan Kattouw (WMF) may also help you. Trizek_(WMF) (talk) 17:37, 21 February 2017 (UTC)
- Flow doesn't (yet) load extension's VE plugin modules. You could get around this by running
mw.loader.using('ext.math.visualEditor')
ESanders (WMF) (talk) 11:47, 1 March 2017 (UTC) - VE plugin modules will be available in the next release (https://gerrit.wikimedia.org/r/#/c/340541/). You will be able to trigger the math dialog by typing '<math'. Ed g2s (talk) 19:04, 1 March 2017 (UTC)
Combining and Rating Flow Boards
[edit]Thank you for this wonderful extension. As I am managing to get all the different features switched ON, I am actually starting to really like it!
I have two additional question :-
- Can I combine Flow Boards from several different pages of wiki inside another Flow Board on a separate page in same wiki?
- Is there any extension/feature that allows user to rate/rank/score comments/replies on Flow Boards so that really useful ones don't get buried under a pile of less useful ones?
- "Search MediaWiki" does not seem to be searching inside Flow Boards. Any ideas how can somebody search inside Flow Boards? For example, this Talk Page has 3 years worth of questions/answers that may be very useful but I can't find a way to search through them.
- Also, I have the ConfirmEdit configured. I see challenge questions being asked when user tries to login. But no challenge is presented why replying a question on Flow Boards. Do I need to anything special to activate CofirmEdit on Flow?
Thanks for all the help on this forum. Really appreciated! TitusiMW (talk) 22:30, 8 February 2017 (UTC)
- Sorry for the late reply.
- Not at the moment. unless if you built something. That's a possible project.
- Not at all.
- That's not possible. It is a big change that may be created next year (under discussion).
- I have no idea about ConfirmEdit. @Roan Kattouw (WMF) may also help you. Trizek_(WMF) (talk) 17:42, 21 February 2017 (UTC)
Does Flow comes with a page of topics combined?
[edit]I would like to create a page that combines all the Flow topics (a list of all the topics created on the different pages).
Is there a way to do that?
Thanks ClemFlip (talk) 09:29, 17 February 2017 (UTC)
- I think (because I'm not an expert in that domain) it may be possible by creating a tool to gather results from the API. Trizek_(WMF) (talk) 10:38, 17 February 2017 (UTC)
- I think you're asking about a Personal Feed. That feature idea is not currently implemented, but tracked and discussed at Phab:T103083 and Phab:T100858 and connected tasks. Quiddity (WMF) (talk) 20:18, 17 February 2017 (UTC)
- For your information, we'll work on the Phab:T100858 feature during the MW hackathon 2017! ClemFlip (talk) 08:43, 18 May 2017 (UTC)
- Can't wait to discuss about it with you, Clem! Trizek_(WMF) (talk) 14:34, 18 May 2017 (UTC)
- Any updates on this topic/ feature need? TitusiMW (talk) 15:43, 10 June 2017 (UTC)
- @ClemFlip, have you worked on it? Trizek_(WMF) (talk) 10:35, 12 June 2017 (UTC)
- Unfortunately not! Do you think it could be eligible for a grant? Would you endorse the project? ClemFlip (talk) 12:25, 12 June 2017 (UTC)
- Flow's future improvements are under discussion. If this idea of having a combined page is not included on the roadmap, it may be granted. Maybe. Trizek_(WMF) (talk) 13:37, 12 June 2017 (UTC)
- This really critical feature for us --- lets call it "various types of transclussion of discussion boards". I like to have 1. ability to combine discussion boards from multiple wiki pages to create one common "forum"; 2. create personal feeds on user activity or profile pages to show all discussions that they subscribe to in their activity page; and 3. ability to transclude discussion boards inside or under the wiki page itself.
- I don't know how wikimedia project get sponsored. I am willing to contribute if that helps getting this done.
- Thanks a lot. I love Flow, I am not sure why this project is getting priority all the time. TitusiMW (talk) 22:15, 20 July 2017 (UTC)
- Friends, I am preparing a Grant application for this project. See here
- Feel free to improve it, endorse it or add yourself in the participants list if you wish to contribute in coding or testing.
- Thanks a lot. Love Flow too! ClemFlip (talk) 16:24, 3 August 2017 (UTC)
- Hey guys!
- Is there any solution for this topic as i'm newbie to mediawiki & its flow extension. I also want to implement same thing but didn't get any progress till now. 111.93.35.2 (talk) 12:24, 4 September 2017 (UTC)
Parser function to detect Flow page's status
[edit]Hello.
Is it technically possible to detect in a template code if it's used in a Flow environment (ticket/board desc) ? ie. a parser function ?
Currently I can play with
{{#ifeq:{{NAMESPACE}}|Topic|It's in a Flow topic|It's not in}}
but it does not work with board desc, that have a "real" namespace.
Have a method to do this can be really useful to remove adaptations problems of templates that were initially written for classic talk page. These templates do really bad renders like fr:Discussion_utilisateur:Xmen_le_grand.
Is the resolution of this problem foreseen ?
Thanks for your work. Framawiki (talk) 17:44, 3 March 2017 (UTC)
- Any news here? Framawiki (talk) 17:47, 6 July 2018 (UTC)
Unable to get Flow to Load
[edit]Has a stuck loading icon, rest of the page is responsive but not the section for Flow. I checked Browser Console and there wasn't any errors, I noticed on the Parsoid server that the Flow function wasn't even introducing a new worker, but Visual Editor worked fine and accessed the workers with no issue. Looks to me like a Parsoid connection issue, any ideas on how to fix this? I have my Parsoid settings set with the VirtualREST Arguements, here are my settings below:
require_once "$IP/extensions/VisualEditor/VisualEditor.php";
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgHiddenPrefs[] = 'visualeditor-enable';
$wgVisualEditorParsoidURL = 'http://127.0.0.1:8000';
$wgVirtualRestConfig['modules']['parsoid'] = array(
'url' => 'http://localhost:8000',
'domain' => 'localhost',
'prefix' => 'localhost'
);
$wgSessionsInObjectCache = true;
$wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true;
$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1; 216.188.209.26 (talk) 14:46, 17 March 2017 (UTC)
- It looks okay AFAICT. What version/commit of core, Flow, VisualEditor, and Parsoid do you have?
- I'm not sure it's really a Parsoid error. That would prevent you from editing or saving posts, but I don't think it would cause the endless loading icon.
- Double-check (maybe a different browser) to see if there's a JS error. Is it a public wiki? Mattflaschen-WMF (talk) 17:43, 17 March 2017 (UTC)
- I've run into the same issue on the private wiki I'm running (core 1.28, Flow 1.1, VisualEditor 0.1.0, Parsoid 0.6.1). Our Flow installation was completed yesterday.
- I'm doubting it is a Parsoid error as well. The loading issue only appears when using Chrome. IE 11 and Firefox do not encounter the issue (i.e., the editor starts as expected).
- I keep seeing this error in the developer tools for each browser:
/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector BadMethodCallException from line 845 of /var/www/html/includes/session/SessionManager.php: Sessions are disabled for this entry point.
- We've not touched SessionManager.php in our work on this wiki, to my knowledge. Could this be the JS error you suggest? DHillBCA (talk) 16:40, 21 March 2017 (UTC)
- It is likely an extension that is indirectly using the session (e.g. by checking a user preference in a code path where that is not allowed).
- If you go that load.php URL (you can click the link from the console or check the network tab), you should see a full stack trace with #0, #1, #2, etc. showing how you got to that error.
- Please create a paste with the full backtrace, then put the link to it here. Mattflaschen-WMF (talk) 22:49, 22 March 2017 (UTC)
- Thank you for the assistance. I've pasted my stack trace here as you suggested.
- https://phabricator.wikimedia.org/P5120 DHillBCA (talk) 21:12, 23 March 2017 (UTC)
- Thanks. It is not showing the full stacktrace.
- However, if you search (grep) the logs for the code there (
WLgpE6v3O-dohrZ32qzQHQAAAAk
), you should be able to find the full trace. Mattflaschen-WMF (talk) 23:02, 24 March 2017 (UTC) - Sorry for the delay, got busy at work and forgot to check back. Currently running:
- MediaWiki 1.28.0
- Flow 1.1 (f35a933)
- VisualEditor 0.1.0 (93528b7) (Latest version for 1.28)
- Parsoid 0.7.0 (Updated it and still had the same issue)
- This is a private business wiki that's self hosted. I can confirm with DHillBCA that if I try my setup in Firefox or IE it works as expected, I'll get the Stack Trace over the weekend since this is used during the work day and I have another extension being used instead for threading that work (I'm looking to replace it since its unmaintained and I have experienced glitches with it). Below is the basic info from the console.
- 13:38:52.607 (unknown) This page is using the deprecated ResourceLoader module "jquery.ui.widget".
- (anonymous)
- 13:38:52.719 freegeoip.net/ Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
- 13:38:52.739 (unknown) This page is using the deprecated ResourceLoader module "jquery.ui.core".
- Please use "mediawiki.ui.button" or "oojs-ui" instead.
- mw.loader.implement.css
- 13:40:07.283 Navigated to WEBSITE
- 13:40:07.717 load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector:32 [Violation] 'load' handler took 173ms
- 13:40:07.907 load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:177 [Violation] 'setTimeout' handler took 72ms
- 13:40:07.931 VM452:72 This page is using the deprecated ResourceLoader module "jquery.ui.widget".
- (anonymous) @ VM452:72
- (anonymous) @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:161
- fire @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:45
- add @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:45
- always @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:46
- runScript @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:161
- checkCssHandles @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:162
- execute @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:163
- implement @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:169
- (anonymous) @ VM452:72
- (anonymous) @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:4
- globalEval @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:4
- (anonymous) @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:166
- (anonymous) @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:177
- 13:40:08.010 load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:156 [Violation] 'requestAnimationFrame' handler took 66ms
- 13:40:08.041 load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:142 GET https://freegeoip.net/json/?callback=jQuery111307279160545777619_1490985607541&_=1490985607542 net::ERR_BLOCKED_BY_CLIENT
- send @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:142
- ajax @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:134
- jQuery.(anonymous function) @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:136
- getJSON @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:136
- (anonymous) @ VM452:119
- (anonymous) @ VM452:119
- (anonymous) @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:161
- fire @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:45
- add @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:45
- always @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:46
- runScript @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:161
- checkCssHandles @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:162
- execute @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:163
- implement @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:169
- (anonymous) @ VM452:119
- (anonymous) @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:4
- globalEval @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:4
- (anonymous) @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:166
- (anonymous) @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:177
- 13:40:08.063 VM452:67 This page is using the deprecated ResourceLoader module "jquery.ui.core".
- Please use "mediawiki.ui.button" or "oojs-ui" instead.
- mw.loader.implement.css @ VM452:67
- (anonymous) @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:161
- fire @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:45
- add @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:45
- always @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:46
- runScript @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:161
- checkCssHandles @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:162
- (anonymous) @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:162
- fire @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:45
- fireWith @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:46
- fire @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:46
- fireCallbacks @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:156
- addEmbeddedCSS @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:157
- (anonymous) @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0phuoiq:156 216.188.209.26 (talk) 18:55, 31 March 2017 (UTC)
- Additional bit of info, I tried Flow on a PC with an older version of Chrome (v49) and it worked on there as well. It also seems to work just fine on Chrome 57 Stable, the issues seem to stem from a Chrome 58 Beta version I am running. Going to see what changed between v57 and v58 to find the issue. 216.188.209.26 (talk) 20:31, 3 April 2017 (UTC)
- It also works fine on chrome canary (v59), I'm thinking this might just be a bug with v58 Chrome Beta. Let me know if you need further info. 216.188.209.26 (talk) 20:56, 3 April 2017 (UTC)
- I just updated to Chrome 57 stable - this appears to have resolved the issue. Thanks for the assistance! DHillBCA (talk) 14:32, 4 April 2017 (UTC)
- just a final update since I found out exactly why this was happening, I was using LiquidThreads before and when I switched to Flow I didn't clear my cache to remove previous cache entries to a LiquidThread talk page. Clearing Cache fixed the issue in Chrome V58, beginner Web Dev mistake! 216.188.209.26 (talk) 13:41, 5 April 2017 (UTC)
- That doesn't explain the "Sessions are disabled for this entry point", but glad to hear it's working. Mattflaschen-WMF (talk) 04:29, 18 April 2017 (UTC)
Not sure how insert templates in Visual editor
[edit]RESOLVED | |
Issue was because, the concerned template did not have TemplateData. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
It's not so clear how to add templates such as w:Template:Em using the visual editor. I guess I might be missing something. Could anyone help me? Kaartic [talk] 15:44, 27 April 2017 (UTC)
- Easy type "{{" twice and it will trigger the template insert tool. One can also see other shortcuts by using the keyboard shortcuts by pressing a modifier key and "/" , e.g. (ctrl + / ) or the equivalent in your operating system. 197.218.83.42 (talk) 15:51, 27 April 2017 (UTC)
- The real issue is with that "Template Insertion tool". I don't know where to give the parameter for the template. For example, consider that I like to emphasise the word "emphasis". I would usually do that using the template as {{em | emphasis }} . How am I supposed to do this using the Template Insertion tool ? Kaartic [talk] 04:38, 28 April 2017 (UTC)
- Hi Kaartic
- The template {{em}} has no TemplateData (TD). A TD is required to edit a page with the visual editing mode.
- {{quotation}} has a TD if you want to see how it works.
- Without a TD, you can access to the template's help page in the Template insertion Tool. Then fil the fields names in the search bar of the template insertion tool ("1" for field one, and the the value and do it again for "2"...). To avoid this, consider to take a few minutes to create the TC for the template you are using. I've done this for the templates I'm using most on wikis I use. Trizek_(WMF) (talk) 11:41, 28 April 2017 (UTC)
- Thanks for your help. Could you please tell me what "TC" means and also possibly point me to resources about how to create them ? Kaartic [talk] 14:39, 28 April 2017 (UTC)
- "TC" is a typo for "TD". I'm sorry for the confusion! :)
- Have you checked the TemplateData help page? In short, go to a template page, edit it and then click on the Edit template data button. Add the parameters that are suggested, and create options for each ones. Trizek_(WMF) (talk) 14:46, 28 April 2017 (UTC)
Math is not Rendering in Flow
[edit]Thanks in advance for any help/pointers. TitusiMW (talk) 23:45, 27 April 2017 (UTC)
- Folks any help with this? TitusiMW (talk) 16:36, 6 May 2017 (UTC)
Keyboard helper icon is shown at an odd place in Template Insertion tool
[edit]RESOLVED | |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
In the "Template insertion tool" that should be shown near the text box of "Add a Template" is found to be hovering somewhere in the middle. It seems to be coming to the correct position when the text box is tapped for the first time.
Screenshot

- Got it. Good catch, I'm reporting it. :) Trizek_(WMF) (talk) 14:56, 28 April 2017 (UTC)
Making VisualEditor Default Inside Flow
[edit]How do you make visual editor default inside Flow, like the way you have set it up here? TitusiMW (talk) 22:35, 4 May 2017 (UTC)
Trying to get Permalink to a comment shouldn't refresh the page
[edit]When I try to get a permalink to a comment, the page refreshes and the URL reflects that of the permalink. That seems odd to me. I can't quote a previous comment in the discussion, while replying to another comment, without refreshing the page.
As a user I wouldn't want the page to refresh just for getting a link to that comment. I guess Stack Overflow's share option for a question or comment does something similar to this in a better way. Kaartic [talk] 12:13, 15 May 2017 (UTC)
- > I can't quote a previous comment in the discussion, while replying to another comment, without refreshing the page.
- How do you proceed?
- When I need to quote a part of a Flow conversation, I hover the "..." sign attached to the message I want to quote, and then right-click on the "permalink" link to copy the link to the section I want to quote. Trizek_(WMF) (talk) 14:31, 15 May 2017 (UTC)
- That's odd. I didn't know it was a link. I thought I had to click on the permalink option to get the permalink. Moreover the other options shown while hovering over "..." are clickable so I didn't expect that to be a link.
- I guess it should be made explicit or it should be modified somehow. Kaartic [talk] 14:39, 15 May 2017 (UTC)
- We are going to review the overall design. I'll keep in in mind. Thanks! Trizek_(WMF) (talk) 14:42, 15 May 2017 (UTC)
- You're welcome! In that case, the main point is that the link is placed among buttons and it even acts like one! Kaartic [talk] 15:16, 15 May 2017 (UTC)
- That's the first time qualifies the action links as "buttons". When I've heard about them, they were introduced as links with guiding icons. But if you have been confused, it is possible some others are. :) Trizek_(WMF) (talk) 15:35, 15 May 2017 (UTC)
- That's my point (though I didn't state it in the previous comment), the links and effects added to them make them look like buttons! Kaartic [talk] 07:53, 16 May 2017 (UTC)
RuntimeException from line 441 of /var/www/includes/utils/UIDGenerator.php: Could not open '$IP/images/temp/mw-UIDGenerator-UID-88'.
[edit]I keep hitting this exception on MW 1.28.2 even though the all files are owned by www-data:
$root@9d1a643ed474:/var/www# ls -l images/
total 16
-rwxrwxrwx 1 www-data www-data 84 May 23 19:45 README
drwxrwxrwx 2 www-data www-data 4096 May 24 20:10 avatars
drwxrwxrwx 2 www-data www-data 4096 May 24 20:10 awards
drwxrwxrwx 2 www-data www-data 4096 May 24 20:10 temp
$root@9d1a643ed474:/var/www# ls -l images/temp/
total 0
-rwxrwxrwx 1 www-data www-data 0 May 24 20:10 index.html
Any suggestions? Should I file a bug on phabricator? CalNation (talk) 03:25, 25 May 2017 (UTC)
- First, check which user your server is running as. This is the likely cause of the issue. E.g. maybe your server is running as apache2 (the below commands will show among other things the permissions on /var/www, which may help indicate this)
- Then run:
- ls -ld /var/www/images
- ls -ld /var/www/
- ld -ld /var
- You don't need to change the permissions of all those, but you need to make sure that the web server's user can navigate to all the directories (the 'x' controls whether user/group/other can enter the directory). You do show that temp itself is world-writable (really, it shouldn't be for security reasons, but good to first figure out what's going on). Mattflaschen-WMF (talk) 18:19, 21 June 2017 (UTC)
- Paste the output here, please. Mattflaschen-WMF (talk) 18:19, 21 June 2017 (UTC)
Making an extension that can affect Flow
[edit]Hi. I was redirected here from Phabricator. I'm working on an extension to be used on my wiki which would give classes that would contain the user groups of the user for the user links that have the mw-userlink class. The reason I want to do this is because I want to format the links for certain user groups differently in CSS.
Here is the php code that I'm using currently:
$wgHooks['HtmlPageLinkRendererBegin'][] = 'handle_link';
function handle_link( $dummy, $target, &$html, &$customAttribs, &$query, &$options, &$ret ) {
if(strpos($customAttribs['class'], 'mw-userlink') !== false){
$username = explode(':',$target)[1];
if(strpos($username,'/') !== false){
$username = explode('/',$username)[1];
}
$customAttribs['class'] = $customAttribs['class'] . ' mw-userlink-user-' . $username . get_user_group_classes($username,'mw-userlink-group-');
}
return true;
}
function get_user_group_classes($username,$groupprefix,$commonclass){
$ret = '';''
if($commonclass){
$ret = $ret . ' ' . $commonclass;
}
$user = User::newFromName( $username );
if(!$user){
$ret = $ret . ' ERROR-with-user-' . $username;
return $ret;
}
$groups = $user->getGroups();
foreach($groups as $key => $group){
$ret = $ret . ' ' . $groupprefix . $group;
}
return $ret;
}
The only problem I have is this code only affects links that are part of the MediaWiki core, and I don't know what code I need to use in order to affect the user links that have the mw-userlink class on the Flow boards without directly modifiying the files of the Flow extension or the link or elements in other extensions(such as SocialProfile etc.). What should I do? Tribly (talk) 15:23, 7 June 2017 (UTC)
- This is the only place it is referenced.
- It is not hookable currently. It could be made hookable using includes/TemplateHelper.php, making a userLinkClasses helper, and having it return armored HTML (see TemplateHelper::html).
- Or you could potentially make a UserLinksWidget (or similar) in includes/OOUI (and use oouify), since we're eventually trying to convert all this Handlebars to OOUI anyway. You could then add the hook in the widget. Mattflaschen-WMF (talk) 22:58, 20 June 2017 (UTC)
Suggestion:Disable or hide reply form for anonymous users when the thread is resolved
[edit]Issue
Anonymous users gets a reply form for resolved threads that they can't reply to.
Background
Currently, anonymous users can't reply to resolved or closed threads (which is reasonable), yet the reply form still allows the user to type a response and click the submit button.
Expected
No reply form.
Actual
It lets you write your reply, use the interface and click the "reply anonymously" button.
Proposed solution
- Hide the reply buttons and the text area.
- Inform the anonymous users that they can't reply because the thread is closed, and tell them they need to login / register to reply to such threads. 197.218.88.134 (talk) 22:27, 22 June 2017 (UTC)
- Good catch! Trizek_(WMF) (talk) 11:06, 23 June 2017 (UTC)
Extension:Flow
[edit]Hi, I have recently installed Extension:Flow along with VisualEditor and Parsoid as per the istructions. When posting a topic it is giving Internal server Error.
The exact error is like
POST https://subdomain.domain.com/api.php 500 (Internal Server Error)
Thanks. 14.140.161.92 (talk) 09:01, 2 August 2017 (UTC)
- You may have more details in the php error log or the subdomain.domain.com webserver error log. Ciencia Al Poder (talk) 09:20, 2 August 2017 (UTC)
- No error related to this is php error log 14.140.161.92 (talk) 10:10, 2 August 2017 (UTC)
- This is showing in access error log:
- 14.140.161.92 - - [02/Aug/2017:10:05:18 +0000] "POST /api.php HTTP/1.1" 500 3143 "https://subdomain.domain.com/index.php/Requirement" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" 14.140.161.92 (talk) 10:13, 2 August 2017 (UTC)
- I have tried to change URL/URI but there is no impact in the error 14.140.161.92 (talk) 10:14, 2 August 2017 (UTC)
- Sorry, I'm not an expert here, but after you installed this did you run the script to populate the Flow tables? It is in the /maintenance directory of the extension. In any case I'm going to ping @Quiddity (WMF) and @Trizek (WMF) so they can help you here. They know certainly better.
- Those maintenance scripts can be found at https://phabricator.wikimedia.org/diffusion/EFLW/browse/master/maintenance/ being https://phabricator.wikimedia.org/diffusion/EFLW the full repository mirror.
- Regards. —MarcoAurelio (talk) 10:45, 2 August 2017 (UTC)
- Yes, I ran the update.php script. 14.140.161.92 (talk) 10:54, 2 August 2017 (UTC)
- The developers have been pinged, but they were still in bed. :) I hope you will have a reply soon. Trizek_(WMF) (talk) 13:06, 2 August 2017 (UTC)
- There could be many things causing a 500. We need more information to track it down. You should be able to find the details in your log files, but since you can't (yet), you can do the below.
- Add the following lines the the top of your LocalSettings.php file (immediately below <?php):You must remove these lines after tracking down the issue, for security reasons. Mattflaschen-WMF (talk) 18:58, 2 August 2017 (UTC)
// TEMPORARY: REMOVE AFTER SITE WORKING error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); $wgShowExceptionDetails = true; // END TEMPORARY
- Thanks for the reply. resolve the error as curl was not installed. However now I am getting below error while adding topic.
- 3bc8bcc02a355c6fc82eff16] Exception Caught: Request to parsoid for "wikitext" to "html" conversion of content connected to title "Topic:Tvixiggu1wue7rze" failed: 401 14.140.161.92 (talk) 07:16, 3 August 2017 (UTC)
Posting a new topic from on-wiki JavaScript
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello, I wish to modify https://fr.wikipedia.org/wiki/MediaWiki:Gadget-PaStec.js in order to send message in flow's talk page too. I tried, with the documentation Flow/Architecture/API#Posting a new topic from on-wiki JavaScript, to write (https://fr.wikipedia.org/wiki/Utilisateur:Gratus/PaStec_real.js) but I have the message "TypeError: mw.messagePoster is undefined" in the console.
I think it's because I should import https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.loader-method-using but I don't know how to do this.
Thanks for your help Gratus (talk) 07:24, 5 August 2017 (UTC)
- Apparently, this have been solved. Trizek_(WMF) (talk) 13:05, 13 August 2017 (UTC)
- Yes, the documentation has been completed.
- You can close the topic. Gratus (talk) 19:07, 13 August 2017 (UTC)
Adding categories to flow discussion threads
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- How do we add categories to either complete Flow board or to individual discussion thread in a board?
- Secondly, how do we actually use these categories? So if we go to that particular Category page would we see flow discussion page being listed there? TitusiMW (talk) 22:27, 9 August 2017 (UTC)
- You can add categories:
- for a Board (the talk page), in the board description,
- for a given Topic, in the Summary.
- Categories will work like on any other page. :) Trizek_(WMF) (talk) 13:56, 10 August 2017 (UTC)
No topics displyed on the Discussion page for the logged in users
[edit]Hi All,
Our company runs a MediaWiki with the version shown below. The wiki is configured to use LDAP server with LDAP Authentication Plugin.
MediaWiki | 1.28.2 |
PHP | 7.0.22-0ubuntu0.16.04.1 (apache2handler) |
MySQL | 5.7.19-0ubuntu0.16.04.1 |
Users can log in the wiki, but they cannot see any topics when they click the "Discussion" tab. The workaround is to click the "Recently active topic". (User can add topics and edit topics)
If user log out the wiki, they have NO such a problem.
Any one has ideas about this. Thanks in advance. ForrestFeng (talk) 10:20, 28 August 2017 (UTC)
- Hello
- I've pinged the developers to provide you assistance. Trizek_(WMF) (talk) 14:26, 28 August 2017 (UTC)
- Hi Trizek,
- Thanks very much, I'm looking forward to get your updates.
- -BR ForrestFeng (talk) 06:18, 1 September 2017 (UTC)
All parts of a PRIMARY KEY must be NOT NULL;
[edit]Hi there,
I just install lastest version of Flow with Mediawiki 1.29.0 & 5.7.19-0ubuntu0.16.04.1.
When I run update script, I get the following error :
Modifying workflow_id field of table flow_workflow ...[c62dec127a0aafc91b6dfbf5] [no req] Wikimedia\Rdbms\DBQueryError from line 1075 of /srv/wiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: ALTER TABLE `flow_topic_list`
CHANGE topic_list_id topic_list_id binary(11) not null,
CHANGE topic_id topic_id binary(11) default null Function: Wikimedia\Rdbms\Database::sourceFile( /srv/wiki/extensions/Flow/db_patches/patch-88bit_uuids.sql ) Error: 1171 All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead (localhost)
Backtrace:
#0 /srv/wiki/includes/libs/rdbms/database/Database.php(933): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#1 /srv/wiki/includes/libs/rdbms/database/Database.php(3146): Wikimedia\Rdbms\Database->query(string, string)
#2 /srv/wiki/includes/libs/rdbms/database/Database.php(3095): Wikimedia\Rdbms\Database->sourceStream(unknown type, NULL, NULL, string, NULL)
#3 /srv/wiki/includes/installer/DatabaseUpdater.php(673): Wikimedia\Rdbms\Database->sourceFile(string)
#4 /srv/wiki/includes/installer/DatabaseUpdater.php(931): DatabaseUpdater->applyPatch(string, boolean, string)
#5 /srv/wiki/includes/installer/DatabaseUpdater.php(472): DatabaseUpdater->modifyField(string, string, string, boolean)
#6 /srv/wiki/includes/installer/DatabaseUpdater.php(440): DatabaseUpdater->runUpdates(array, boolean)
#7 /srv/wiki/maintenance/update.php(174): DatabaseUpdater->doUpdates(array)
#8 /srv/wiki/maintenance/doMaintenance.php(111): UpdateMediaWiki->execute()
#9 /srv/wiki/maintenance/update.php(219): require_once(string)
I changed every default null witth default 0. Update script passed but Flow doesn't work.... Any suggestion ?
Thank you !
-- Flo 91.244.238.90 (talk) 10:25, 1 September 2017 (UTC)
- Hey! I've pinged the developers, expect a reply soon! Trizek_(WMF) (talk) 12:27, 1 September 2017 (UTC)
- Thanks a lot ! 91.244.238.90 (talk) 12:57, 1 September 2017 (UTC)
- Did you upgrade Flow, or is this a fresh install? Mattflaschen-WMF (talk) 03:35, 28 September 2017 (UTC)
- Same problem, fresh install. 178.38.111.97 (talk) 16:28, 15 November 2017 (UTC)
- Found this: https://gerrit.wikimedia.org/r/#/c/364289/ 178.38.111.97 (talk) 16:35, 15 November 2017 (UTC)
Suggestion: Show mentioned (or linked) topics on the sidebar
[edit]Issue
As a user, I'd like to see all threads related to the current thread so that I can get more information.
Background
Although currently one can categorize threads, this approach is manual and is not obvious without digging through categories. This would quickly build cross-links of related threads.
Proposed solution
On the sidebar (grouped by namespace, e.g. flow topics or threads):
- Show incoming backlinks
- Show outgoing links 197.218.82.181 (talk) 13:06, 3 September 2017 (UTC)
Not working after upgrade from MW v1.26 to v1.29
[edit]Hi, I upgraded MW from 1.26 to 1.29 in a development environment. I ran update.php so that the schema is also updated as desired and then updated the flow extension to match it with 1.29. However, on the main page if I click on the Discussion tab, it does not seem to be working. I see the following text:
{"flow-workflow":"swwrbypaj4mw5xni"}
Does anyone know what this means and how I can resolve this? 66.77.160.179 (talk) 13:50, 5 September 2017 (UTC)
Uninstall
[edit]Are there any reliable uninstall instructions? I commented out $wfLoadExtension for flow and now receive the following error:
[4a15dd98c1d00a2b8019936a] /mediawiki/index.php?title=Talk:Main_Page MWUnknownContentModelException from line 306 of C:\inetpub\wwwroot\epss-dev-mw01\mediawiki\includes\content\ContentHandler.php: The content model 'flow-board' is not registered on this wiki.
See https://www.mediawiki.org/wiki/Content_handlers to find out which extensions handle this content model.
Backtrace:
#0 C:\inetpub\wwwroot\epss-dev-mw01\mediawiki\includes\content\ContentHandler.php(243): ContentHandler::getForModelID(string)
#1 C:\inetpub\wwwroot\epss-dev-mw01\mediawiki\includes\MediaWiki.php(400): ContentHandler::getForTitle(Title)
#2 C:\inetpub\wwwroot\epss-dev-mw01\mediawiki\includes\MediaWiki.php(291): MediaWiki->initializeArticle()
#3 C:\inetpub\wwwroot\epss-dev-mw01\mediawiki\includes\MediaWiki.php(862): MediaWiki->performRequest()
#4 C:\inetpub\wwwroot\epss-dev-mw01\mediawiki\includes\MediaWiki.php(523): MediaWiki->main()
#5 C:\inetpub\wwwroot\epss-dev-mw01\mediawiki\index.php(43): MediaWiki->run()
#6 {main}
Do all the flow tables in the database need to be deleted as well? Jamal22066 (talk) 14:11, 12 September 2017 (UTC)
- Ran the following to fix the error:
- UPDATE page SET page_content_model='wikitext' WHERE page_content_model='flow-board'; Jamal22066 (talk) 15:06, 12 September 2017 (UTC)
- Update: In addition to the above SQL update query, you may want to run the following as the database schema in MW has changed:
UPDATE content SET content_model='1' WHERE content_model='4';
- NOTE: Make sure that "4" equals "flow-board" in your content_models table. If not, update the last content_model variable above with the proper identifying number.
- And, as always, backup your database before doing anything! Joe Beaudoin Jr. Redux (talk) 01:25, 6 November 2023 (UTC)
- See also wikitech:Flow * Pppery * it has begun 02:07, 6 November 2023 (UTC)
This is very similar to Wikia's Message Wall
[edit]I notice this extension is very similar to Wikia's Message Wall and comments. Aasim 21:37, 28 September 2017 (UTC)
- Yes. I believe it and its conjoined fellow extension for notifications both predate the development at Wikimedia of Notifiications and Structured Discussions, but discussions at the time concluded that the approaches were incompatible, and that Wikia's model wasn't "right" for Wikimedia. I wasn't part of those conversations though, so I don't know much more.
- (Sadly there's no Extension:MessageWall page here, but the code is available here. Note that Wikia's forked version of MediaWiki is quite far behind at this point, so using that code in a modern installation might be quite a challenge.) Jdforrester (WMF) (talk) 16:10, 29 September 2017 (UTC)
Suggestion: Move the "edit description" into a menu (e.g. with collapse)
[edit]Issue:
Several users are constantly vandalizing or misusing the description especially on mobile devices.
Background:
I've noticed quite a lot of random people editing description needlessly. This seems to be because the "Edit description" button / link is the very first button a user sees on a mobile device and it is also prominent on the desktop. This may make a person believe that it is the way to reply on mobile and a "fun" way to experiment on desktop devices.
Possible solutions:
- Move it into a menu (along with maybe a history button, and view latest diff)
- Make it only available to > autoconfirmed users
An alternative approach for admins here, might be to simply hide the button using CSS. Registered user groups have different CSS so that might make it possible for them to always see it, while eliminating preventable vandalism. 197.218.90.94 (talk) 16:35, 29 September 2017 (UTC)
- It may solve the conflict existing between T102014 and T112872. Trizek_(WMF) (talk) 16:43, 29 September 2017 (UTC)
- Yup, for this wiki something like this would suffice:
.flow-ui-boardDescriptionWidget-editButton { display: none; }
- It can be overwritten for admins and whatever user groups they trust. Most of these descriptions don't really need to be edited anyway. 197.218.90.94 (talk) 17:01, 29 September 2017 (UTC)
Flow installed but doesn't work
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- Hello, I have following wiki website:
- MediaWiki: 1.29.1
- PHP:5.6.30 (cgi-fcgi)
- MySQL: 5.6.35-81.0
- So I have downloaded Flow, add extension to my LocalSettings.php file, run the update.php. And when I go to discussion page flow appears but when I add a topic it cannot be posted to discussion page, instead of it I see see this (when I click post message):
- Coud someone tell me how can I fix it? Thank you Fokebox (talk) 17:26, 30 September 2017 (UTC)
- You should disable VisualEditor, you can do this by using the following code:
$wgFlowEditorList = array('wikitext');
YOUR1 (talk) 06:50, 11 October 2017 (UTC)- I don't have installed Visual Editor at my wiki, an unfortunately provided code didn't resolve a problem ( Fokebox (talk) 08:10, 11 October 2017 (UTC)
- I've also encountered the issue while not running Visual Editor, that's why you should disable the usage of VE. Also check your console for errors. YOUR1 (talk) 10:10, 11 October 2017 (UTC)
$wgFlowEditorList = array('wikitext');
doesn't helped to resolve a problem. All I have found out from the console is following:- Fokebox (talk) 12:13, 11 October 2017 (UTC)
<br /> <b>Fatal error</b>: Class 'ApiErrorFormatter_BackCompat' not found in <b>/var/www/u0402490/data/www/wikireshebnik.ru/includes/api/ApiMain.php</b> on line <b>283</b><br />
- That's weird, since that class is part of the core. Please check your MW installation. YOUR1 (talk) 13:47, 11 October 2017 (UTC)
- Ok, just let me know how can I check MW installation, because when the installation was finished I hadn't any messages or errors Fokebox (talk) 19:07, 11 October 2017 (UTC)
- The problem has been resolved. I have just reuploaded all MW files to my server! Fokebox (talk) 09:27, 16 October 2017 (UTC)
- Hi
- Have you checked if there is any error message in the console? Trizek_(WMF) (talk) 07:40, 2 October 2017 (UTC)
- How can I check it in the console? Fokebox (talk) 07:55, 2 October 2017 (UTC)
- You can follow those instructions. Trizek_(WMF) (talk) 08:50, 2 October 2017 (UTC)
- The console informs the following:
- unreachable code after return statement[Details] load.php:432:774
- This page is using the deprecated ResourceLoader module "es5-shim".
- Use of the "es5-shim" module is deprecated since MediaWiki 1.29.0 load.php:1:74 Fokebox (talk) 10:22, 2 October 2017 (UTC)
- Hmm, those are (harmless) warnings, not errors.
- If you open the console before you click the "add topic" button, do you see any errors/messages appear while you click?
- Also, did you download the version of Flow that is appropriate for MW 1.29? The latest version of Flow may not work with 1.29. Roan Kattouw (WMF) (talk) 17:45, 4 October 2017 (UTC)
- This is the message at the console before I click button "Add topic":
- unreachable code after return statement[Подробнее] load.php:432:774
- This page is using the deprecated ResourceLoader module "es5-shim".
- Use of the "es5-shim" module is deprecated since MediaWiki 1.29.0 load.php:1:74
- I tried to install version Flow for 1.28, but it doesn't work at all Fokebox (talk) 07:40, 5 October 2017 (UTC)
- Strange. The version of Flow for 1.29 (not 1.28) is what you should use, sorry if that wasn't clear.
- The messages you pasted are all harmless warnings, so the console isn't telling us what's going wrong.
- I now see that there's an empty red box above the editor, that's where the error message is supposed to go. It's possible to debug this, but it'll be a bit more complicated:
- Do everything you need to do to create a topic, except actually clicking the button
- Open the inspector/console
- Go to the "Network" tab
- Click the "Add topic" button
- A new entry should appear in the console. Click it
- On the right-hand side, click the "Response" tab. You should see text there; please copy that text and send it to me.
- If there is no text in the "Response" tab, copy the "Headers" tab instead (but send that to me privately, it can contain login information)
- Here's a screenshot of what you should expect to see (if you use Chrome). Roan Kattouw (WMF) (talk) 16:51, 5 October 2017 (UTC)
- I do use Flow version for 1.29 )
- OK, I"ll try to do the described steps and let you know about the result. Fokebox (talk) 06:46, 6 October 2017 (UTC)
- Thanks for bearing with me. I'm just about to go to bed now, but I'll look at the results when I'm at work tomorrow. Roan Kattouw (WMF) (talk) 07:33, 6 October 2017 (UTC)
- Hi! I tried to do all the steps and has this result:
- And I have following Error displayed at response tab:
- Fokebox (talk) 14:06, 9 October 2017 (UTC)
<br /> <b>Fatal error</b>: Class 'ApiErrorFormatter_BackCompat' not found in <b>/var/www/u0402490/data/www/wikireshebnik.ru/includes/api/ApiMain.php</b> on line <b>283</b><br />
Can't update Flow
[edit]Hello !
I can't manage to update Flow.
https://dicoado.ch/dico/Sp%C3%A9cial:Version
Version REL1_27 (6ecdef3) is working fine.
I want to update to REL1_29 and I get this error :
PHP Fatal error: Uncaught Exception: /home/clients/0486a60c95a26f96e318d8715f689dd7/web/wiki/extensions/Flow/extension.json: unsupported manifest_version: 2 in /home/clients/0486a60c95a26f96e318d8715f689dd7/web/wiki/includes/registration/ExtensionRegistry.php:196
Stack trace:
#0 /home/clients/0486a60c95a26f96e318d8715f689dd7/web/wiki/includes/registration/ExtensionRegistry.php(138): ExtensionRegistry->readFromQueue(Array)
#1 /home/clients/0486a60c95a26f96e318d8715f689dd7/web/wiki/includes/Setup.php(40): ExtensionRegistry->loadFromQueue()
#2 /home/clients/0486a60c95a26f96e318d8715f689dd7/web/wiki/maintenance/doMaintenance.php(98): require_once('/home/clients/0...')
#3 /home/clients/0486a60c95a26f96e318d8715f689dd7/web/wiki/maintenance/update.php(217): require_once('/home/clients/0...')
#4 {main}
thrown in /home/clients/0486a60c95a26f96e318d8715f689dd7/web/wiki/includes/registration/ExtensionRegistry.php on line 196
Any idea how to make it working ? DSwissK (talk) 19:56, 14 October 2017 (UTC)
- Have you updated MediaWiki to 1.29? Ciencia Al Poder (talk) 14:37, 15 October 2017 (UTC)
- My MediaWiki is version :
- |1.28.2
- |}
- And, I am actually trying to update to version REL1_28 (not REL1_29 as mentioned) DSwissK (talk) 15:33, 15 October 2017 (UTC)
Enable Flow for other namespaces
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Could someone let me know how to enable Flow discussions for pages with other namespaces? Fokebox (talk) 14:39, 17 October 2017 (UTC)
- Extension:StructuredDiscussions#Enabling_or_disabling_StructuredDiscussions Ciencia Al Poder (talk) 10:13, 18 October 2017 (UTC)
- Thank you! Resolved Fokebox (talk) 12:09, 18 October 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.PHP Warning: Recursion detected in RequestContext::getLanguage
[edit]Hello,
The Flow extension seems to be installed and running fine in my MW 1.28.2, PHP 5.6.31, MariaDB 5.5.56 site. However, I have noticed somewhat sluggish performance and have seen a new warning showing up in my php logs when I refresh a page. The log is:
PHP Warning: Recursion detected in RequestContext::getLanguage in /var/www/html/pbswiki/includes/context/RequestContext.php on line 347
The warning vanishes when I disable the Flow extension, and reappears when it is enabled.
Any thoughts, or advice on how to address this? Revansx (talk) 12:44, 25 October 2017 (UTC)
- What version of StructuredDiscussions/Flow are you using? It should match your MW (REL1_28).
- Also, please provide a full stack trace. You can find it in your PHP logs, or temporarily turn Manual:$wgShowExceptionDetails to true. This will show every function and what it called, not just the warning. Mattflaschen-WMF (talk) 05:31, 27 October 2017 (UTC)
- PHP Error:
[23-Jan-2018 12:00:55 America/New_York] PHP Warning: Recursion detected in RequestContext::getLanguage in /var/www/html/w/includes/context/RequestContext.php on line 347
- Exception Log:
2018-01-23 17:00:55 myservername.mycompany.com mywiki: [...] /mywiki/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector BadMethodCallException from line 845 of /var/www/html/mywiki/includes/session/SessionManager.php: Sessions are disabled for this entry point
#0 /var/www/html/mywiki/includes/session/SessionManager.php(194): MediaWiki\Session\SessionManager->getSessionFromInfo(MediaWiki\Session\SessionInfo, WebRequest)
#1 /var/www/html/mywiki/includes/WebRequest.php(735): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
#2 /var/www/html/mywiki/includes/user/User.php(1199): WebRequest->getSession()
#3 /var/www/html/mywiki/includes/user/User.php(404): User->loadFromSession()
#4 /var/www/html/mywiki/includes/user/User.php(5125): User->load()
#5 /var/www/html/mywiki/includes/user/User.php(2768): User->loadOptions()
#6 /var/www/html/mywiki/includes/context/RequestContext.php(364): User->getOption(string)
#7 /var/www/html/mywiki/includes/StubObject.php(207): RequestContext->getLanguage()
#8 /var/www/html/mywiki/includes/StubObject.php(169): StubUserLang->_newObject()
#9 /var/www/html/mywiki/includes/StubObject.php(112): StubObject->_unstub(string, integer)
#10 /var/www/html/mywiki/includes/StubObject.php(139): StubObject->_call(string, array)
#11 /var/www/html/mywiki/extensions/Arrays/Arrays.php(108): StubObject->__call(string, array)
#12 /var/www/html/mywiki/extensions/Arrays/Arrays.php(108): StubUserLang->getMessageFromDB(string)
#13 [internal function]: ExtArrays::init(Parser)
#14 /var/www/html/mywiki/includes/Hooks.php(195): call_user_func_array(string, array)
#15 /var/www/html/mywiki/includes/parser/Parser.php(335): Hooks::run(string, array)
#16 [internal function]: Parser->firstCallInit()
#17 /var/www/html/mywiki/includes/StubObject.php(113): call_user_func_array(array, array)
#18 /var/www/html/mywiki/includes/StubObject.php(139): StubObject->_call(string, array)
#19 /var/www/html/mywiki/includes/cache/MessageCache.php(1077): StubObject->__call(string, array)
#20 /var/www/html/mywiki/includes/cache/MessageCache.php(1077): StubObject->firstCallInit()
#21 /var/www/html/mywiki/includes/cache/MessageCache.php(1054): MessageCache->getParser()
#22 /var/www/html/mywiki/includes/Message.php(1172): MessageCache->transform(string, boolean, Language, NULL)
#23 /var/www/html/mywiki/includes/Message.php(833): Message->transformText(string)
#24 /var/www/html/mywiki/includes/Message.php(902): Message->toString()
#25 /var/www/html/mywiki/includes/EditPage.php(3528): Message->text()
#26 /var/www/html/mywiki/extensions/VisualEditor/VisualEditorDataModule.php(59): EditPage::getCopyrightWarning(Title, string, string)
#27 /var/www/html/mywiki/extensions/VisualEditor/VisualEditorDataModule.php(21): VisualEditorDataModule->getMessageInfo(DerivativeResourceLoaderContext)
#28 /var/www/html/mywiki/includes/resourceloader/ResourceLoaderModule.php(627): VisualEditorDataModule->getScript(DerivativeResourceLoaderContext)
#29 /var/www/html/mywiki/includes/resourceloader/ResourceLoaderModule.php(595): ResourceLoaderModule->buildContent(DerivativeResourceLoaderContext)
#30 /var/www/html/mywiki/includes/resourceloader/ResourceLoaderModule.php(743): ResourceLoaderModule->getModuleContent(DerivativeResourceLoaderContext)
#31 /var/www/html/mywiki/includes/resourceloader/ResourceLoader.php(629): ResourceLoaderModule->getVersionHash(DerivativeResourceLoaderContext)
#32 [internal function]: ResourceLoader->{closure}(string)
#33 /var/www/html/mywiki/includes/resourceloader/ResourceLoader.php(630): array_map(Closure, array)
#34 /var/www/html/mywiki/includes/resourceloader/ResourceLoaderStartUpModule.php(404): ResourceLoader->getCombinedVersion(DerivativeResourceLoaderContext, array)
#35 /var/www/html/mywiki/includes/resourceloader/ResourceLoaderStartUpModule.php(377): ResourceLoaderStartUpModule->getAllModuleHashes(DerivativeResourceLoaderContext)
#36 /var/www/html/mywiki/includes/resourceloader/ResourceLoaderModule.php(746): ResourceLoaderStartUpModule->getDefinitionSummary(DerivativeResourceLoaderContext)
#37 /var/www/html/mywiki/includes/resourceloader/ResourceLoader.php(629): ResourceLoaderModule->getVersionHash(ResourceLoaderContext)
#38 [internal function]: ResourceLoader->{closure}(string)
#39 /var/www/html/mywiki/includes/resourceloader/ResourceLoader.php(630): array_map(Closure, array)
#40 /var/www/html/mywiki/includes/resourceloader/ResourceLoader.php(714): ResourceLoader->getCombinedVersion(ResourceLoaderContext, array)
#41 /var/www/html/mywiki/load.php(53): ResourceLoader->respond(ResourceLoaderContext)
#42 {main}
Revansx (talk) 17:07, 23 January 2018 (UTC)- @Revansx Your site is using sessions in "/mywiki/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector" which is no longer allowed.
- It looks like the issue may be:since that makes it user-specific. Mattflaschen-WMF (talk) 13:46, 16 February 2018 (UTC)
#12 /var/www/html/mywiki/extensions/Arrays/Arrays.php(108): StubUserLang->getMessageFromDB(string)
Templates issue for logged users
[edit]Hello,
I have an issue with this extension but just for logged users.
Looks here what happens: https://imgur.com/a/BRSTZ Adrianevs (talk) 17:26, 28 October 2017 (UTC)
- Hello
- Waht is your configuration? Which version of mediawiki are you using? Do you have errors in the inspector/console? Trizek_(WMF) (talk) 13:32, 13 November 2017 (UTC)
the "mention" feature causes "Internal Database Error" for *some* users
[edit]Hello, I am running a private enterprise SMW with Echo and Flow with VisualEditor and parsoid. The entire combination seems to work great except that for *some* users, using the mention feature results in the message "Internal Database Error" upon submitting the comment. However, the comment DID submit if the page is refreshed, and the mention link is intact, yet no notification is sent to the user mentioned. How can I debug this?
Product Version MediaWiki 1.28.2 PHP 5.6.32 (apache2handler) MariaDB 5.5.56-MariaDB ICU 50.1.2 Flow 1.1 (6ecdef3)2017-04-16T23:46:13 Echo – (f55bdd9)2016-10-25T16:11:28 VisualEditor 0.1.0 (93528b7)2016-10-25T16:23:47 parsoid /0.7.1+git - @Cindy.cicalese test
- @Revansx Revansx (talk) 18:07, 8 November 2017 (UTC)
- To help troubleshoot the issue, I have promoted a few users to the exact same list of groups and rights as I have as sysop to no avail. I was thinking that it might just be a permissions error for the "added rights" introduced with the Flow extension, but based on the test with the promoted user that doesn't seem to be the case. Revansx (talk) 18:26, 8 November 2017 (UTC)
- this just in ... it turns out that I am getting the error.. hmm?
- --> screenshot <--
Revansx (talk) 18:41, 8 November 2017 (UTC)
- how does one determine if the issue is with Flow or Echo or VisualEditor or Parsoid? Revansx (talk) 18:54, 8 November 2017 (UTC)
- I have users complaining about a similar error, @Revansx (and, hey Echo/Flow, devs, shouldn't you promote users in the thread in the completion box for mentions?)
- Let me see if it is coming from the same sort of db error. ☠MarkAHershberger☢(talk)☣ 21:25, 8 November 2017 (UTC)
- Ok, my first error is a content warning. Somehow "https:" is becoming "http:" somewhere along the way, so this doesn't look like your error (yet).
- Did you try running update.php? What does the debug log say? ☠MarkAHershberger☢(talk)☣ 21:40, 8 November 2017 (UTC)
- (Somehow "https:" is becoming "http:" somewhere along the way) ... this could explain a lot of other quirky behavior I am experiencing.. yes, I have run the update script, however, I run it with the "--skip-external-dependencies" because of some reason I can't remember. It won't work without that. Revansx (talk) 22:10, 8 November 2017 (UTC)
- I'll check the debug.. sec.. Revansx (talk) 22:12, 8 November 2017 (UTC)
- Can you try turning on the debug log for one request and reporting what errors it contains? ☠MarkAHershberger☢(talk)☣ 22:13, 8 November 2017 (UTC)
- Here's the debug log when the error happens (I had to alter and delate some of the particulars
- Revansx (talk) 22:36, 8 November 2017 (UTC)
IP: Start request POST /mywiki/api.php HTTP HEADERS: HOST: mywiki.xyzzyx.net CONNECTION: keep-alive CONTENT-LENGTH: 645 ACCEPT: application/json, text/javascript, */*; q=0.01 ORIGIN: https://mywiki.xyzzyx.net X-REQUESTED-WITH: XMLHttpRequest USER-AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 CONTENT-TYPE: application/x-www-form-urlencoded; charset=UTF-8 REFERER: https://mywiki.xyzzyx.net/smw/Talk:That_Place_There_Wiki ACCEPT-ENCODING: gzip, deflate, br ACCEPT-LANGUAGE: en-US,en;q=0.8 COOKIE: __utma=126397915.1258367925.1465950146.1474043409.1474043409.1; __utma=259910805.1258367925.1465950146.1497547351.1497547351.8; __utmz=259910805.1497547351.8.7.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); mywikitemplates-used-list=expanded; my_wikiUserName=MyWikiAdmin; mywikipreview-limit-report=expanded; mywikiUserName=Wikiadmin; mywiki29UserName=Wikiadmin; _ga=GA1.2.1258367925.1465950146; _gid=GA1.2.345984027.1510096102; Pulse-Launchpad-SessionId-API-.neacc.xyzzyx.net=N7n%3At%2C%3A59hwfe7jAGHZ%2C%3AcZrUpxk4_83an%60Q7HIR_oEqubADa%60; MediaWiki_Extensions_Auth_remoteuser_AuthRemoteuserSessionProvider_session=f2p79asaqhm635j8v7busupqu9v89r4i; MediaWiki_Extensions_Auth_remoteuser_AuthRemoteuserSessionProviderRemoteToken=rkevans; MediaWiki_Extensions_Auth_remoteuser_AuthRemoteuserSessionProviderUserID=5; MediaWiki_Extensions_Auth_remoteuser_AuthRemoteuserSessionProviderUserName=Rkevans; MediaWiki_Extensions_Auth_remoteuser_AuthRemoteuserSessionProviderToken=82fd518c1568ef5e583f8d7a27c32e07; VEE=wikitext; SMSESSION=9F5A3qm8t86FjsMtGrNMUAMcQP5sNK96yUJE2B2yqVxanKbYCuBl0xl+xEzFJ7v5WRlXQT2AujdMY2JcJ68Bp+7hPWn7fzR45+lCBHh3zQiaXu44f3haFYNYH+JCN1KWoz9GtV8NROAlqqkHaYHZhH1gUEiyuqQ/Gc97fP7sR65JjXbHA3B1C+LOOCmAE9JO8ZjM9rcLnZbDB8eWIi8g2fhL9Zl9KPDc2WSGVHcwBAGLISZAs+83DeLgVfXKAtRFNubhMH2DuTCQRTKqRA3mcP8aQCqdiMsShye7x24ecmBJbEwExh4FJy0yHf6TiZUpYtZMG703P1a8zYWWHvl+PGU7kd0FTLSNf6D2fgCkX5BhArPfaer8xI7wzpm2+eI2Xv7T/QviWXUJ9N/wmsJU297JDaBF4FRqMD6at7GyUyqEAnwhS73vjy6a2PUoT7Dq86+DXasILt7SvyOI7UnVn828gxhpRIUA5RWjJUHTa4VnmEXed6bl5RN/g2CQJ4KRIyxU6ADo6fl35h/lO623hwD7GF9O3U/5HJHdMMchABlxOt8GttQMoQXnV5G3XNaMO3ALeaogtLoZfFHM7gPVkQl1lGZUebQgAAPPhTcTc29gyb+ux8aNoQM2b3htYnj4SiDC/dzosCsGe34XdgqdEtTS6BIAMhF9xgRRXrhCRKFkRsRUdkdckXZ+z9PN5WtLbNhZq0YJGSBRPhl4REbtgTekrJP3u/ThFMG383i5xTFPMRIHZqVG5v3WMqEBBLkpk+08wV0pWRzm8LgJHEpmyYZfsSVsSzDrVBG8JIK5N+Frd9jVfbB7cEmmCsui4pA0kpVEj76ZasS3dyXhM3hejtZaJ70PgKrjYlBVdfbBcESesA0xSei01NwQYPROdZxZipRfv82PE/h8RGyvkn2pHX450U9BFbmvF0KdUNvQCxy8dxMOCq4Q/b00EiVdx4ELpP4UtV3L14t01ojclA4Zfedusb1DRv1sAtHMcnDbIvhkov2PIuXKdUt8CrFm9pRttnzS17OxV32JnpGBV82JftSOWjQUEBCNo9f0pfsvQAaTMZx8pi0BCQL5GAfzJ5weD9DWll7K3/4cxSO+T9Ky2SNEHHWvz0xNUkpdu7nJiuYgmI12uIqwt/BRc11J1kOk0EeUUX//kKVDePV6nUUaaL5DS0bFw5OBoK6t+gPLwbcF4vXlj80zOA4dAuU3VC+x SM_TRANSACTIONID: 0000000000000000000000005e32588b-44a2-5a0383ae-b5e17880-4989606f6293 SM_SDOMAIN: .xyzzyx.net SM_REALM: Landing SM_REALMOID: 06-7c090d0c-6451-44a0-9fe9-0c3698ca8290 SM_AUTHTYPE: Form SM_AUTHREASON: 0 SM_UNIVERSALID: 176593563 SM_AUTHDIROID: 0e-90ec6a8f-674e-4f70-8816-dcf7c3052065 SM_AUTHDIRSERVER: SM_AUTHDIRNAMESPACE: LDAP: SM_USERDN: SM_SERVERSESSIONID: pXawMPEnUBEfOs49hMLjNInYxRw= SM_SERVERSESSIONSPEC: EhGoXvl1ZZXqZEW2CmPjADfdXbBOwf9EArS4bsZ32tE36WdrzBInFt0Vw4vBrK9qUxc2GGsqX98Ycx9/rib5vhTuTvJk3KO+b9kozw9UrDhncVnpgXbsJupLdV3TZL+ONsfr4vjAtQyIanrzQsqC3YBRKU4mVLKxedmcGi77JolQl/u4Lu17BuaDDQrGcJPiWCfCl03++8E+U687wCGLxk78PLJxCi10L2wr5vfS06N65HBahm3HzIOnFLdZXd7Duv3GIGQrmu2CLY2MsIWKTsvGY6Fyy7/M7MQw+jXD33wecQ6WpO3WK0HzI1oHa+wg0+ZYdMtxG3IJE1plmRQ+wwV7sytCkAzo02cvIjEGwCOiMwcmGNDMcpFIdGsykbTvBK3myIOqj9inWuJAnPFfBYjrdCPM8rw18OImjVowBtUsRnsixJedS1UfUAV4CfO3CxbdXKK/JukBTmB+iWxAX4dQexGBBxEm+quhEivHrjQ= SM_TIMETOEXPIRE: 27857 SM_SERVERIDENTITYSPEC: [caches] cluster: EmptyBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: SqlBagOStuff, parser: SqlBagOStuff, session: SqlBagOStuff [caches] LocalisationCache: using store LCStoreDB [DBConnection] Connected to database 0 at 'localhost'. [SQLBagOStuff] Connection 49170 will be used for SqlBagOStuff [DBReplication] LBFactory::getChronologyProtector: using request info { "IPAddress": "139.88.115.249", "UserAgent": "Mozilla\/5.0 (Windows NT 6.1; WOW64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.100 Safari\/537.36", "ChronologyProtection": false } [DBConnection] Connected to database 0 at 'localhost'. [MessageCache] MessageCache::load: Loading en... local cache is empty, global cache is expired/volatile, loading from database User: cache miss for user 5 User: loading options for user 5 from database. [session] Setting up auto login session for remote user name 'rkevans' (mapped to MediaWiki user 'Rkevans', currently active as MediaWiki user 'Rkevans'). Unstubbing $wgPageFormsFormPrinter on call of $wgPageFormsFormPrinter::setInputTypeHook from SemanticFormsSelect::onExtensionFunction Fully initialised [cors] Non-whitelisted CORS request with session cookies Title::getRestrictionTypes: applicable restrictions to [[Talk:That Place There Wiki]] are {edit,move} [ContentHandler] Created handler for flow-board: Flow\Content\BoardContentHandler Title::getRestrictionTypes: applicable restrictions to [[Talk:That Place There Wiki]] are {edit,move} User::getBlockedStatus: checking... IP: Start request GET /mywiki/api.php?format=json&action=templatedata&doNotIgnoreMissingTitles=1&titles=Template%3AFlowMention HTTP HEADERS: X-REQUEST-ID: null USER-AGENT: Parsoid/0.7.1+git CONNECTION: close HOST: mywiki.xyzzyx.net SM_TRANSACTIONID: 0000000000000000000000005e32588b-4a85-5a0383af-b5e17880-92397f83d838 SM_SDOMAIN: .xyzzyx.net SM_REALM: Landing SM_REALMOID: 06-7c090d0c-6451-44a0-9fe9-0c3698ca8290 SM_AUTHTYPE: Form SM_AUTHREASON: 0 SM_UNIVERSALID: 176593563 SM_AUTHDIROID: 0e-90ec6a8f-674e-4f70-8816-dcf7c3052065 SM_SERVERSESSIONID: pXawMPEnUBEfOs49hMLjNInYxRw= SM_SERVERSESSIONSPEC: SM_TIMETOEXPIRE: 27856 NICKNAME: [caches] cluster: EmptyBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: SqlBagOStuff, parser: SqlBagOStuff, session: SqlBagOStuff [caches] LocalisationCache: using store LCStoreDB [DBConnection] Connected to database 0 at 'localhost'. [SQLBagOStuff] Connection 49172 will be used for SqlBagOStuff [DBReplication] LBFactory::getChronologyProtector: using request info { "IPAddress": "..............", "UserAgent": "Parsoid\/0.7.1+git", "ChronologyProtection": false } [DBConnection] Connected to database 0 at 'localhost'. [MessageCache] MessageCache::load: Loading en... local cache is empty, global cache is expired/volatile, loading from database User: cache miss for user 5 User: loading options for user 5 from database. [session] Setting up auto login session for remote user name 'rkevans' (mapped to MediaWiki user 'Rkevans', currently active as MediaWiki user 'Rkevans'). Unstubbing $wgPageFormsFormPrinter on call of $wgPageFormsFormPrinter::setInputTypeHook from SemanticFormsSelect::onExtensionFunction Fully initialised ApiMain::setCacheMode: setting cache mode private MediaWiki::preOutputCommit: primary transaction round committed MediaWiki::preOutputCommit: pre-send deferred updates completed MediaWiki::preOutputCommit: LBFactory shutdown completed Request ended normally [session] Saving all sessions on shutdown [DBConnection] Closing connection to database 'localhost'. [DBConnection] Closing connection to database 'localhost'. [ContentHandler] Created handler for wikitext: WikitextContentHandler User: loading options for user 5 from override cache. Unstubbing $wgParser on call of $wgParser::preSaveTransform from WikitextContent->preSaveTransform Parser: using preprocessor: Preprocessor_DOM User: loading options for user 5 from override cache. User: loading options for user 5 from override cache. IP: Start request POST /mywiki/api.php HTTP HEADERS: X-REQUEST-ID: null USER-AGENT: Parsoid/0.7.1+git CONNECTION: close COOKIE: __utma= HOST: mywiki.xyzzyx.net CONTENT-TYPE: application/x-www-form-urlencoded CONTENT-LENGTH: 167 SM_TRANSACTIONID: 0000000000000000000000005e32588b-4b10-5a0383af-b5e17880-6fc915e400e7 PAGER: NICKNAME: [caches] cluster: EmptyBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: SqlBagOStuff, parser: SqlBagOStuff, session: SqlBagOStuff [caches] LocalisationCache: using store LCStoreDB [DBConnection] Connected to database 0 at 'localhost'. [SQLBagOStuff] Connection 49174 will be used for SqlBagOStuff [DBReplication] LBFactory::getChronologyProtector: using request info { "IPAddress": "<myIPaddress>", "UserAgent": "Parsoid\/0.7.1+git", "ChronologyProtection": false } [DBConnection] Connected to database 0 at 'localhost'. [MessageCache] MessageCache::load: Loading en... local cache is empty, global cache is expired/volatile, loading from database User: cache miss for user 5 User: loading options for user 5 from database. [session] Setting up auto login session for remote user name 'rkevans' (mapped to MediaWiki user 'Rkevans', currently active as MediaWiki user 'Rkevans'). Unstubbing $wgPageFormsFormPrinter on call of $wgPageFormsFormPrinter::setInputTypeHook from SemanticFormsSelect::onExtensionFunction Fully initialised ApiMain::setCacheMode: setting cache mode anon-public-user-private User: loading options for user 5 from override cache. Unstubbing $wgParser on call of $wgParser::startExternalParse from ApiExpandTemplates->execute Parser: using preprocessor: Preprocessor_DOM Unstubbing $wgLang on call of $wgLang::getMessageFromDB from ExtArrays::init [ContentHandler] Created handler for flow-board: Flow\Content\BoardContentHandler [ContentHandler] Created handler for wikitext: WikitextContentHandler MediaWiki::preOutputCommit: primary transaction round committed MediaWiki::preOutputCommit: pre-send deferred updates completed MediaWiki::preOutputCommit: LBFactory shutdown completed Request ended normally [session] Saving all sessions on shutdown [DBConnection] Closing connection to database 'localhost'. [DBConnection] Closing connection to database 'localhost'. Title::getRestrictionTypes: applicable restrictions to [[Talk:That Place There Wiki]] are {edit,move} Title::getRestrictionTypes: applicable restrictions to [[Talk:That Place There Wiki]] are {edit,move} Title::getRestrictionTypes: applicable restrictions to [[Talk:That Place There Wiki]] are {edit,move} MediaWiki::preOutputCommit: primary transaction round committed [squid] CdnCacheUpdate::purge: https://mywiki.xyzzyx.net/smw/Talk:That_Place_There_Wiki https://mywiki.xyzzyx.net/mywiki/index.php?title=Talk:That_Place_There_Wiki&action=history MediaWiki::preOutputCommit: pre-send deferred updates completed [cookie] setcookie: "cpPosTime", "1510179760.6347", "1510179820", "/", "", "1", "1" [DBReplication] ChronologyProtector::shutdownLB: DB 'localhost' touched MediaWiki::preOutputCommit: LBFactory shutdown completed [cookie] setcookie: "UseDC", "master", "1510179770", "/", "", "1", "1" [cookie] setcookie: "UseCDNCache", "false", "1510179770", "/", "", "1", "1" GraphViz::onPageContentSave: entering GraphViz::deleteArticleUploadedFiles: entering GraphViz::deleteArticleFiles: deleting: /var/www/html/mywiki/images/graphviz/Topic_U1kewsfofd6hw1me*.* User: loading options for user 27 from database. [ContentHandler] Accessing flow-board content as text! [smw] Event: cached.prefetcher.reset :: U1kewsfofd6hw1me#2600# WikiPage::doEditUpdates: Using prepared edit... Parser output was marked as uncacheable and has not been saved. [smw] SMW\ParserData::updateStore from LinksUpdateConstructed: U1kewsfofd6hw1me#2600# (as DeferredCallableUpdate) Title::getNsText: Unknown namespace ID: 2601 Title::getNsText: Unknown namespace ID: 2601 [smw] SMW\ParserData::updateStore from LinksUpdateConstructed: U1kewsfofd6hw1me#2600# doUpdate Title::getRestrictionTypes: applicable restrictions to [[Topic:U1kewsfofd6hw1me]] are {edit,move} [DBQuery] LinksUpdate::incrTableUpdate: committing on behalf of LinksUpdate::doUpdate. [DBQuery] LinksUpdate::incrTableUpdate: committing on behalf of LinksUpdate::doUpdate. Title::getRestrictionTypes: applicable restrictions to [[Topic:U1kewsfofd6hw1me]] are {edit,move} [DBQuery] LinksUpdate::incrTableUpdate: committing on behalf of LinksUpdate::doUpdate. BacklinkCache::queryLinks: got results from DB Title::getRestrictionTypes: applicable restrictions to [[Topic:U1kewsfofd6hw1me]] are {edit,move} [squid] CdnCacheUpdate::purge: https://mywiki.xyzzyx.net/smw/:U1kewsfofd6hw1me https://mywiki.xyzzyx.net/mywiki/index.php?title=:U1kewsfofd6hw1me&action=history [squid] CdnCacheUpdate::purge: https://mywiki.xyzzyx.net/smw/Topic:U1kewsfofd6hw1me https://mywiki.xyzzyx.net/mywiki/index.php?title=Topic:U1kewsfofd6hw1me&action=history https://mywiki.xyzzyx.net/smw/Talk:That_Place_There_Wiki https://mywiki.xyzzyx.net/mywiki/index.php?title=Talk:That_Place_There_Wiki&action=history [ContentHandler] Accessing flow-board content as text! User: cache miss for user 27 User: loading options for user 27 from database. [smw] SMW\ParserData::updateStore (Found rev:11699, skip update) [DBPerformance] LBFactory::commitAndWaitForReplication: LinksUpdate::incrTableUpdate does not have outer scope. #0 /var/www/html/mywiki/includes/deferred/LinksUpdate.php(420): LBFactory->commitAndWaitForReplication('LinksUpdate::in...', NULL, Array) #1 /var/www/html/mywiki/includes/deferred/LinksUpdate.php(265): LinksUpdate->incrTableUpdate('page_props', 'pp', Array, Array) #2 /var/www/html/mywiki/includes/deferred/LinksUpdate.php(177): LinksUpdate->doIncrementalUpdate() #3 /var/www/html/mywiki/includes/deferred/DataUpdate.php(53): LinksUpdate->doUpdate() #4 /var/www/html/mywiki/extensions/Flow/includes/LinksTableUpdater.php(39): DataUpdate::runUpdates(Array) #5 /var/www/html/mywiki/extensions/Flow/includes/Data/Listener/ReferenceRecorder.php(92): Flow\LinksTableUpdater->doUpdate(Object(Flow\Model\Workflow)) #6 [internal function]: Flow\Data\Listener\ReferenceRecorder->Flow\Data\Listener\{closure}() #7 /var/www/html/mywiki/includes/deferred/MWCallableUpdate.php(28): call_user_func(Object(Closure)) #8 /var/www/html/mywiki/includes/deferred/DeferredUpdates.php(263): MWCallableUpdate->doUpdate() #9 /var/www/html/mywiki/includes/deferred/DeferredUpdates.php(225): DeferredUpdates::runUpdate(Object(MWCallableUpdate), Object(LBFactorySimple), 2) #10 /var/www/html/mywiki/includes/deferred/DeferredUpdates.php(133): DeferredUpdates::execute(Array, 'enqueue', 2) #11 /var/www/html/mywiki/includes/MediaWiki.php(891): DeferredUpdates::doUpdates('enqueue') #12 /var/www/html/mywiki/includes/MediaWiki.php(720): MediaWiki->restInPeace('fast') #13 /var/www/html/mywiki/includes/MediaWiki.php(739): MediaWiki->{closure}() #14 /var/www/html/mywiki/api.php(118): MediaWiki->doPostOutputShutdown('fast') #15 {main} Title::getRestrictionTypes: applicable restrictions to [[Main Page]] are {edit,move} Title::getRestrictionTypes: applicable restrictions to [[Main Page]] are {edit,move} Title::getRestrictionTypes: applicable restrictions to [[Main Page]] are {edit,move} User: cache miss for user 2 User: loading options for user 2 from database. [objectcache] Rejected set() for global:user:id:mywiki:2 due to pending writes. [DBConnection] Connected to database 0 at 'localhost'. [error] [WgODrr21@lacG74H9ca8XQAAAAI] /mywiki/api.php ErrorException from line 295 of /var/www/html/mywiki/includes/changes/RecentChange.php: PHP Notice: Undefined index: rc_new #0 /var/www/html/mywiki/includes/changes/RecentChange.php(295): MWExceptionHandler::handleError(integer, string, string, integer, array) #1 /var/www/html/mywiki/extensions/Flow/includes/Data/Listener/RecentChangesListener.php(114): RecentChange->save(boolean) #2 /var/www/html/mywiki/extensions/Flow/includes/Data/Listener/DeferredInsertLifecycleHandler.php(36): Flow\Data\Listener\RecentChangesListener->onAfterInsert(Flow\Model\PostRevision, array, array) #3 [internal function]: Flow\Data\Listener\DeferredInsertLifecycleHandler->Flow\Data\Listener\{closure}() #4 /var/www/html/mywiki/includes/deferred/MWCallableUpdate.php(28): call_user_func(Closure) #5 /var/www/html/mywiki/includes/deferred/DeferredUpdates.php(263): MWCallableUpdate->doUpdate() #6 /var/www/html/mywiki/includes/deferred/DeferredUpdates.php(225): DeferredUpdates::runUpdate(MWCallableUpdate, LBFactorySimple, integer) #7 /var/www/html/mywiki/includes/deferred/DeferredUpdates.php(133): DeferredUpdates::execute(array, string, integer) #8 /var/www/html/mywiki/includes/MediaWiki.php(891): DeferredUpdates::doUpdates(string) #9 /var/www/html/mywiki/includes/MediaWiki.php(720): MediaWiki->restInPeace(string) #10 /var/www/html/mywiki/includes/MediaWiki.php(739): MediaWiki->{closure}() #11 /var/www/html/mywiki/api.php(118): MediaWiki->doPostOutputShutdown(string) #12 {main} [smw] SMW\ParserData::updateStore (Found rev:11699, skip update) Title::getRestrictionTypes: applicable restrictions to [[Main Page]] are {edit,move} Title::getRestrictionTypes: applicable restrictions to [[Main Page]] are {edit,move} User: cache miss for user 9 User: loading options for user 9 from database. [objectcache] Rejected set() for global:user:id:mywiki:9 due to pending writes. [fatal] [d89208cc] PHP Fatal Error: Cannot override final method EchoEventPresentationModel::getType() #0 [internal function]: MWExceptionHandler::handleFatalError() #1 {main} [session] Saving all sessions on shutdown [runJobs] EchoNotificationDeleteJob Talk:That_Place_There_Wiki userIds={"2":2} requestId=WgODrr21@lacG74H9ca8XQAAAAI (id=26919,timestamp=20171108222240) STARTING [runJobs] EchoNotificationDeleteJob Talk:That_Place_There_Wiki userIds={"2":2} requestId=WgODrr21@lacG74H9ca8XQAAAAI (id=26919,timestamp=20171108222240) t=1 good
- @MarkAHershberger someday I hope to be able to look at the debug logs and make some meaningful observations, ha ha :-) Revansx (talk) 22:52, 8 November 2017 (UTC)
- I see 2 errors here:
- [error] [WgODrr21@lacG74H9ca8XQAAAAI] /mywiki/api.php ErrorException from line 295 of /var/www/html/mywiki/includes/changes/RecentChange.php: PHP Notice: Undefined index: rc_new
- This is just a PHP notice, not really an error, but probably worh reporting it
- [fatal] [d89208cc] PHP Fatal Error: Cannot override final method EchoEventPresentationModel::getType()
- This seems to be the real error here Ciencia Al Poder (talk) 10:28, 9 November 2017 (UTC)
- [error] [WgODrr21@lacG74H9ca8XQAAAAI] /mywiki/api.php ErrorException from line 295 of /var/www/html/mywiki/includes/changes/RecentChange.php: PHP Notice: Undefined index: rc_new
- Thank you for looking at it. Does that mean I should look in the PHP logs for more clues? Revansx (talk) 13:08, 9 November 2017 (UTC)
- here are the corresponding PHP errors:
- Revansx (talk) 13:23, 9 November 2017 (UTC)
[09-Nov-2017 08:19:30 America/New_York] PHP Deprecated: Use of WatchedItem::fromUserTitle was deprecated in MediaWiki 1.27. [Called from Flow\Data\Listener\ImmediateWatchTopicListener::onAfterInsertExpectedChange in /var/www/html/mywiki/extensions/Flow/includes/Data/Listener/WatchTopicListener.php at line 119] in /var/www/html/mywiki/includes/debug/MWDebug.php on line 311 [09-Nov-2017 08:19:30 America/New_York] PHP Deprecated: Use of WatchedItem::addWatch was deprecated in MediaWiki 1.27. [Called from Flow\Data\Listener\ImmediateWatchTopicListener::onAfterInsertExpectedChange in /var/www/html/mywiki/extensions/Flow/includes/Data/Listener/WatchTopicListener.php at line 119] in /var/www/html/mywiki/includes/debug/MWDebug.php on line 311 [09-Nov-2017 08:19:30 America/New_York] PHP Fatal error: Cannot override final method EchoEventPresentationModel::getType() in /var/www/html/mywiki/extensions/Flow/includes/Notifications/MentionPresentationModel.php on line 65
- @MarkAHershberger, @Ciencia Al Poder .. this?
/extensions/Flow/includes/Notifications/MentionPresentationModel.php on line 65
Revansx (talk) 13:23, 9 November 2017 (UTC)- That is probably what is causing the problem. It looks like your Flow extension is from a different, incompatible point in time of your Echo extension.
- How did you get both of those extensions? ☠MarkAHershberger☢(talk)☣ 15:58, 9 November 2017 (UTC)
- Ah! ("I see!" said the blind man :-) ) ... oh, I just installed them at different times from the download manager and manually imported them to my site, etc.. . Since I'm running MW 1.28.2 should I use composer to update them? If so, which versions would you recommend Revansx (talk) 17:49, 9 November 2017 (UTC)
- So the download manager skips MW 1.28 on both Echo and Flow.. I think I have the 1.27 version of each loaded.. is there something specifically tricky about getting them to work in a 1.28 MW core? Revansx (talk) 18:27, 9 November 2017 (UTC)
How to enable on a single page ?
[edit]Hi,
I recently installed StructuredDiscussions extension but on my end, Special:EnableFlow page is missing.
I miss a step or it was removed ? Then how to enable it on a specific page ? Adrianevs (talk) 11:22, 2 December 2017 (UTC)
- Hi
- Do you have access to Special:EnableStructuredDiscussions instead? Trizek_(WMF) (talk) 10:11, 4 December 2017 (UTC)
- No, I don't
- ----------------------------------------------------------------------------------
- No such special page
- You have requested an invalid special page.
- A list of valid special pages can be found at Special pages.
- Return to Main Page.
- ----------------------------------------------------------------------------------
- Nothing relevant under Special pages. Adrianevs (talk) 19:54, 4 December 2017 (UTC)
- If you go to Special:Version, is Flow listed there? If not, you didn't install it correctly (and we can troubleshoot from there). Roan Kattouw (WMF) (talk) 17:13, 5 December 2017 (UTC)
- Hi, Yes “Flow” is listed on the version page. Adrianevs (talk) 19:16, 6 December 2017 (UTC)
Flow doesn't warn about a badly formatted inter-wiki link in a preview?
[edit]Switching from the visual wikitext editor to the visual editor to see a preview causes the invalid markup such as [[en:w:WYSIWYG]] to be rendered as valid a link, at times. When saved the invalid markup doesn't get rendered thus confusing the user. This doesn't happen all the time.The wikitext
[[en:w:Natural language processing]]
appears as a valid link in the preview but when I save the topic neither the link nor the text appear. I then came to know from w:Help:Interwiki linking that there is some difference between[[w:en:]]
and[[en:w:]]
. In case[[en:w:]]
is invalid why does the preview show it as a valid link? Where are things getting wrong? Kaartic [talk] 07:41, 5 December 2017 (UTC)- Example Kaartic [talk] 07:41, 5 December 2017 (UTC)
- You seem to be confused.
- 1.
[[en:w:]]
is not an internal link, it is an interlanguage link. - 2. What looks like a preview isn't really, it is just a rendering by visualeditor, which is not a
- en:WYSIWYG
- editor, unlike what most people seem to believe.
- Also, confusingly, if you're editing using wikitext and you enter that, it should render in the sidebar. But flow may not render it the same way. It might show up on the top board rather than the thread it is added to or not at all.
- Finally, due to either an issue or a failure in usability. In the VE options it is stated that these interlanguage links must be set using wikidata. Anyway, if all the stars align visualeditor generally changes that to [[:en:w:]]. 197.218.84.63 (talk) 12:57, 5 December 2017 (UTC)
- Oops flow ate my interlanguage link (and thereby proving my point), it should be "is not a en:WYSIWYG editor". 197.218.84.63 (talk) 12:59, 5 December 2017 (UTC)
- @197.218.84.63: Sorry, for using imprecise terms (corrected the title). Thank you for an explanation.
- Now, this seems to be an issue with the visual editor, right? It should not have shown
[[en:w:Natural language processing]]
as a link to the article thus making the user believe that it is a valid link. (Ctrl+clicking the text opens the article in a new tab in my browser). So, I guess the visual editor should catch this and warn the user about it rather than showing it as a valid link when editing and disappears when rendered after saving the page. Kaartic [talk] 13:18, 5 December 2017 (UTC) - Well, it is an issue with the tool that parses wikitext, because when you click preview what it really does is transform the wikitext to html, and when you click back to wikitext it serializes (or transforms) the html back to wikitext. Currently when flow content is saved, it is actually transformed and stored as html. In most cases this results in a 1:1 conversion. But wikitext is a messy and ill-designed markup language, so it is utterly impossible to have a consistent conversion back and forth (with a somewhat complicated text) without introducing or removing artefacts.
- Anyway, it isn't visualeditor's fault. See:
- https://phabricator.wikimedia.org/T63725
- https://phabricator.wikimedia.org/T95850 197.218.84.63 (talk) 14:42, 5 December 2017 (UTC)
- Thanks for the information. But the summary doesn't seem to correctly capture what I observed (will update it). I couldn't observe the behaviour that made me start this discussion. So, this seems to be a transient bug, at least for now ;-). Kaartic [talk] 17:01, 5 December 2017 (UTC)
CONTENT_MODEL_FLOW_BOARD or 'flow-board'
[edit]Which is the correct, or better way looking forward, to enable Flow in a namespace:
$wgNamespaceContentModels[NS_USER_TALK] = 'flow-board';
or
$wgNamespaceContentModels[NS_USER_TALK] = CONTENT_MODEL_FLOW_BOARD; Ahmad Gharbeia أحمد غربية (talk) 09:40, 15 December 2017 (UTC)
- Nowadays it's the first one. If the documentation still has the second one somewhere, let us know and we'll fix it. 216.9.110.11 (talk) 17:45, 15 December 2017 (UTC)
Avail associated page's permalink (OID)
[edit]It would be very useful to have, with each comment in StructuredDiscussions, the permalink of the wiki page in its version at the time of commenting. This would make it easier to follow historical comments on long-lived pages where discussions contribute to the development of the page and give context.
A time-range filter for comments would also be useful.
I've added a task request in phabricator Ahmad Gharbeia أحمد غربية (talk) 08:56, 18 December 2017 (UTC)
Symlinking extension directory
[edit]I download extensions to a directory and symlink to them from
$IP/extensions
However, with StructuredDiscussions, Echo and SMW this doesn't work since their respective maintenance scripts are unable to call MW's maintenance scripts because it assumes the
extensions
directory to be in a certain place relative to themaintenance
directory.So running
$IP/maintenance/update.php
yields:PHP Fatal error: require_once(): Failed opening required '/var/www/extentions.mw/Flow-REL1_30-9193b03/maintenance/../../../maintenance/Maintenance.php'
Aside from patching Flow or placing it directly in
$IP/extensions
, is there a workaround?Does this have to do with the wfLoadExtension method of loading extensions? Ahmad Gharbeia أحمد غربية (talk) 15:41, 30 December 2017 (UTC)
- Maintenance files use this:
require_once getenv( 'MW_INSTALL_PATH' ) !== false ? getenv( 'MW_INSTALL_PATH' ) . '/maintenance/Maintenance.php' : __DIR__ . '/../../../maintenance/Maintenance.php';
- Of course, __DIR__ will point to the physical location, ignoring any symlink. You may have better luck if you define a MW_INSTALL_PATH environment variable and set it to the correct location. Ciencia Al Poder (talk) 14:56, 31 December 2017 (UTC)
- Thanks! But setting an environment variable would also be problematic since I run several wikis on the same server.
- Unless of course I make sure they all run from the same code base all the time. Ahmad Gharbeia أحمد غربية (talk) 22:21, 6 January 2018 (UTC)