No Emails Sending after update to 5.1

Your software
My Mautic version is: 5.1.0
My PHP version is: 8.1.29
My Database type and version is: 10.11.6-MariaDB-0+deb12u1

Your problem
My problem is:

These errors are showing in the log:

[2024-09-04T06:05:41.339166+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/media/files/5a0787717b2a43ffb5f9966db7597ddb4dbeec08.jpg): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/AssetBundle/Entity/Asset.php - at line 1106 {“hostname”:“johnboy”,“pid”:155859}
[2024-09-04T06:18:26.424101+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/media/files/5a0787717b2a43ffb5f9966db7597ddb4dbeec08.jpg): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/AssetBundle/Entity/Asset.php - at line 1106 {“hostname”:“johnboy”,“pid”:152869}
[2024-09-04T06:20:57.208297+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/media/files/5a0787717b2a43ffb5f9966db7597ddb4dbeec08.jpg): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/AssetBundle/Entity/Asset.php - at line 1106 {“hostname”:“johnboy”,“pid”:155859}
[2024-09-04T08:30:50.249029+00:00] mautic.NOTICE: PHP Notice - SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /var/www/html/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 116 {“hostname”:“johnboy”,“pid”:152869}
[2024-09-04T08:31:12.056085+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/asset/21:escapelogologo-300pxpng1): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:152869}
[2024-09-04T08:31:12.131083+00:00] mautic.WARNING: PHP Warning - file_get_contents(): php_network_getaddresses: getaddrinfo for [www.mailjet.com](http://www.mailjet.com) failed: Temporary failure in name resolution - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:152869}
[2024-09-04T08:31:12.131404+00:00] mautic.WARNING: PHP Warning - file_get_contents(https://www.mailjet.com/images/theme/v1/icons/ico-social/instagram.png): Failed to open stream: php_network_getaddresses: getaddrinfo for [www.mailjet.com](http://www.mailjet.com) failed: Temporary failure in name resolution - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:152869}
[2024-09-04T08:31:12.133337+00:00] mautic.WARNING: PHP Warning - file_get_contents(): php_network_getaddresses: getaddrinfo for [www.mailjet.com](http://www.mailjet.com) failed: Temporary failure in name resolution - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:152869}
[2024-09-04T08:31:12.133509+00:00] mautic.WARNING: PHP Warning - file_get_contents(https://www.mailjet.com/images/theme/v1/icons/ico-social/web.png): Failed to open stream: php_network_getaddresses: getaddrinfo for [www.mailjet.com](http://www.mailjet.com) failed: Temporary failure in name resolution - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:152869}
[2024-09-04T08:33:16.284602+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/asset/21:escapelogologo-300pxpng1): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:155859}
[2024-09-04T09:01:46.541669+00:00] mautic.NOTICE: PHP Notice - iconv(): Detected an illegal character in input string - in file /var/www/html/app/bundles/CoreBundle/Helper/InputHelper.php - at line 421 {“hostname”:“johnboy”,“pid”:155865}
[2024-09-04T09:06:33.764944+00:00] mautic.NOTICE: PHP Notice - iconv(): Detected an illegal character in input string - in file /var/www/html/app/bundles/CoreBundle/Helper/InputHelper.php - at line 421 {“hostname”:“johnboy”,“pid”:170534}
[2024-09-04T09:06:40.672015+00:00] mautic.NOTICE: PHP Notice - iconv(): Detected an illegal character in input string - in file /var/www/html/app/bundles/CoreBundle/Helper/InputHelper.php - at line 421 {“hostname”:“johnboy”,“pid”:170440}
[2024-09-04T09:07:12.674394+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/asset/21:escapelogologo-300pxpng1): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:155865}
[2024-09-04T09:07:14.426986+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/asset/21:escapelogologo-300pxpng1): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:155865}
[2024-09-04T09:07:14.468121+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/asset/21:escapelogologo-300pxpng1): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 827 {“hostname”:“johnboy”,“pid”:155865}
[2024-09-04T11:50:26.232251+00:00] mautic.NOTICE: PHP Notice - iconv(): Detected an illegal character in input string - in file /var/www/html/app/bundles/CoreBundle/Helper/InputHelper.php - at line 421 {“hostname”:“johnboy”,“pid”:170440}
[2024-09-04T11:55:14.782224+00:00] mautic.NOTICE: PHP Notice - SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /var/www/html/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 116 {“hostname”:“johnboy”,“pid”:170534}
[2024-09-04T12:15:05.663623+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/media/files/5a0787717b2a43ffb5f9966db7597ddb4dbeec08.jpg): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/AssetBundle/Entity/Asset.php - at line 1106 {“hostname”:“johnboy”,“pid”:170440}
[2024-09-04T14:10:26.218960+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/media/files/da57889896a0f96a1ac3cc3f24f514f01b1edd62.png): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/AssetBundle/Entity/Asset.php - at line 1106 {“hostname”:“johnboy”,“pid”:173919}
[2024-09-04T14:34:11.346336+00:00] mautic.WARNING: PHP Warning - file_get_contents(/var/www/html/media/files/5a0787717b2a43ffb5f9966db7597ddb4dbeec08.jpg): Failed to open stream: No such file or directory - in file /var/www/html/app/bundles/AssetBundle/Entity/Asset.php - at line 1106 {“hostname”:“johnboy”,“pid”:170534}

Steps I have tried to fix the problem:

Re Entered all Email Credentals
Upgraded to 5.1
Checked Folder Permissions
Tried sending a blank email with no effect

Any suggestions?

This line suggests there is some issue with embedding the images inside the email. I tested embedded images in Mautic 5.1 in Tests for embedded images when sending emails by escopecz · Pull Request #13449 · mautic/mautic · GitHub and it was working. Can you check that the file /var/www/html/asset/21:escapelogologo-300pxpng1 exists on your server?

Please also describe what ESP you use to send emails. Can you send a test email?

There are also some issues reported if there is some special character in the email DSN. Check if it’s not your case:

yes its present and also loadable if i go to the link directly
https://mautic.oez.escpe.net/asset/21:escapelogologo-300pxpng1

As discussed in the Slack thread this issue may be caused by the worker not running. Try running bin/console messenger:consume email and see what the output is.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.