Forums

Error message in email.php on line 246

baboom 10 Aug, 2017
Hi, Chronoforms v5 running on Joomla 3.7.4.

Since recent there's an error message appearing after submitting a form:

Notice: Undefined index: mail in /home/glasatelier-aalsmeer.nl/public_html/stallet/administrator/components/com_chronoforms5/chronoforms/actions/email/email.php on line 246

Line 246: if($settings['mail']['mail_method'] == 'joomla'){

Anyone an idea what's causing this? Thanks!
baboom 11 Aug, 2017
Additionally.. I've dragged the Debugger into the form and after I've submitted the form.. only the below is listed as an error:

Array
(
)
GreyHead 11 Aug, 2017
Hi baboom,

It's not an error, it's a PHP Notice and the simplest way of getting rid of it is to set your Joomla! Site Error Reporting to System Default or to None.

If it is a development site and you need Notices shown then you could edit that line to read
if( !empty($settings['mail']) && $settings['mail']['mail_method'] == 'joomla'){


What do you have in the ChronoForms settings tab > Mailing Methods box? I would not expect that to be empty.

Bob
baboom 12 Aug, 2017
Hi Bob,

This is great. 'Problem' solved!

The Error Reporting option was set to Maximum and I've changed it to None. That solved it.

The Mailing Methods box was/is set to PHP Mailer.

Many thanks!
This topic is locked and no more replies can be posted.