[Solved] Tearing my hair our with form builder
[Solved] Tearing my hair our with form builder
Hi all, I'm new to CMSMS and so far I like what I see but I've got a real problem with the following issue.
I'm struggling with form builder and not sure if i've missed something obvious. I'm running FB 0.6.1 (re-installed again) on CMS 1.6.6. PHP version is 5.2.12.
I have a simple contact form, email, name and message with 2 disposition fields, email to a set address and write to a file. Nothing happens when I click on Submit. There's no message returned either. I've set the submission to re-direct to another page to check that form builder is actually processing and it's not.
Am I missing something obvious?
I'm struggling with form builder and not sure if i've missed something obvious. I'm running FB 0.6.1 (re-installed again) on CMS 1.6.6. PHP version is 5.2.12.
I have a simple contact form, email, name and message with 2 disposition fields, email to a set address and write to a file. Nothing happens when I click on Submit. There's no message returned either. I've set the submission to re-direct to another page to check that form builder is actually processing and it's not.
Am I missing something obvious?
Last edited by stealer on Thu Mar 04, 2010 11:52 am, edited 1 time in total.
Re: Tearing my hair our with form builder
Have you tested mailer settings? (Have you received test email from mailer?)
Re: Tearing my hair our with form builder
hi, do you use pretty urls? grtz. rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Tearing my hair our with form builder
Hi Peciura,Peciura wrote: Have you tested mailer settings? (Have you received test email from mailer?)
I have tested the mailer settings, I can generate the test message from CMS mailer using either sendmail or SMTP no problems. Form Builder just doesn't seem to work at all. Without specifying mailing the form on submit and just having it write to a flat file doesn't work either. Using the standard templates and responses etc, nothing happens on pressing submit, no response back, no error message, just the page reloading.
It really makes me think I've not done something obvious from the start.
Re: Tearing my hair our with form builder
I haven't configured pretty urls.Rolf wrote: hi, do you use pretty urls? grtz. rolf
Re: Tearing my hair our with form builder
Here's my sys info, perhaps that helps..
----------------------------------------------
Cms Version: 1.6.6
Installed Modules:
* CMSMailer: 1.73.14
* FileManager: 1.0.1
* MenuManager: 1.6.2
* ModuleManager: 1.3.1
* News: 2.10.3
* nuSOAP: 1.0.1
* Printing: 1.0.4
* Search: 1.6.1
* ThemeManager: 1.1.1
* TinyMCE: 2.5.5
* CGExtensions: 1.17.8
* FormBuilder: 0.6.1
* Twitter: 0.0.7
* FormBrowser: 0.3
* JQueryTools: 1.0.5
* VisitorStats: 0.2.1
Config Information:
* php_memory_limit:
* process_whole_template: false
* max_upload_size: 10000000
* default_upload_permission: 664
* assume_mod_rewrite: false
* page_extension:
* internal_pretty_urls: false
* use_hierarchy: true
Php Information:
* phpversion: 5.2.12
* md5_function: On (True)
* gd_version: 2
* tempnam_function: On (True)
* magic_quotes_runtime: Off (False)
* memory_limit: 24M
* max_execution_time: 60
* safe_mode: Off (False)
* session_save_path: /tmp (1777)
* session.use_cookies: On (True)
Server Information:
* Server Api: cgi
* Server Db Type: MySQL (mysql)
* Server Db Version: 5.0.89
----------------------------------------------
----------------------------------------------
Cms Version: 1.6.6
Installed Modules:
* CMSMailer: 1.73.14
* FileManager: 1.0.1
* MenuManager: 1.6.2
* ModuleManager: 1.3.1
* News: 2.10.3
* nuSOAP: 1.0.1
* Printing: 1.0.4
* Search: 1.6.1
* ThemeManager: 1.1.1
* TinyMCE: 2.5.5
* CGExtensions: 1.17.8
* FormBuilder: 0.6.1
* Twitter: 0.0.7
* FormBrowser: 0.3
* JQueryTools: 1.0.5
* VisitorStats: 0.2.1
Config Information:
* php_memory_limit:
* process_whole_template: false
* max_upload_size: 10000000
* default_upload_permission: 664
* assume_mod_rewrite: false
* page_extension:
* internal_pretty_urls: false
* use_hierarchy: true
Php Information:
* phpversion: 5.2.12
* md5_function: On (True)
* gd_version: 2
* tempnam_function: On (True)
* magic_quotes_runtime: Off (False)
* memory_limit: 24M
* max_execution_time: 60
* safe_mode: Off (False)
* session_save_path: /tmp (1777)
* session.use_cookies: On (True)
Server Information:
* Server Api: cgi
* Server Db Type: MySQL (mysql)
* Server Db Version: 5.0.89
----------------------------------------------
Re: Tearing my hair our with form builder
Hi
Can you export (XML) the form and post it so we can have a closer look at it?
JanB
Can you export (XML) the form and post it so we can have a closer look at it?
JanB
Re: Tearing my hair our with form builder
As requested, i've changed the email address in the xml file to protect privacyjanb wrote: Hi
Can you export (XML) the form and post it so we can have a closer look at it?
JanB
{$fb_submission_error}
{if isset($fb_show_submission_errors) && $fb_show_submission_errors}
{foreach from=$fb_submission_error_list item=thisErr}
{$thisErr}
{/foreach}
{/if}
{/if}
{else}
{* this section is for displaying the form *}
{* we start with validation errors *}
{if isset($fb_form_has_validation_errors) && $fb_form_has_validation_errors}
{foreach from=$fb_form_validation_errors item=thisErr}
{$thisErr}
{/foreach}
{/if}
{if isset($captcha_error) && $captcha_error}
{$captcha_error}
{/if}
{* and now the form itself *}
{$fb_form_start}
{$fb_hidden}
{if $total_pages gt 1}{$title_page_x_of_y}{/if}
{foreach from=$fields item=entry}
{if $entry->display == 1}
{strip}
{if $entry->needs_div == 1}
required == 1 || $entry->css_class != '' || $entry->valid == 0} class="
{if $entry->required == 1}required{/if}
{if $entry->css_class != ''} {$entry->css_class}{/if}
{if $entry->valid == 0} fb_invalid{/if}
"
{/if}
>
{/if}
{if $entry->hide_name == 0}
multiple_parts != 1} for="{$entry->input_id}"{/if}>{$entry->name}
{if $entry->required_symbol != ''}
{$entry->required_symbol}
{/if}
{/if}
{if $entry->multiple_parts == 1}
{section name=numloop loop=$entry->input}
{if $entry->label_parts == 1}
{$entry->input[numloop]->input} {$entry->input[numloop]->name}
{else}
{$entry->input[numloop]->input}
{/if}
{if isset($entry->input[numloop]->op) && $entry->input[numloop]->op}{$entry->input[numloop]->op}{/if}
{/section}
{else}
{if $entry->smarty_eval == '1'}{eval var=$entry->input}{else}{$entry->input}{/if}
{/if}
{if $entry->valid == 0} <--- {$entry->error}{/if}
{if $entry->needs_div == 1}
{/if}
{/strip}
{/if}
{/foreach}
{if $has_captcha == 1}
{$graphic_captcha}{$title_captcha}
{$input_captcha}
{/if}
{$prev}{$submit}
{$fb_form_end}
{/if}
{$fb_form_footer}]]>
Thank you, {$your_name}.
Your submission has been successful. You may wish to print this page as a reference.
Contact Details
Name: {$your_name}
Email: {$your_email_address}
Feedback Details
Subject: {$subject}
Comments:
{$message}
Other information
Date of Submission: {$sub_date}
Form Name: {$sub_form_name}
URL of page containing form: {$sub_url}
Domain: {$sub_host}
Your IP address: {$sub_source_ip}
]]>
FormBuilder Submission
Form Name: {$sub_form_name}
Date of Submission: {$sub_date}
Your server: {$sub_host}
IP address of person using form: {$sub_source_ip}
URL of page containing form: {$sub_url}
FormBuilder version: {$fb_version}
Tab Character: {$TAB}
{if $fld_59 != "" && $fld_59 != "[unspecified]" }Your Name: {$fld_59}
{/if}
{if $fld_60 != "" && $fld_60 != "[unspecified]" }Email Again: {$fld_60}
{/if}
{if $fld_61 != "" && $fld_61 != "[unspecified]" }Subject: {$fld_61}
{/if}
{if $message != "" && $message != "[unspecified]" }Message: {$message}
{/if}
{if $fld_63 != "" && $fld_63 != "[unspecified]" }Send To: {$fld_63}
{/if}
]]>
Re: Tearing my hair our with form builder
I just added email template for for field "Send To:" ticked "Generate HTML email?:" and in a second received email.
Tested on FormBuilder 0.5.12 CMSms1.6.6
Tested on FormBuilder 0.5.12 CMSms1.6.6
Re: Tearing my hair our with form builder
Thanks Peciura,Peciura wrote: I just added email template for for field "Send To:" ticked "Generate HTML email?:" and in a second received email.
Tested on FormBuilder 0.5.12 CMSms1.6.6
So there must be something else wrong with my setup surely? even if I don't want to send an email nothing happens when clicking submit. it's as if the button isn't connected to anything.
Re: Tearing my hair our with form builder
Hi
The form works nice here as well.
- Have you tested with other forms in FormBuilder without email fields?
- Have you tested the form with another browser (chrome, FF)? (know this is a far out q)
- How is your submit and fb_ variables look like? (add {get_template_vars} at the end of the Form Template to print out variabes)
JanB
The form works nice here as well.
- Have you tested with other forms in FormBuilder without email fields?
- Have you tested the form with another browser (chrome, FF)? (know this is a far out q)
- How is your submit and fb_ variables look like? (add {get_template_vars} at the end of the Form Template to print out variabes)
JanB
Last edited by janb on Thu Mar 04, 2010 8:59 am, edited 1 time in total.
Re: Tearing my hair our with form builder
Hi Jan,janb wrote: Hi
The form works nice here as well.
- Have you tested with other forms in FormBuilder without email fields?
- Have you tested the form with another browser (chrome, FF)? (know this is a far out q)
- How is your submit and fb_ variables look like? (add {get_template_vars} at the end of the Form Template to print out variabes)
JanB
I've removed the email fields on this form to get a flat file written to with just a message and nothing happens, no file is created.
I've also tested in both ie8 and ff3, i've added the {get_template_vars} to the end of the template and get the following output, I have to admit, this doesn't mean that much to me....
SCRIPT_NAME = /cms/index.phpapp_name = CMSsitename = domainnamelang = encoding = utf-8gCms = Objectcontent_obj = Objectcontent_id = 15page = 15page_id = 15page_name = homepage_alias = homeposition = 00004friendly_position = 4menuparams = Array (2)count = 4nodelist = Array (4)node = Objecttweets = Array (5)pointer = 3fb_form_has_validation_errors = 0fb_show_submission_errors = 0fb_form_header = fb_form_footer = fb_form_start =
fb_form_end = fb_form_done = 0title_page_x_of_y = Page 1 of 1css_class = footer_contacttotal_pages = 1this_page = 1form_name = footer_contactform_id = 7File update = ObjectYour name: = ObjectYour email: = ObjectYour message: = Objectfb_hidden =
fields = Array (4)previous = Array (0)prev = has_captcha = 0submit = entry = Object
I really appreciate everyone taking time to look at this, I hate to think I can't use cmsms due to this.
Re: Tearing my hair our with form builder
Hi
All variables seems to be normal.
Could you put the form into another page than your home page?
JanB
All variables seems to be normal.
Could you put the form into another page than your home page?
JanB
Re: Tearing my hair our with form builder
One q
I didn't see any "Write Results to Flat File" definition in your XML?
..and did you rename your form to footer_contact instead of contact (as in the XML) ? (just curios)
JanB
I didn't see any "Write Results to Flat File" definition in your XML?
..and did you rename your form to footer_contact instead of contact (as in the XML) ? (just curios)
JanB
Last edited by janb on Thu Mar 04, 2010 10:04 am, edited 1 time in total.
Re: Tearing my hair our with form builder
Hi Jan,janb wrote: One q
I didn't see any "Write Results to Flat File" definition in your XML?
..and did you rename your form to footer_contact instead of contact (as in the XML) ? (just curios)
JanB
I've been playing around and have two forms on two seperate pages, neither are working, hence the difference in the xml.