Your software
My Mautic version is: 4.4.9
My PHP version is: 7.4.3
My Database type and version is: 10.3.38-MariaDB
Your problem
My problem is: When I want to send a custom email to a contact the normal dialog opens but if I select an existing template no content or settings are brought through. I don’t use custom mails like this very often and so I may not have done this since the 4.4.9 update. This definitely was working on the version before with my configuration.
These errors are showing in the log:
The apache log shows this error and there is one similar but longer in the Mautic log:
[Wed Jun 14 13:11:01.107452 2023] [proxy_fcgi:error] [pid 884:tid 139934505617152] [client x.x.x.x:41046] AH01071: Got error ‘PHP message: PHP Warning: Invalid argument supplied for foreach() in /var/www/mautic/docroot/app/bundles/EmailBundle/Controller/AjaxController.php on line 299’, referer:
Steps I have tried to fix the problem:
I have cleared the cache, rebuilt assets bin/console mautic:assets:generate
Restarted PHP and Apache