When the form is filled out and submitted, Formicula throws an error, "An error has occurred." No other information is provided. Any help on this subject is greatly appreciated!
Here is my 1_userconfirm.html code (Formicula form template):
Code
<!--[include file=1_userheader.html]-->
<p >Thank you for submitting your ad.</p>
<p>For confirmation purposes, here is the information you provided:</p>
<table>
<!--[foreach item=field from=$custom]-->
<tr>
<td class="sub"><!--[$field.name]--></td>
<td><!--[$field.data]--></td>
</tr>
<!--[/foreach]-->
</table>
<!--[if $sendtouser==true]-->
<!--[pnml name='_FOR_SENDTOUSER' html=1]-->
<!--[else]-->
<!--[pnml name='_FOR_ERRORSENDINGUSERMAIL' html=1]-->
<!--[/if]-->
<!--[php]-->
$publication = array();
$publication['core_author'] = $this->_tpl_vars['userdata']['uname'];
$publication['core_creatorID'] = 2;
$publication['core_creator'] = 'Admin';
$publication['core_approvalState'] = 'approved';
$publication['core_approvalTitle'] = '';
$publication['core_topic'] = -1;
$publication['core_showInList'] = 1;
$publication['core_showInMenu'] = 1;
$publication['core_online'] = 1;
$publication['core_revision'] = 0;
$publication['core_language'] = 'x_all';
$publication['core_publishDate'] = '2006-09-06 17:26:29';
$publication['core_expireDate'] = '';
//here we have the most important things: publication fields
$publication['title'] = $this->_tpl_vars['userdata']['title'];
$publication['price'] = $this->_tpl_vars['userdata']['price'];
$publication['location'] = $this->_tpl_vars['userdata']['location'];
$publication['category'] = $this->_tpl_vars['userdata']['category'];
$publication['description'] = $this->_tpl_vars['userdata']['description'];
$publication['uemail'] = $this->_tpl_vars['userdata']['uemail'];
$publication['showemail'] = $this->_tpl_vars['userdata']['showemail'];
$publication['phoneac'] = $this->_tpl_vars['userdata']['phoneac'];
$publication['phonepre'] = $this->_tpl_vars['userdata']['phonepre'];
$publication['phonesuf'] = $this->_tpl_vars['userdata']['phonesuf'];
$publication['showphone'] = $this->_tpl_vars['userdata']['showphone'];
$this->_tpl_vars['pub'] = $publication;
<!--[/php]-->
<!--[pnmodapifunc modname="pagesetter" type="edit" func="createPub" tid="3" pubData=$pub]-->
<p >Thank you for submitting your ad.</p>
<p>For confirmation purposes, here is the information you provided:</p>
<table>
<!--[foreach item=field from=$custom]-->
<tr>
<td class="sub"><!--[$field.name]--></td>
<td><!--[$field.data]--></td>
</tr>
<!--[/foreach]-->
</table>
<!--[if $sendtouser==true]-->
<!--[pnml name='_FOR_SENDTOUSER' html=1]-->
<!--[else]-->
<!--[pnml name='_FOR_ERRORSENDINGUSERMAIL' html=1]-->
<!--[/if]-->
<!--[php]-->
$publication = array();
$publication['core_author'] = $this->_tpl_vars['userdata']['uname'];
$publication['core_creatorID'] = 2;
$publication['core_creator'] = 'Admin';
$publication['core_approvalState'] = 'approved';
$publication['core_approvalTitle'] = '';
$publication['core_topic'] = -1;
$publication['core_showInList'] = 1;
$publication['core_showInMenu'] = 1;
$publication['core_online'] = 1;
$publication['core_revision'] = 0;
$publication['core_language'] = 'x_all';
$publication['core_publishDate'] = '2006-09-06 17:26:29';
$publication['core_expireDate'] = '';
//here we have the most important things: publication fields
$publication['title'] = $this->_tpl_vars['userdata']['title'];
$publication['price'] = $this->_tpl_vars['userdata']['price'];
$publication['location'] = $this->_tpl_vars['userdata']['location'];
$publication['category'] = $this->_tpl_vars['userdata']['category'];
$publication['description'] = $this->_tpl_vars['userdata']['description'];
$publication['uemail'] = $this->_tpl_vars['userdata']['uemail'];
$publication['showemail'] = $this->_tpl_vars['userdata']['showemail'];
$publication['phoneac'] = $this->_tpl_vars['userdata']['phoneac'];
$publication['phonepre'] = $this->_tpl_vars['userdata']['phonepre'];
$publication['phonesuf'] = $this->_tpl_vars['userdata']['phonesuf'];
$publication['showphone'] = $this->_tpl_vars['userdata']['showphone'];
$this->_tpl_vars['pub'] = $publication;
<!--[/php]-->
<!--[pnmodapifunc modname="pagesetter" type="edit" func="createPub" tid="3" pubData=$pub]-->
And here is a screenshot of the Pagesetter publication that I am trying to send the Formicula data to:
You can see the form in action at http://dallas-oregon…le=formicula&form=1
Thanks!!
edited by: Wendell, Jun 28, 2007 - 08:34 AM
