Forums

error when attaching a file to an email

StefaNovak 08 Jan, 2024
I upload a file from the form to the server and use admin email to send it. If the file is larger than about 2 MB it gives me an error:

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /www/doc/www.testvaz.cz/www/libraries/src/Log/LogEntry.php on line 126

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 65536 bytes) in /www/doc/www.testvaz.cz/www/libraries/vendor/composer/ClassLoader.php on line 571

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 102400 bytes) in Unknown on line 0

tested on a form with only one "upload files" field and a send button.

chronopforms 7.0.10
Joomla! 4.4.1 Stable [ Pamoja ]
php 8.1.27
Max_admin 09 Jan, 2024
did you try to increase the memory available to PHP then restart the server ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
StefaNovak 09 Jan, 2024
Yes, I increased to 512MB and the result is the same
Max_admin 10 Jan, 2024
so if the file is lower than 2MB this problem never occurs ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
StefaNovak 10 Jan, 2024
it's not exactly 2 mb, but somewhere around. If I attach a 500 kb document, for example, to an email, a 3 mb file always reports an error, regardless of the max-memory-limit setting
Max_admin 25 Jan, 2024
Please try a more simple form, something may be leaking memory usage

also, your template or any plugins on the page may be consuming a lot of memory

and if possible, please try to create a similar simple form in v8 on the same website and test if it has the same issue
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.