Extension talk:Page Forms

Unicode error with autoedit, and formredlink
Hi, I'm having a "It appears that your browser does not support Unicode. It is required to edit pages, so your edit was not saved. " error when trying to use autoedit and formredlink. Specific correction for MW 1.30 in PF_FormPrinter.php only solved gui form editing error. Standard page edition with text including formredlink with "create page" option doesn't even save content. Please help!

Possible Solution
I too was seeing that error message with an autoedit, but it had nothing to do with what the actual problem was. The problem for me was that the target page did not already exist. If I make certain that the target page exists before clicking the autoedit, I do not get the error. Sounds like a bug to me.

Multi Instance fields - parser functions only parse once.
Mediawiki 1.29 I have an uploadable field in a multiple template which I would like to auto-generate filenames to ensure they are unique. I thought using the page name with a timestamp would be simple enough, but the timestamp doesn't update when you "Add Another".

I have also tried: Similar results except that it does increment once. First filename gets a 1. When I "Add Another" the filename there gets a 2, and all added after that remain 2. Is there a way to ensure each uploaded file is unique regardless of the incoming filename. I thought this approach should work, but clearly I'm missing something. Thanks. Paul


 * I'm aware of the issues resulting from multiple-instance templates only being parsed once, and I don't know of a solution for them, unfortunately. Yaron Koren (talk) 03:02, 3 January 2018 (UTC)

Is there another way to do what I'm trying to do? A way to generate unique filenames in a multiple-instance template? Any workaround suggestions are welcome. Thx.

(SOLVED) Upload file field gives blank page
Hi Yaron, I'm running MW 1.30 (http://csdms.colorado.edu/wiki/Special:Version) using your PageForms (latest version). It operates great with Cargo and Sementic Mediawiki except for the 'Upload file' function. It was working well running MW1.29 with an older PageForms version but after updating I get a blank page as soon as I try to upload a file, see screenshot. . Any idea what might cause that? Happy new year, --Albert Ke (talk) 17:34, 3 January 2018 (UTC) Ps.1 File upload function MediaWiki provides standard works fine. Ps.2 Same result when using chrome or Safari


 * Please see this page for how to get error messages, instead of blank pages, to be displayed. Yaron Koren (talk) 02:25, 4 January 2018 (UTC)


 * Thank you Yaron, and good point, but I have the 'get error messages print to screen' always on using last lines in LocalSetting.php:

error_reporting( E_ALL ); ini_set( 'display_errors', 1 );


 * And I wish there where but no error message shows up, also not in the web log files. Any idea / hint more than welcome!

--Albert Ke (talk) 19:37, 4 January 2018 (UTC)


 * Oh, okay. Does the JavaScript console in the browser show any errors? Yaron Koren (talk) 22:39, 4 January 2018 (UTC)


 * Never mind - I was able to reproduce this problem. It's a JS bug due to the jump in the jQuery version, to 3.0, in MW 1.30. I just checked in a fix for this, so if you get the very latest code, the problem should go away. Yaron Koren (talk) 04:08, 5 January 2018 (UTC)


 * Awesome, thank you for the quick fix Yaron! Problem solved with the latest fix. Much appreciated! --Albert Ke (talk) 14:46, 5 January 2018 (UTC)

Multi Instance Forms Within Form Not Working
I had updated PageForms the other day via git and didn't notice any issues, but I was reported that the buttons to create a multi instance form do not bring up the form. If an instance already exists it shows up but can't add. I updated to mediawiki 1.30 just in case it was a version mismatch issue and the problem persists. Page with the Form, the Form --Cody3647 (talk) 22:42, 12 January 2018 (UTC)


 * The fact that this is a public wiki makes debugging a lot easier. Clearly this is a JavaScript problem. Your form appears to have two JS errors, either of which may be blocking the "Add another" button from working:
 * The problem described here, with WikiEditor
 * The importScript calls not working in MediaWiki:Common.js


 * I would try removing "editor=wikieditor" from the form, and if that doesn't fix the problem, simplifying MediaWiki:Common.js. If neither of those fixes the problem, let me know. Yaron Koren (talk) 23:29, 12 January 2018 (UTC)


 * Removing the wikieditor worked, though I do like having it. And I fixed the other error as well. --Cody3647 (talk) 01:10, 13 January 2018 (UTC)

input type "tokens" no longer working
After the update to 4.2.1 the input type tokens is no longer working on a MW 1.27.4. After rolling back to 4.2.0 things a fine again. --&#91;&#91;kgh&#93;&#93; (talk) 20:51, 24 January 2018 (UTC)


 * I'm guessing that this is actually an unrelated JavaScript error. If you look in the browser console, do you see any error messages? Yaron Koren (talk) 22:03, 24 January 2018 (UTC)


 * Just had a look at console:

Exception in module-execute in module ext.pageforms.main: load.php:178:411 TypeError: func is undefined TypeError: func is undefined getFunctionFromName@https://example.org/w/load.php?debug=false&lang=en&modules=ext.Lingo.Scripts%7Cext.echo.api%2Cinit%7Cext.headertabs%2Cpageforms%7Cext.headertabs.large%7Cext.pageforms.autogrow%2Cbrowser%2Ccheckboxes%2Cdatepicker%2Cdynatree%2Cfancybox%2Cimagepreview%2Cmain%2Crating%2Cselect2%2Csimpleupload%2Csubmit%2Cwikieditor%7Cext.scite.tooltip%7Cjquery.async%2CbyteLength%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions%2CtabIndex%2CtextSelection%7Cmediawiki.ForeignApi%2CForeignStructuredUpload%2CForeignUpload%2CTitle%2CUpload%2CUri%2Capi%2Ccldr%2Ccookie%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Ctemplate%2Cuser%7Cmediawiki.ForeignApi.core%7Cmediawiki.ForeignStructuredUpload.BookletLayout%2Cconfig%7Cmediawiki.Upload.BookletLayout%2CDialog%7Cmediawiki.api.edit%2Cmessages%2Cparse%2Cupload%2Cuser%2Cwatch%7Cmediawiki.language.data%2Cinit%2CspecialCharacters%7Cmediawiki.libs.jpegmeta%2Cpluralruleparser%7Cmediawiki.page.ready%7Cmediawiki.page.watch.ajax%7Cmediawiki.template.regexp%7Cmediawiki.widgets.CategorySelector%2CDateInputWidget%2CStashedFileWidget%7Cmoment%2Coojs%2Coojs-ui-core%2Coojs-ui-widgets%2Coojs-ui-windows%2Csite%7Conoi.blobstore%2ClocalForage%2Cmd5%2Cutil%7Coojs-ui-core.styles%7Coojs-ui.styles.icons%2Cicons-content%2Cicons-editing-advanced%2Cindicators%2Ctextures%7Cskins.foreground.js%2Cmodernizr%7Cuser.defaults&skin=foreground&version=f6f4492ae581:128:439 @https://example.org/w/load.php?debug=false&lang=en&modules=ext.Lingo.Scripts%7Cext.echo.api%2Cinit%7Cext.headertabs%2Cpageforms%7Cext.headertabs.large%7Cext.pageforms.autogrow%2Cbrowser%2Ccheckboxes%2Cdatepicker%2Cdynatree%2Cfancybox%2Cimagepreview%2Cmain%2Crating%2Cselect2%2Csimpleupload%2Csubmit%2Cwikieditor%7Cext.scite.tooltip%7Cjquery.async%2CbyteLength%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions%2CtabIndex%2CtextSelection%7Cmediawiki.ForeignApi%2CForeignStructuredUpload%2CForeignUpload%2CTitle%2CUpload%2CUri%2Capi%2Ccldr%2Ccookie%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Ctemplate%2Cuser%7Cmediawiki.ForeignApi.core%7Cmediawiki.ForeignStructuredUpload.BookletLayout%2Cconfig%7Cmediawiki.Upload.BookletLayout%2CDialog%7Cmediawiki.api.edit%2Cmessages%2Cparse%2Cupload%2Cuser%2Cwatch%7Cmediawiki.language.data%2Cinit%2CspecialCharacters%7Cmediawiki.libs.jpegmeta%2Cpluralruleparser%7Cmediawiki.page.ready%7Cmediawiki.page.watch.ajax%7Cmediawiki.template.regexp%7Cmediawiki.widgets.CategorySelector%2CDateInputWidget%2CStashedFileWidget%7Cmoment%2Coojs%2Coojs-ui-core%2Coojs-ui-widgets%2Coojs-ui-windows%2Csite%7Conoi.blobstore%2ClocalForage%2Cmd5%2Cutil%7Coojs-ui-core.styles%7Coojs-ui.styles.icons%2Cicons-content%2Cicons-editing-advanced%2Cindicators%2Ctextures%7Cskins.foreground.js%2Cmodernizr%7Cuser.defaults&skin=foreground&version=f6f4492ae581:128:765 fire@https://example.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=HCxTBC9n:45:104 add@https://example.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=HCxTBC9n:45:656 jQuery.fn.ready@https://example.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=HCxTBC9n:49:40 @https://example.org/w/load.php?debug=false&lang=en&modules=ext.Lingo.Scripts%7Cext.echo.api%2Cinit%7Cext.headertabs%2Cpageforms%7Cext.headertabs.large%7Cext.pageforms.autogrow%2Cbrowser%2Ccheckboxes%2Cdatepicker%2Cdynatree%2Cfancybox%2Cimagepreview%2Cmain%2Crating%2Cselect2%2Csimpleupload%2Csubmit%2Cwikieditor%7Cext.scite.tooltip%7Cjquery.async%2CbyteLength%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions%2CtabIndex%2CtextSelection%7Cmediawiki.ForeignApi%2CForeignStructuredUpload%2CForeignUpload%2CTitle%2CUpload%2CUri%2Capi%2Ccldr%2Ccookie%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Ctemplate%2Cuser%7Cmediawiki.ForeignApi.core%7Cmediawiki.ForeignStructuredUpload.BookletLayout%2Cconfig%7Cmediawiki.Upload.BookletLayout%2CDialog%7Cmediawiki.api.edit%2Cmessages%2Cparse%2Cupload%2Cuser%2Cwatch%7Cmediawiki.language.data%2Cinit%2CspecialCharacters%7Cmediawiki.libs.jpegmeta%2Cpluralruleparser%7Cmediawiki.page.ready%7Cmediawiki.page.watch.ajax%7Cmediawiki.template.regexp%7Cmediawiki.widgets.CategorySelector%2CDateInputWidget%2CStashedFileWidget%7Cmoment%2Coojs%2Coojs-ui-core%2Coojs-ui-widgets%2Coojs-ui-windows%2Csite%7Conoi.blobstore%2ClocalForage%2Cmd5%2Cutil%7Coojs-ui-core.styles%7Coojs-ui.styles.icons%2Cicons-content%2Cicons-editing-advanced%2Cindicators%2Ctextures%7Cskins.foreground.js%2Cmodernizr%7Cuser.defaults&skin=foreground&version=f6f4492ae581:128:238 @https://example.org/w/load.php?debug=false&lang=en&modules=ext.Lingo.Scripts%7Cext.echo.api%2Cinit%7Cext.headertabs%2Cpageforms%7Cext.headertabs.large%7Cext.pageforms.autogrow%2Cbrowser%2Ccheckboxes%2Cdatepicker%2Cdynatree%2Cfancybox%2Cimagepreview%2Cmain%2Crating%2Cselect2%2Csimpleupload%2Csubmit%2Cwikieditor%7Cext.scite.tooltip%7Cjquery.async%2CbyteLength%2CcheckboxShiftClick%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions%2CtabIndex%2CtextSelection%7Cmediawiki.ForeignApi%2CForeignStructuredUpload%2CForeignUpload%2CTitle%2CUpload%2CUri%2Capi%2Ccldr%2Ccookie%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Ctemplate%2Cuser%7Cmediawiki.ForeignApi.core%7Cmediawiki.ForeignStructuredUpload.BookletLayout%2Cconfig%7Cmediawiki.Upload.BookletLayout%2CDialog%7Cmediawiki.api.edit%2Cmessages%2Cparse%2Cupload%2Cuser%2Cwatch%7Cmediawiki.language.data%2Cinit%2CspecialCharacters%7Cmediawiki.libs.jpegmeta%2Cpluralruleparser%7Cmediawiki.page.ready%7Cmediawiki.page.watch.ajax%7Cmediawiki.template.regexp%7Cmediawiki.widgets.CategorySelector%2CDateInputWidget%2CStashedFileWidget%7Cmoment%2Coojs%2Coojs-ui-core%2Coojs-ui-widgets%2Coojs-ui-windows%2Csite%7Conoi.blobstore%2ClocalForage%2Cmd5%2Cutil%7Coojs-ui-core.styles%7Coojs-ui.styles.icons%2Cicons-content%2Cicons-editing-advanced%2Cindicators%2Ctextures%7Cskins.foreground.js%2Cmodernizr%7Cuser.defaults&skin=foreground&version=f6f4492ae581:100:104 runScript/<@https://example.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=HCxTBC9n:163:74 fire@https://example.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=HCxTBC9n:45:104 add@https://example.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=HCxTBC9n:45:656 always@https://example.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=HCxTBC9n:46:865 runScript@https://example.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=HCxTBC9n:162:944 checkCssHandles@https://example.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=HCxTBC9n:163:774 cssHandle/<@https://example.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=HCxTBC9n:163:904 fire@https://example.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=HCxTBC9n:45:104 fireWith@https://example.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=HCxTBC9n:46:431 fire@https://example.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=HCxTBC9n:46:474 fireCallbacks@https://example.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=HCxTBC9n:157:607 addEmbeddedCSS@https://example.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=HCxTBC9n:158:681 addEmbeddedCSS/cssBufferTimer<@https://example.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=foreground&version=HCxTBC9n:157:832 load.php:178:449
 * Stack trace:

I hope this helps debugging. Cheers --&#91;&#91;kgh&#93;&#93; (talk) 22:21, 24 January 2018 (UTC)


 * Hm, somewhat. Does the problem with "tokens" go away if you disable the Lingo extension, or if you switch from the Foreground skin to Vector? If neither of those fixes the problem, could you add "?debug=true" to the page and let me know what the error message is? Yaron Koren (talk) 22:29, 24 January 2018 (UTC)


 * Disabling Lingo and Semantic Glossary does not change a thing, neither does using Vector. When adding "&debug=true" I am getting https://example.org/w/vendor/onoi/shared-resources/res/jquery.qtip/extended/jquery.qtip.js?18428". --&#91;&#91;kgh&#93;&#93; (talk) 22:47, 24 January 2018 (UTC)


 * Alright. What's the full error message? Yaron Koren (talk) 23:17, 24 January 2018 (UTC)


 * That's all I get in error console. :( --&#91;&#91;kgh&#93;&#93; (talk) 23:21, 24 January 2018 (UTC)


 * Adding "debug=true" to the URL made the error message go from 10 lines to a single URL? Yaron Koren (talk) 23:38, 24 January 2018 (UTC)


 * Affirmative and as stupid it may sound. --&#91;&#91;kgh&#93;&#93; (talk) 09:58, 25 January 2018 (UTC) PS That's how I constructed the call to the page: https://example.org/w/index.php?title=PageName&action=formedit&debug=true Turning error reporting on in "LocalSettings.php" does not help either.


 * Alright. I probably should have asked this before, but: with "debug=true" in the URL, does the original problem still happen? My guess is no, given that there's no actual error message any more. Yaron Koren (talk) 15:04, 25 January 2018 (UTC)


 * The issue is still there. No tokens. I have no idea why console remains silent. --&#91;&#91;kgh&#93;&#93; (talk) 23:49, 25 January 2018 (UTC)

That's strange, okay. If you temporarily disable all the extensions except for Page Forms, is the problem still there? Yaron Koren (talk) 23:59, 25 January 2018 (UTC)

About "formredlink"_parser_function
This is still happening in 4.2.0 and 4.2.1 which is a pretty big issue since I have to remove superflous content from many pages. I am using the following syntax to create the page:

On the glossary page created not only the  template gets added but also the whole content of the originating page. Sometimes I have up to 6 edits creating the missing page. In the following example I got 3 edits:

2018-01-24 22:07:55 SMW\FulltextSearchTableUpdateJob Glossary:Plexus slot:id=dermosco_mw378-mwyv_:smw:diff:284fb9a5c27f200720efe2f46f36980f requestId=WmkDpCU87d0AALiveukAAAAP (id=32921,timestamp=20180124220737) STARTING 2018-01-24 22:07:55 SMW\FulltextSearchTableUpdateJob Glossary:Plexus slot:id=dermosco_mw378-mwyv_:smw:diff:284fb9a5c27f200720efe2f46f36980f requestId=WmkDpCU87d0AALiveukAAAAP (id=32921,timestamp=20180124220737) t=84 good 2018-01-24 22:07:55 htmlCacheUpdate Philosopy_of_Dermoscopedia table=redirect recursive=1 rootJobIsSelf=1 rootJobSignature=72a4525c6a67e807fa435b7a9c51613d02bdf118 rootJobTimestamp=20180124220734 requestId=WmkDpCU87d0AALiveukAAAAP (id=32914,timestamp=20180124220734) STARTING 2018-01-24 22:07:55 htmlCacheUpdate Philosopy_of_Dermoscopedia table=redirect recursive=1 rootJobIsSelf=1 rootJobSignature=72a4525c6a67e807fa435b7a9c51613d02bdf118 rootJobTimestamp=20180124220734 requestId=WmkDpCU87d0AALiveukAAAAP (id=32914,timestamp=20180124220734) t=2 good 2018-01-24 22:07:55 SMW\ParserCachePurgeJob Glossary:Plexus idlist=[70348,31] requestId=WmkDpCU87d0AALiveukAAAAP (id=32923,timestamp=20180124220737) STARTING 2018-01-24 22:07:55 SMW\ParserCachePurgeJob Glossary:Plexus idlist=[70348,31] requestId=WmkDpCU87d0AALiveukAAAAP (id=32923,timestamp=20180124220737) t=18 good 2018-01-24 22:07:55 htmlCacheUpdate Glossary:Plexus table=pagelinks recursive=1 rootJobIsSelf=1 rootJobSignature=6412e9bfe867c39e9721b6311cb5fbfef0f4f4cd rootJobTimestamp=20180124220737 requestId=WmkDpCU87d0AALiveukAAAAP (id=32922,timestamp=20180124220737) STARTING 2018-01-24 22:07:55 htmlCacheUpdate Glossary:Plexus table=pagelinks recursive=1 rootJobIsSelf=1 rootJobSignature=6412e9bfe867c39e9721b6311cb5fbfef0f4f4cd rootJobTimestamp=20180124220737 requestId=WmkDpCU87d0AALiveukAAAAP (id=32922,timestamp=20180124220737) t=1 good 2018-01-24 22:07:55 SMW\ParserCachePurgeJob Glossary:Plexus idlist=array(32) requestId=WmkDpCU87d0AALiveukAAAAP (id=32920,timestamp=20180124220737) STARTING 2018-01-24 22:07:55 SMW\ParserCachePurgeJob Glossary:Plexus idlist=array(32) requestId=WmkDpCU87d0AALiveukAAAAP (id=32920,timestamp=20180124220737) t=375 good 2018-01-24 22:07:55 createPage Glossary:Plexus user_id=8 page_text= requestId=WmkDpyU87d0AABPX2-wAAAAA (id=32916,timestamp=20180124220736) STARTING 2018-01-24 22:07:56 createPage Glossary:Plexus user_id=8 page_text= requestId=WmkDpyU87d0AABPX2-wAAAAA (id=32916,timestamp=20180124220736) t=403 good 2018-01-24 22:07:56 createPage Glossary:Plexus user_id=8 page_text=string(2063) requestId=WmkDpCU87d0AALiveukAAAAP (id=32915,timestamp=20180124220735) STARTING 2018-01-24 22:07:56 createPage Glossary:Plexus user_id=8 page_text=string(2063) requestId=WmkDpCU87d0AALiveukAAAAP (id=32915,timestamp=20180124220735) t=349 good 2018-01-24 22:07:56 EchoNotificationDeleteJob Glossary:Main_Page userIds={"4":4} requestId=WmkDpCU87d0AALiveukAAAAP (id=32918,timestamp=20180124220737) STARTING 2018-01-24 22:07:56 EchoNotificationDeleteJob Glossary:Main_Page userIds={"4":4} requestId=WmkDpCU87d0AALiveukAAAAP (id=32918,timestamp=20180124220737) t=4 good 2018-01-24 22:07:56 EchoNotificationDeleteJob Main_Page userIds={"1":1} requestId=WmkDpCU87d0AALiveukAAAAP (id=32917,timestamp=20180124220737) STARTING 2018-01-24 22:07:56 EchoNotificationDeleteJob Main_Page userIds={"1":1} requestId=WmkDpCU87d0AALiveukAAAAP (id=32917,timestamp=20180124220737) t=3 good 2018-01-24 22:07:56 recentChangesUpdate Special:RecentChanges type=cacheUpdate requestId=WmkDpCU87d0AALiveukAAAAP (id=32912,timestamp=20180124220734) STARTING 2018-01-24 22:07:56 recentChangesUpdate Special:RecentChanges type=cacheUpdate requestId=WmkDpCU87d0AALiveukAAAAP (id=32912,timestamp=20180124220734) t=8 good 2018-01-24 22:07:56 htmlCacheUpdate Glossary:Plexus table=templatelinks recursive=1 rootJobIsSelf=1 rootJobSignature=aa9f6358d1b69664c494107ce0e4e37378d32811 rootJobTimestamp=20180124220756 requestId=WmkDpyU87d0AABPX2-wAAAAA (id=32924,timestamp=20180124220756) STARTING 2018-01-24 22:07:56 htmlCacheUpdate Glossary:Plexus table=templatelinks recursive=1 rootJobIsSelf=1 rootJobSignature=aa9f6358d1b69664c494107ce0e4e37378d32811 rootJobTimestamp=20180124220756 requestId=WmkDpyU87d0AABPX2-wAAAAA (id=32924,timestamp=20180124220756) t=0 good 2018-01-24 22:07:56 EchoNotificationDeleteJob Glossary:Index userIds={"4":4} requestId=WmkDpCU87d0AALiveukAAAAP (id=32919,timestamp=20180124220737) STARTING 2018-01-24 22:07:56 EchoNotificationDeleteJob Glossary:Index userIds={"4":4} requestId=WmkDpCU87d0AALiveukAAAAP (id=32919,timestamp=20180124220737) t=0 good 2018-01-24 22:07:56 htmlCacheUpdate Glossary:Plexus table=redirect recursive=1 rootJobIsSelf=1 rootJobSignature=e2993cc4660e5b3ca1a28d4af54b235b5ea28e56 rootJobTimestamp=20180124220756 requestId=WmkDpyU87d0AABPX2-wAAAAA (id=32925,timestamp=20180124220756) STARTING 2018-01-24 22:07:56 htmlCacheUpdate Glossary:Plexus table=redirect recursive=1 rootJobIsSelf=1 rootJobSignature=e2993cc4660e5b3ca1a28d4af54b235b5ea28e56 rootJobTimestamp=20180124220756 requestId=WmkDpyU87d0AABPX2-wAAAAA (id=32925,timestamp=20180124220756) t=1 good
 * Jobs executed

N b 00:07  	Plexus‎‎ (3 changes | history). . (+2,040)‎ . . [AutoCreateBot‎ (3×)] b  	00:07 (cur | prev). . (+2,024)‎ . . AutoCreateBot (talk | contribs | block) b  	00:07 (cur | prev). . (-2,024)‎ . . AutoCreateBot (talk | contribs | block) N b  	00:07 (cur | prev). . (+2,040)‎ . . AutoCreateBot (talk | contribs | block)
 * Respective revision history

Cheers --&#91;&#91;kgh&#93;&#93; (talk) 22:16, 24 January 2018 (UTC)

Page Forms input type=tree
MediaWiki	1.30.0 PHP	7.1.8 (apache2handler) Semantic MediaWiki	2.5.5 Page Forms	4.2.1 (624f2a9) 18:20, 16 January 2018

I'm having issues with input type=tree instead of a pick list I'm getting bullet list. Tokens are not working either Thanks, Phil

Page Forms	4.1.2 (624f2a9) 18:20, 16 January 2018 : Works fine


 * I think you're seeing the same problem kgh reported, above. Yaron Koren (talk) 15:05, 25 January 2018 (UTC)


 * I think so as well but the debug does not show anything.
 * Phil

#forminput: Restrict list of forms
Hi,

I'm using #forminput for providing a form to create new pages. I want the user to choose from a list of available forms. However, I have a number of query forms in my wiki that I don't want to show up in the list of available forms for content creation. AFAIU, the current syntax neither allows for defining a fixed list of available forms nor restricting the kind of form to be shown to the user:

 - the name of the PF form to be used; if it is left empty, a dropdown will appear, letting the user choose among all existing forms

Is there a workaround for this problem? I'd like to have something similar as.

Best regards, Frank

Nakohdo (talk) 12:38, 30 January 2018 (UTC)


 * I'm hoping to add in a feature soon that would allow "form=" to take in a list of values, which would manually populate a dropdown - would that be good enough for you? Yaron Koren (talk) 14:11, 30 January 2018 (UTC)


 * Hi Yaron, Thanks for the quick reply. And yes, allowing to pass a list to the  parameter would be perfect. Nakohdo (talk) 08:29, 2 February 2018 (UTC)

(SOLVED) Issue with combobox, using Firefox browser
Hi Yaron, all,

It looks like there might be an issue, using input type "combobox" in a PageForm in combination with the browser 'Firefox' (chrome, safari work fine). The combobox comes with suggestions when start typing but when selecting a suggestion, it doesn't close the drop list. It does populate the field but then the drop list stays open, blocking the fields below and the rest of the form becomes unresponsive and you have to close the browser to get out of it.

This behavior occurs on forms that have been around for years, and was indicated by users of our website and I was able to recreate the problem (see image) using the latest firefox version. Seems to start occurring after MW & extensions update.

Any idea how to solve this? Thanks, --Albert Ke (talk) 16:26, 31 January 2018 (UTC)



Site configuration:
 * PageForms 4.2 (dbbce11) 01:22, 5 January 2018
 * MW 1.30.0
 * http://csdms.colorado.edu/wiki/Special:Version
 * See e.g. form: http://csdms.colorado.edu/wiki/Form:Module_questionnaire


 * Hi Albert - yes, I see the problem too. It's been a long time since I last did any MediaWiki testing with Firefox. Do you know what versions of MediaWiki and Page Forms you were doing before the upgrade? And could the issue be recent changes to Firefox browser? I know they just had a big release (version 58, about a week ago) that included a lot of changes. Or is it definitely due to the MW upgrade? Yaron Koren (talk) 19:34, 31 January 2018 (UTC)
 * Yep, Firefox isn't my favorite browser either. Looks like older Firefox versions have the same problem, I still have version 22 on an old mac and that gives the same problem (see figure). For earlier versions of MW, PF, etc: MW 1.29.latest release (not sure what that was); SMW: 2.5.4; PF, 2.4.0 (installed late December).




 * PF 2.4.0? Are you sure about that? That's from 2012. Yaron Koren (talk) 21:55, 31 January 2018 (UTC)
 * Ooops, numbers switched around, PF 4.2.0. Thanks, --128.138.65.73 15:40, 1 February 2018 (UTC)


 * Great, that helped a lot in narrowing it down. The problem turned out to be a code change I made in November. I just checked in a fix for this, which you can see here. Yaron Koren (talk) 17:31, 1 February 2018 (UTC)
 * Thank you Yaron!; I checked out the new version and the combobox issue is solved for firefox. Thank you so much for the prompt fix! --Albert Ke (talk) 20:36, 1 February 2018 (UTC)

#default_form not working properly
This topic is a continuation of one from December. When creating a new page that has a default_form, I would expect edit-with-form to know, which form it is right away. But it isn't. When clicking I get the "menu" of all available forms in my wiki. The root cause lies in the created jobs that are not yet executed. After creating the page showJobs shows this; htmlCacheUpdate: 1 queued; 0 claimed (0 active, 0 abandoned); 0 delayed recentChangesUpdate: 1 queued; 0 claimed (0 active, 0 abandoned); 0 delayed refreshLinksPrioritized: 1 queued; 0 claimed (0 active, 0 abandoned); 0 delayed

After running the "refreshLinksPrioritized" job and clicking on the edit-with-form link the right form will open.

Unfortunately it does not matter whether the default-form is defined This issues started to happen after we moved from MW 1.23 to MW.1.27.
 * in the page itself
 * in a template called by the page
 * for the page's category

@Yaron, do you think it is possible to fix this in PageForms at all or are we stuck with this (due to MW's jobs design).

Thanks Emwiemaikel (talk) 09:18, 2 February 2018 (UTC)