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!

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)