Page 1 of 1

CGBetterForms on submission, submits twice?

Posted: Thu Jan 11, 2018 3:40 am
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
----------------------------------------------

Re: CGBetterForms on submission, submits twice?

Posted: Sat Jan 20, 2018 3:05 pm
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.

Re: CGBetterForms on submission, submits twice?

Posted: Fri Jan 26, 2018 10:12 pm
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.

Re: CGBetterForms on submission, submits twice?

Posted: Sat Jan 27, 2018 9:18 am
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...

Re: CGBetterForms on submission, submits twice?

Posted: Tue Apr 24, 2018 8:36 pm
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

Re: CGBetterForms on submission, submits twice?

Posted: Tue Apr 24, 2018 8:56 pm
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

Re: CGBetterForms on submission, submits twice?

Posted: Tue Apr 24, 2018 9:48 pm
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.

Re: CGBetterForms on submission, submits twice?

Posted: Thu Apr 26, 2018 2:39 pm
by cyrcle
I had the same problem on another website.
Finally, scan and save the form again seems to have solved the problem.

Re: CGBetterForms on submission, submits twice?

Posted: Thu Apr 26, 2018 4:00 pm
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.

Re: CGBetterForms on submission, submits twice?

Posted: Fri Apr 27, 2018 2:51 am
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.