[pmwiki-users] Wikiform not Working after summit

Edwin Marte emarte at aiolosrd.com
Fri Jun 22 12:25:59 CDT 2007


Hi, All Again,

 

I posted a message a few days ago about wikiforms and nobody has told me
anything about it yet.

 

I am trying to implement a simple issue system as indicated in the wikiform
receipe.

We followed all the steps from the following links:

http://pmwiki.org/wiki/Cookbook/WikiFormsRecipes

http://pmwiki.org/wiki/Cookbook/WikiFormsFeatureRequests

http://pmwiki.org/wiki/Cookbook/WikiFormsFAQ

http://www.pmwiki.org/wiki/PITS/00756

http://pmwiki.org/wiki/Cookbook/WikiForms

 

 

When we press summit in a simple form we receive the the following message ,

 

 PmWiki can't process your request

 

cannot associate a form with '.00001'

 

We are sorry for any inconvenience.

 

Any idea why? help will be apreciated

 

 

So we got in touch wth the people of wikipublisher and they tried to help us
with the following repply:

 

Hello, Edwin

 

Well, I know *what* is happening, but I am not sure why.

 

The wikiform script looks in several places to find a suitable template. To
do that, it uses the current page name among other things. Now, the message
you are getting says that at the point in the script where it's doing this,
the pagename is '.00001' -- note there is no group name.

Normally, it would read something like 'SomeGroup.00001'.

 

This is done right at the start of the FormFields function, which reads the
FormTemplate page to work out what fields are on the form. From the look of
it, $_REQUEST['n'] does not contain the value of the page name submitting
the form.

 

If you view the HTML of the page containing the form, i.e.

the equivalent of this page

 <http://www.wikipublisher.org/wiki/index.php?n=Issues.NewIssue>
http://www.wikipublisher.org/wiki/index.php?n=Issues.NewIssue

you should see something like

<form method='post' >

        <input type='hidden' name='n' value='Issues.NewIssue' />

        <input type='hidden' name='action' value='posteform' />

 

I think the problem lies in the call to SetFormGroup when
$action=='posteform', which is returning '' instead of the name of the group
where the form resides. In that function, you might try inserting echo $pg;
right after the line which says $pg = FmtPageName... -- that may tell you
what is happening.

 

Hope this helps. If you can send me a link, I can have a look and see
whether I can spot anything obvious.

 

 

Then I supplied my configuration and have not received any reply after that

 

 

The Config:

 

$FormsGroup = Issues;

$FormNavFooter = false;

$WikiFormSubmit = 'post';

 

include_once("cookbook/wikiform.php");

  include_once("cookbook/formtitle.php");

 

 

include_once("cookbook/extendmarkup.php");

include_once("cookbook/break_page.php");

 

 

Just Below (I thougt this may help)

 

$WikiDir = new PageStore('wiki.d/$Group/$FullName');

    $WikiLibDirs = array( &$WikiDir,

      new PageStore('wiki-flat.d/$FullName'),

      new PageStore('$FarmD/wikilib.d/$FullName'));

 

 

This is a simple Template at Issues.FormTemplate we are trying On:

 

:Title:title (title) +

 

:Summary:summary ("default"=20) +

 

:Fields:fields (3*15)

 

:Author:author (*author) +

 

:Email:email (email)

 

:Date:date (*date) +

 

:Text:text (text)

 

:Text3:text3 (text=3*20)

 

:Buttons:buttons help text? (1|1 - low;2;*3;4;5|5 - high)

 

:Popup:popup (Open, Confirmed, Active, Suspended, Closed) +

 

:Checkbox:checkbox (*check)

 

:Checkboxvalue:checkboxvalue (*check checkedValue)

 

:Check3:check3 help3 (*1:*2:3)

 

 

 

After the echo $pg; this is what I receive:

 

Issues.FormTemplateIssues.IssuesIssues.FormTemplateIssues.Issues

 

 

We tried Changing the part Return = '' for Return = 'Issuess'

 

And then we receive the Message:

 

 


PmWiki can't process your request


cannot associate a form with 'Issues.00001'

We are sorry for any inconvenience.

 

It seems to be that I need a form temnplate for creating the issue, am I
right ? please address any pointers for me geeting all this in place.

 

 

Edwin,

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070622/d936a7b5/attachment-0001.html 


More information about the pmwiki-users mailing list