CGBetterForms on submission, submits twice?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
pwg
Forum Members
Forum Members
Posts: 191
Joined: Tue Aug 01, 2006 1:48 am
Location: Sydney

CGBetterForms on submission, submits twice?

Post by pwg »

Hi,
i've built a semi-simple form based on the Trivial Widget form, however, whenever the form is submitted, the designated email addresses are receiving two copies of the form.

Two copies of the form Output as also placed into the page post submission.

Seems to apply to all forms.

Any ideas what could be causing this?

Thanks for any help.
Cheers,
Paul

----------------------------------------------

Cms Version: 2.2.5

Installed Modules:

AceEditor2: 1.05
AdminSearch: 1.0.4
CGBetterForms: 1.3
CGBlog: 1.15.6
CGExtensions: 1.57.1
CGHeadMaster: 1.0.14
CGSimpleSmarty: 2.1.7
CGSmartImage: 1.22.1
CMSContentManager: 1.1.6
CMSMailer: 6.2.14
CmsJobManager: 0.1.2
DesignManager: 1.1.4
ECB: 1.6
FileManager: 1.6.5
FilePicker: 1.0.2
GBFilePicker: 1.3.3
Gallery: 2.3.2
JMFilePicker: 1.0.1
JQueryTools: 1.4.0.3
LISE: 1.3.1
LISEProducts: 1.3.1
LISEsuppliers: 1.3.1
LISEtestimonials: 1.3.1
MenuManager: 1.50.3
MicroTiny: 2.2.2
ModuleManager: 2.1.3
Navigator: 1.0.8
News: 2.51.3
Search: 1.51.2
SitemapMgr: 1.5.3
Snippet: 0.2.4
ThemeManager: 1.1.8

Config Information:

php_memory_limit:
max_upload_size: 10000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Australia/Sydney
permissive_smarty: true

Php Information:

phpversion: 5.5.29
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22519
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 256M
max_execution_time: 60
register_globals: Off (False)
output_buffering: On
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 10M
upload_max_filesize: 10M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On

Performance Information:

allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: Off (False)
Server Information:

Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 2.6.32-696.18.7.el6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.58
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:

tmp: /xxxxx/tmp (0777)
tmp_cache: /xxxxx/tmp/cache (0777)
templates_c: /xxxxx/tmp/templates_c (0777)
modules: /xxxxx/modules (0777)
uploads: /xxxxx/uploads (0777)
File Creation Mask (umask): /xxxxx/tmp/cache (0777)
config_file: 0444
----------------------------------------------
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

Re: CGBetterForms on submission, submits twice?

Post by paulbaker »

I am using CGBetterForms and not experiencing this duplication so it's not a bug that dupes every instance. I am using 1.3.1 though - might be worth you upgrading.
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
pwg
Forum Members
Forum Members
Posts: 191
Joined: Tue Aug 01, 2006 1:48 am
Location: Sydney

Re: CGBetterForms on submission, submits twice?

Post by pwg »

Thanks, Paul, I have upgraded CGBetterForms, however, it is still happening. That said, I agree it isn't a bug in the mod, its something in my install.

Thanks for the help.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: CGBetterForms on submission, submits twice?

Post by Rolf »

There was a similar problem few years ago, was caused by a trailing slash in pretty urls. Or was it the form did not submit, not sure anymore. but worth a check...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
cyrcle
Forum Members
Forum Members
Posts: 23
Joined: Fri Jan 06, 2017 3:54 pm

Re: CGBetterForms on submission, submits twice?

Post by cyrcle »

Hi, I have the same problem with all forms, including default forms.

Whenever the form is submitted, the designated email addresses are receiving two copies of the form.
Two copies of the form output as also placed into the page post submission.

I feel like I have tested everything that can be tested and I can't find where this problem can come from.
Any ideas what could be causing this?

----------------------------------------------
Cms Version: 2.2.7
Installed Modules:
AdminSearch: 1.0.4
CGBetterForms: 1.4.3
CGCalendar: 2.5.1
CGExtensions: 1.60.4
CGSimpleSmarty: 2.1.8
CMSContentManager: 1.1.6
CmsJobManager: 0.1.2
DesignManager: 1.1.4
FileManager: 1.6.6
FilePicker: 1.0.2
FrontEndUsers: 2.10
MenuManager: 1.50.3
ModuleManager: 2.1.3
Navigator: 1.0.8
News: 2.51.3
Search: 1.51.4
TinyMCE: 3.2-beta5
Uploads: 1.25.8
cyrcle
Forum Members
Forum Members
Posts: 23
Joined: Fri Jan 06, 2017 3:54 pm

Re: CGBetterForms on submission, submits twice?

Post by cyrcle »

I just found something.

The problem appears if tag {CGBetterForms form="Sample contact form"} is in a Core::Page template, but if tag is in page content, the problem disappear.

What could I do to not have this problem when the tag is in a Core::Page template?
Thanks
cyrcle
Forum Members
Forum Members
Posts: 23
Joined: Fri Jan 06, 2017 3:54 pm

Re: CGBetterForms on submission, submits twice?

Post by cyrcle »

Now, I put the {CGBetterForms form = "Sample contact form"} tag in a Core::Page template and the problem didn't reappear. I don't understand!
Maybe I just had to clear the cache?
Sorry for the noise.
cyrcle
Forum Members
Forum Members
Posts: 23
Joined: Fri Jan 06, 2017 3:54 pm

Re: CGBetterForms on submission, submits twice?

Post by cyrcle »

I had the same problem on another website.
Finally, scan and save the form again seems to have solved the problem.
cyrcle
Forum Members
Forum Members
Posts: 23
Joined: Fri Jan 06, 2017 3:54 pm

Re: CGBetterForms on submission, submits twice?

Post by cyrcle »

Finally, it was still not the solution.
But, but, but, choosing to "Display form inline" no longer displays and no longer sends messages twice. I hope this time it's good.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: CGBetterForms on submission, submits twice?

Post by DIGI3 »

Sounds like you've solved it, but yes - if you have the form tag in the page template and not the content block, you need to have it set to display inline.
Not getting the answer you need? CMSMS support options
Post Reply

Return to “Modules/Add-Ons”