[solved] Form not sending in Formbuilder

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jospanner
Forum Members
Forum Members
Posts: 105
Joined: Tue Mar 25, 2008 11:34 pm

[solved] Form not sending in Formbuilder

Post by jospanner »

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?
Last edited by jospanner on Mon Mar 07, 2011 9:30 pm, edited 1 time in total.
croontje
Forum Members
Forum Members
Posts: 63
Joined: Mon Sep 17, 2007 8:49 am
Location: Belgium

Re: Form not sending in Formbuilder

Post by croontje »

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)
jospanner
Forum Members
Forum Members
Posts: 105
Joined: Tue Mar 25, 2008 11:34 pm

Re: Form not sending in Formbuilder

Post by jospanner »

I tried to upgrade via Module Manager but when that didn't work I upgraded via XML.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Form not sending in Formbuilder

Post by Dr.CSS »

Have you tried adding an extension in the config.php?...

$config['page_extension'] = '';
jospanner
Forum Members
Forum Members
Posts: 105
Joined: Tue Mar 25, 2008 11:34 pm

Re: Form not sending in Formbuilder

Post by jospanner »

I have this currently - is this not correct?

$config['page_extension'] = '';
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Form not sending in Formbuilder

Post by Dr.CSS »

I have heard of problems with form builder when there is no extension or / as an extension...
jospanner
Forum Members
Forum Members
Posts: 105
Joined: Tue Mar 25, 2008 11:34 pm

Re: Form not sending in Formbuilder

Post by jospanner »

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.
jospanner
Forum Members
Forum Members
Posts: 105
Joined: Tue Mar 25, 2008 11:34 pm

Re: Form not sending in Formbuilder

Post by jospanner »

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?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Form not sending in Formbuilder

Post by Dr.CSS »

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...
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Form not sending in Formbuilder

Post by Wishbone »

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.
jospanner
Forum Members
Forum Members
Posts: 105
Joined: Tue Mar 25, 2008 11:34 pm

Re: Form not sending in Formbuilder

Post by jospanner »

Can you please tell me what the line added was?
jospanner
Forum Members
Forum Members
Posts: 105
Joined: Tue Mar 25, 2008 11:34 pm

Re: Form not sending in Formbuilder

Post by jospanner »

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...
Does that mean the option of no file extension should'nt ever be used?
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Form not sending in Formbuilder

Post by Wishbone »

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]
I don't know exactly what this all means.. I can muddle through it if I had my Apache docs up.

Here's the link to the CMSMS doc regarding this:

http://wiki.cmsmadesimple.org/index.php ... ty_URL.27s
jospanner
Forum Members
Forum Members
Posts: 105
Joined: Tue Mar 25, 2008 11:34 pm

Re: Form not sending in Formbuilder

Post by jospanner »

I don't know what it means either but it works! Thanks very much for your help. A great and satsifactory conclusion! :D
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: [solved] Form not sending in Formbuilder

Post by Wishbone »

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.
Post Reply

Return to “Modules/Add-Ons”