WikiFormsBugs
Wikiform Bug Reports
Page for bug reports for the WikiForms recipe.
The ! qualifier to protect fields from being changed does not work correctly with (text) textarea.
When creating a form they are not editable like the plan text boxes
Navigation fails if I delete an intervening page
I am using the "next/previous" navigation capabilities when viewing via ViewTemplate. I just deleted page 00006. Now page 00005 looks just as if it was the very last page in the list (i.e., no "next" available) and page 00007 has no "previous" available. —Peter Bowers February 18, 2011, at 08:57 AM
Title markup is not stripped from title field when displaying the ViewTemplate
On line 854 $fv[$f[$i]['element']]) should be DeTitle($fv[$f[$i]['element']])) in order to get rid of the title, I think. I noticed it because in my ViewTemplate I tried to put [++'''...'''++]
around the title display. Since the title markup is on a second line and the bold/large markups are single-line markups I ended up with a non-functional ViewTemplate. When I changed the wikiforms.php as above everything worked fine (including displaying the title appropriately). —Peter Bowers February 08, 2011, at 02:58 PM
Stating default text doesn't work with explicit two-dimensional field sizes (PmWiki 2.1.17, WikiForms 1.48) - NOT A BUG
I just found that when I supply default text, excplicit field sizes don't work.
If I specify:
- Name
- name ("Default"=1*50)
I get an erroneous form as the quotation is not correctly parsed.
Font changes in mid-form, affecting default field sizes (PmWiki 2.1.17, WikiForms 1.48)
If I specify
- Name
- name ("Default"=50)
the form is OK, but the size information is ignored.
Suffix-defined FormTemplates "cannot be associated" (PmWiki 2.1.17, WikiForms 1.45) - FIXED IN 1.48
These two variants don't work for me:
- $Suffix.FormTemplate where $Suffix is any text after a hyphen in the group name (eg PmWiki-Issues)
- Forms.$Suffix
--Henning August 23, 2006, at 11:21 AM
Maybe I should try to describe what I'm doing: I've got set up a number of groups named like
D300-Doks.D300-Doks
These groups work well if they have a template like D300-Doks.FormTemplate. However, if I delete that in-group template and instead create
Doks.Doks and Doks.FormTemplate
or
Forms.Forms and Forms.Doks
I get the following error message:
PmWiki can't process your request cannot associate a form with 'D300-Doks.D300-Doks' We are sorry for any inconvenience.
Am I doing something wrong, or have I indeed found a bug? --Henning August 29, 2006, at 05:03 AM
- I can confirm the issues as described above. Same here... -hfwang sep02/06
$FmtP
to $FmtPV
. I think I have fixed it -- try version 1.48 jr
CR in text field leads to text suppression in wikilist (PmWiki 2.1.17, WikiForms 1.45, 1.48)
I just noticed that the use of CR line breaks in text fields leads to the suppression of the lines after the first CR in the wikilist.
- It would be preferable to reproduce all text up to the next field identifier instead of the next CR (as now).
- If wikiform could automatically substitute all user-typed CRs with [[<<]] markup, that might also solve the problem.
- Teaching the users to avoid CRs seems to be the most difficult solution :-/
[[<<]]
markup were used as a CR substitute, wouldn't we? From my point of view, that appears better than dropping the lines entirely. --Henning September 05, 2006, at 09:53 AM
You are right! The point about "all markup" is absolutely convincing - I was having problems with the "Attach:" markup, too, and now I see that it's all part of a higher-level issue. My problem is that I'm not PHP-literate, so I'm not capable of creating that custom report writer by myself. Maybe I should try to learn PHP, though I guess even if I take that route, it's going to take some time before I can contribute anything of value.
The CR issue is conceptually an important one because once data was entered that way, it's sort of "trapped" in PmWiki because it's not possible to simply copy & paste it back into an MS Office table (as I had promised naively). Fortunately, no-one has asked for that one yet. I guess I could improvise on file level then. --Henning September 22, 2006, at 08:34 AM
"Attach:" markup does not work as text field default (PmWiki 2.1.21, WikiForms 1.48)
I tried to use the following text as default for the first field in the form:
[[Attach:
The idea was to use this to enter links like the following one:
[[Attach:Test.txt|Test Document]]
However, after pressing submit to go to the standard edit page, the data entered previously has vanished completely (including the default text).
If I do not provide a default text, everything works an normal. --Henning September 14, 2006, at 09:34 AM
PHP error message upon editing password-protected pages, date field related (PmWiki 2.1.21, WikiForms 1.48, 1.50)
This one took me unaware, but it's sort of a biggie.
If I edit a page that is protected by a write password and I have not entered that write password yet, I get the following error messages:
- Warning: implode() [function.implode]: Bad arguments. in C:\Programme\Apache Group\Apache2\htdocs\pmwiki\cookbook\wikiform.php on line 444
- Warning: Cannot modify header information - headers already sent by (output started at C:\Programme\Apache Group\Apache2\htdocs\pmwiki\cookbook\wikiform.php:444) in C:\Programme\Apache Group\Apache2\htdocs\pmwiki\pmwiki.php on line 884
The error occurrs in the line that implodes the date field:
implode('-',$_REQUEST[$f[$i]['element']]));
The result is the loss of the data entered in the date field.
The sequence is as follows:
- System displays form
- User presses "Edit Form" button
- System displays password prompt
- User enters password
- System displays PHP error message with edit page missing the data for the date field
- User makes changes and presses "Save" button
- System displays password prompt again
- User enter password again
- System displays changed page
(I have set up numerous WikiForm instances in my Wiki, but they are either not password-protected at all, or they are protected by a read password that simultaneously serves as write password, so the password prompt never came up precisely after pressing "Edit Form" before.) --Henning September 15, 2006, at 09:36 AM
Unfortunately, the problem remains the same (but the warning occurs in line 449 now, confirming that I'm using the new version). Should I use a specific version of PmWiki? I have not upgraded to 2.2.x yet. --Henning September 29, 2006, at 11:52 AM
I seem to have a solution to this issue using wikiforms 1.77 (where the FormValues function calls RetrieveAuthPage instead of ReadPage like it did in 1.71). When the page already exists the password is asked for before the form is displayed and everything works fine. If the page doesn't already exist you get the problem. So I added code to do a RetrieveAuthPage to a page that has the attr appropriately set. I don't do anything with the page but it causes the password entry page to come up before the form is displayed.
function EntryForm($pagename
,$action,$method,$FormPageFmt,$opt=NULL) ... $fve = $FormValuesFunction($pagename
,$f,'edit'); foreach ($fve as $k => $v) $$k = $v; } else { $g = FmtPageName('$Group',$pagename
); //{MSB} get the group for the form RetrieveAuthPage($g . ".Form", 'edit', true, READPAGE_CURRENT); //{MSB} causes login when the user hasn't logged in with the edit password. page ".Form" needs to be have attr edit set appropriately.$FmtP
['/\\$LastModified/e'] = '$GLOBALS[\'CurrentTime\']'; }
I believe the real issue is that $_POST['text'] = FormData($pagename
,$WikiFormPageFmt) needs to be called after the password login as this modified $_POST is lost. --MSB
Layout problem with ?update=y (PmWiki 2.1.21, WikiForms 1.50)
I've found a layout problem with the ?update=y action: If an updatable link is displayed in a table field and the link text is close to the maximum size of the field, the update symbol vanishes (MS Internet Explorer) or moves to the left side, graphically overlapping the attach link (Opera). I'm not using any special CSS files.
I suspect that the upload symbol is not figured in when determining table row height, and the apparently vanished symbol is actually moved to the (invisible) second line in a table field if it's wrapped around. (I'm using the default upload symbol which appears to be a superscript Delta.) --Henning October 23, 2006, at 10:18 AM
PITS
- 00726 Coding error in wikiform.php version 1.45
- I think this was fixed some time before 1.52, although I don't remember doing so. jr March 22, 2007, at 07:17 PM