Your software
My Mautic version is: 4.4.7
My PHP version is: 7.4.33
My Database type and version is: 8.0.31-23
Your problem
My problem is:
Hello.
I am getting this warning when the cron is run mautic:emails:send.
Why could it be?
Thank you
These errors are showing in the log:
Warning: rename(): supplied resource is not a valid Stream-Context resource in /var/www/html/app/bundles/EmailBundle/Command/ProcessEmailQueueCommand.php on line 141
And I also get this one
In AmazonApiTransport.php line 227:
Argument 1 passed to Mautic\EmailBundle\Swiftmailer\Transport\AmazonApiTransport::send() must be an instance of Swift_Mime_SimpleMessage, bool given, called in /var/www/html/vendor/swiftmailer/swiftmailer/
lib/classes/Swift/FileSpool.php on line 169
I face the same problem.
My disk was full. Afterwards tis problem started to appear.
Sending 1-3 mails most of the time works (with "message-limit=2). But more than 3 usually fail.
From the logs:
[2024-03-28 17:46:25] mautic.NOTICE: TypeError: Argument 1 passed to Mautic\EmailBundle\Swiftmailer\Transport\AmazonApiTransport::send() must be an instance of Swift_Mime_SimpleMessage, bool given, called in /var/www/websites/MAUTIC/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/FileSpool.php on line 169 (uncaught exception) at /var/www/websites/MAUTIC/public_html/app/bundles/EmailBundle/Swiftmailer/Transport/AmazonApiTransport.php line 227 while running console command mautic:emails:send {“hostname”:“MAUTIC”,“pid”:11018}
[2024-03-28 17:46:25] mautic.WARNING: Command mautic:emails:send exited with status code 1 {“hostname”:“MAUTIC”,“pid”:11018}