Hi,
I'm currently working on a form where I have 3 different file upload fields.
When I don't fill each one of those field with a file, the mail is sent but I get an error message for each missing file :
How can I get rid of those ? Everything is working fine but I don't want visitors to see errors when they submit something.
Thanks
I'm currently working on a form where I have 3 different file upload fields.
When I don't fill each one of those field with a file, the mail is sent but I get an error message for each missing file :
Warning: array_values() expects parameter 1 to be array, null given in administrator/components/com_chronoforms/form_actions/email/email.php on line 205
Warning: Invalid argument supplied for foreach() in administrator/components/com_chronoforms/form_actions/email/email.php on line 206
How can I get rid of those ? Everything is working fine but I don't want visitors to see errors when they submit something.
Thanks
Hi yosemite,
The simplest answer is to set the Site Error Reporting to System Default or None which will hide PHP Notices and Warnings.
Or you can edit the file to change that line to read
Bob
The simplest answer is to set the Site Error Reporting to System Default or None which will hide PHP Notices and Warnings.
Or you can edit the file to change that line to read
if( is_array($form->files[$attachment]) && $form->files[$attachment] === array_values($form->files[$attachment]) ) {
Bob
This topic is locked and no more replies can be posted.