Forums

CF8 error

lordraven 14 Oct, 2024

Hi! I use joomla 4.4.8 and latest ChronoForms 8. When I try to submit form with sending e-mail CF throws such errors:

# Function Location

1   ()                                                                                     JROOT/libraries/vendor/phpmailer/phpmailer/src/PHPMailer.php:3217

2   PHPMailer\PHPMailer\PHPMailer->addAttachment()    JROOT/libraries/src/Mail/Mail.php:415

3   Joomla\CMS\Mail\Mail->addAttachment()                      JROOT/libraries/src/Mail/Mail.php:649

4   Joomla\CMS\Mail\Mail->sendMail()     JROOT/administrator/components/com_chronoforms8/pages/chronoforms/actions/email/output.php:122

5   require()                                               JROOT/administrator/components/com_chronoforms8/pages/display_element.php:188

6   require()                                               JROOT/administrator/components/com_chronoforms8/pages/view.php:651

7   ChronoApp->{closure}()                       JROOT/administrator/components/com_chronoforms8/pages/view.php:672

8   require()                                               JROOT/libraries/chrono_lib/chrono.php:581

9   ChronoApp->processExtension()        JROOT/administrator/components/com_chronoforms8/chronoforms8.php:13

10  require_once()                                    JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71

11  Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()                                                                                                                                                                        JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73

12  Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()     JROOT/libraries/src/Component/ComponentHelper.php:361

13  Joomla\CMS\Component\ComponentHelper::renderComponent()        JROOT/libraries/src/Application/AdministratorApplication.php:143

14  Joomla\CMS\Application\AdministratorApplication->dispatch()              JROOT/libraries/src/Application/AdministratorApplication.php:186

15  Joomla\CMS\Application\AdministratorApplication->doExecute()          JROOT/libraries/src/Application/CMSApplication.php:293

16  Joomla\CMS\Application\CMSApplication->execute()                            JROOT/administrator/includes/app.php:61

17  require_once()                                                                                         JROOT/administrator/index.php:32

Max_admin 15 Oct, 2024

What is the error message ? there is a problem with the "addAttachement" function so I guess you have setup the email to include attachments but the file is not found or there is another issue with that

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
lordraven 15 Oct, 2024

1 Could not access file:

Max_admin 15 Oct, 2024

then there is a problem reading the file, how do you attach a file ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
lordraven 15 Oct, 2024

add "file" in form

then set {data:file-fieldname} in attachments property on submit

Max_admin 15 Oct, 2024
Answer

do not set anything in the attachments property, you can disable it in the Email action, this is used to attach files using files paths, the file fields are auto attached

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.