[solved] Form not sending in Formbuilder
[solved] Form not sending in Formbuilder
Just upgraded to 1.9.4 from 1.9.3 and added patch re Module Manager. Then spotted that Formbuilder needed an upgrade from 0.6.4 to 0.7. So upgraded but now forms don't appear to send.
http://www.pug1off.co.uk/contact/
I also have mod rewrite on via config as
#------------
#URL Settings
#------------
#What type of URL rewriting should we be using for pretty URLs? Valid options are:
#'none', 'internal', and 'mod_rewrite'. 'internal' will not work with IIS some CGI
#configurations. 'mod_rewrite' requires proper apache configuration, a valid
#.htaccess file and most likely {metadata} in your page templates. For more
#information, see:
#http://wiki.cmsmadesimple.org/index.php ... ty_URL.27s
$config['url_rewriting'] = 'mod_rewrite';
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
Plus .htaccess as follows:
Options +FollowSymLinks
RewriteEngine on
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
#except for form POSTS
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
The form just doesn't appear to do anything when 'send' is clicked on. CMS Mailer settings have been checked.
Anything I've missed?
http://www.pug1off.co.uk/contact/
I also have mod rewrite on via config as
#------------
#URL Settings
#------------
#What type of URL rewriting should we be using for pretty URLs? Valid options are:
#'none', 'internal', and 'mod_rewrite'. 'internal' will not work with IIS some CGI
#configurations. 'mod_rewrite' requires proper apache configuration, a valid
#.htaccess file and most likely {metadata} in your page templates. For more
#information, see:
#http://wiki.cmsmadesimple.org/index.php ... ty_URL.27s
$config['url_rewriting'] = 'mod_rewrite';
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
Plus .htaccess as follows:
Options +FollowSymLinks
RewriteEngine on
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
#except for form POSTS
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
The form just doesn't appear to do anything when 'send' is clicked on. CMS Mailer settings have been checked.
Anything I've missed?
Last edited by jospanner on Mon Mar 07, 2011 9:30 pm, edited 1 time in total.
Re: Form not sending in Formbuilder
Did you upgrade with the upgrade link in the module manager? Because I get an error when I try that (I made a topic about it)
Re: Form not sending in Formbuilder
I tried to upgrade via Module Manager but when that didn't work I upgraded via XML.
Re: Form not sending in Formbuilder
Have you tried adding an extension in the config.php?...
$config['page_extension'] = '';
$config['page_extension'] = '';
Re: Form not sending in Formbuilder
I have this currently - is this not correct?
$config['page_extension'] = '';
$config['page_extension'] = '';
Re: Form not sending in Formbuilder
I have heard of problems with form builder when there is no extension or / as an extension...
Re: Form not sending in Formbuilder
I have other sites with forms and without extensions that seem to work fine? Although I haven't upgraded them yet and now I'm a bit nervous of that. I will change this one to html and see what happens.
Re: Form not sending in Formbuilder
You were right! It sends with .html on the end. However, now I have a lot of sites with forms that are fine with no extension. Do I need to add .html to them all? It will mess up the logging of the page addresses that search engines will have already made won't it?
Re: Form not sending in Formbuilder
One of the first things I do is set pretty URLs (with .html) for a new site, but yes it will still show the correct page from a search engine link, it should...
Re: Form not sending in Formbuilder
I had a similar FEU problem last night. I had copied over a .htaccess file from a previous install to get pretty URLs working.. I couldn't login through FEU after I did this. I was about to ask the forum community, but as a hunch, I compared this older .htaccess with the one suggested by the link in config.php, and there was a new line added that omits the trailing '/' when POSTing. It worked after adding that line.
I don't have that link right in front of me.. I have to look at the config.php each time.
I don't have that link right in front of me.. I have to look at the config.php each time.
Re: Form not sending in Formbuilder
Can you please tell me what the line added was?
Re: Form not sending in Formbuilder
Does that mean the option of no file extension should'nt ever be used?One of the first things I do is set pretty URLs (with .html) for a new site, but yes it will still show the correct page from a search engine link, it should...
Re: Form not sending in Formbuilder
jospanner wrote:Can you please tell me what the line added was?
Code: Select all
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# except for form POSTS
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_METHOD} !POST$
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
Here's the link to the CMSMS doc regarding this:
http://wiki.cmsmadesimple.org/index.php ... ty_URL.27s
Re: Form not sending in Formbuilder
I don't know what it means either but it works! Thanks very much for your help. A great and satsifactory conclusion! 

Re: [solved] Form not sending in Formbuilder
Glad I could help! It was just last night that I figured this out for my FEU issue. I usually ignore FormBuilder threads, but something went DING! in my head when I saw this one.