Forums

Multipage form stopped sending emails after update

moreiter 03 Jul, 2017
I updated to Joomla 3.7.2 on 19.06.2017 and tested each form successfully (6 in total).

Today the issue occured that we can no longer submit the multipage forms (2 pages).
Another simple forms works fine as before.
PHP Mail function tested and okay.

Going from page 1 to page 2 works also, but then the page freezes (overlay, process bar stays).
No email submitted.
No debugging possible.

Joomla 3.7.2
PHP 7.0
Chronoforms 5.0.14

Any idea?
Many thanks, Monika
GreyHead 03 Jul, 2017
Hi Monika,

Nothing obvious that I know of. Do you see anything useful if you set the Site Error Reporting to Maximum temporarily?

If not, please post a link to the form so that I can take a look.

Bob
moreiter 03 Jul, 2017
Hi again,
I figured out that the problem was connected to the option HTML (Render form) AJAX >> I changed it from yes to no.
No clue why that did work until 2 weeks ago.

But now there is another problem:
I have added this honeypot to prevent empty mails to all my forms:
https://www.chronoengine.com/faqs/55-cfv4/cfv4-anti-spam/2699-how-can-i-add-a-honeypot-spam-check.html

It works on the single page form, but no longer on the multipage. Error message is:
Notice: Undefined index: confirm ... /custom_code.php(20) : eval()'d code on line 2

How can I solve that?
Kind regards,
Monika
GreyHead 04 Jul, 2017
Hi Monika,

The Notice suggests that $form->data['confirm'] doesn't exist. It should exist but have no value set. Please add a Debugger action to see what exactly is being submitted to the page where you are checking the HoneyPot.

Bob
moreiter 04 Jul, 2017
The array seems okay to me.
Is it possible that this works only on single page forms?
GreyHead 04 Jul, 2017
Hi Monika,

That looks OK. Please take a Form Backup using the icon in the Forms Manager and post it here and I'll take a closer look.

Bob
moreiter 04 Jul, 2017
Hi Bob,
thanks a lot so far. File is attachted. Please note that I have added the line
$form->data['confirm'] = '';
in the meantime to keep the form working, otherwise it always redirects and no mails are sent.
Kind regards,
Monika

This is private content

GreyHead 05 Jul, 2017
Hi Monika,

The Custom Code action you have is in the On Submit event after the second page of the form; and it is before the Multi Page action so there will be no value for 'confirm' there as it was set in the first page of the form.

Please move the Custom Code action to the start of the On Page 2 event so that it is processed immediately after page one is submitted.

Bob
moreiter 05 Jul, 2017
Finally works!🙂
Many thanks,
Monika
moreiter 10 Jul, 2017
Hi Bob,

unfortunately we still receive empty mails ... what do you suggest?
Block IPs?
Anythings else?
Thanks,
Monika
GreyHead 10 Jul, 2017
Hi Monika,

Yes - empty email are unlikely to be from spammers so add server side validation to check for some of the required fields and/or block email addresses if there is a pattern evident.

Bob
This topic is locked and no more replies can be posted.