My Mautic version is: 5.0.4
My PHP version is: 8.1.28
My Database type and version is: 10.11.8-MariaDB-0ubuntu0.24.04.1
My problem is: I sent an email to my mailing list and the read count is 0. I know for a fact that it should be higher because I got some responses.
These errors are showing in the log:
[2024-09-17T03:43:57.592477+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\LoaderError: "Unable to find template "MauticSocialBundle/Integration/Facebook:share.html.twig" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form)." at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php line 227 {"exception":"[object] (Twig\\Error\\LoaderError(code: 0): Unable to find template \"MauticSocialBundle/Integration/Facebook:share.html.twig\" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form). at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php:227)"} {"hostname":"514cea8a7ef0","pid":3832576}
[2024-09-17T06:53:01.754567+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\LoaderError: "Unable to find template "MauticSocialBundle/Integration/Facebook:share.html.twig" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form)." at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php line 227 {"exception":"[object] (Twig\\Error\\LoaderError(code: 0): Unable to find template \"MauticSocialBundle/Integration/Facebook:share.html.twig\" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form). at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php:227)"} {"hostname":"514cea8a7ef0","pid":3826432}
[2024-09-17T09:20:45.780033+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\LoaderError: "Unable to find template "MauticSocialBundle/Integration/Facebook:share.html.twig" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form)." at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php line 227 {"exception":"[object] (Twig\\Error\\LoaderError(code: 0): Unable to find template \"MauticSocialBundle/Integration/Facebook:share.html.twig\" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form). at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php:227)"} {"hostname":"514cea8a7ef0","pid":3844964}
[2024-09-17T13:52:14.110699+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\LoaderError: "Unable to find template "MauticSocialBundle/Integration/Facebook:share.html.twig" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form)." at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php line 227 {"exception":"[object] (Twig\\Error\\LoaderError(code: 0): Unable to find template \"MauticSocialBundle/Integration/Facebook:share.html.twig\" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form). at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php:227)"} {"hostname":"514cea8a7ef0","pid":3844964}
[2024-09-17T14:12:36.053595+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\LoaderError: "Unable to find template "MauticSocialBundle/Integration/Facebook:share.html.twig" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form)." at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php line 227 {"exception":"[object] (Twig\\Error\\LoaderError(code: 0): Unable to find template \"MauticSocialBundle/Integration/Facebook:share.html.twig\" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form). at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php:227)"} {"hostname":"514cea8a7ef0","pid":3832576}
[2024-09-17T14:48:02.507953+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\LoaderError: "Unable to find template "MauticSocialBundle/Integration/Facebook:share.html.twig" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form)." at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php line 227 {"exception":"[object] (Twig\\Error\\LoaderError(code: 0): Unable to find template \"MauticSocialBundle/Integration/Facebook:share.html.twig\" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form). at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php:227)"} {"hostname":"514cea8a7ef0","pid":3904444}
[2024-09-17T15:47:04.114626+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\LoaderError: "Unable to find template "MauticSocialBundle/Integration/Facebook:share.html.twig" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form)." at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php line 227 {"exception":"[object] (Twig\\Error\\LoaderError(code: 0): Unable to find template \"MauticSocialBundle/Integration/Facebook:share.html.twig\" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form). at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php:227)"} {"hostname":"514cea8a7ef0","pid":3904444}
[2024-09-17T15:47:53.243715+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\LoaderError: "Unable to find template "MauticSocialBundle/Integration/Facebook:share.html.twig" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form)." at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php line 227 {"exception":"[object] (Twig\\Error\\LoaderError(code: 0): Unable to find template \"MauticSocialBundle/Integration/Facebook:share.html.twig\" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form). at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php:227)"} {"hostname":"514cea8a7ef0","pid":3904444}
[2024-09-17T16:13:35.249197+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\LoaderError: "Unable to find template "MauticSocialBundle/Integration/Facebook:share.html.twig" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form)." at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php line 227 {"exception":"[object] (Twig\\Error\\LoaderError(code: 0): Unable to find template \"MauticSocialBundle/Integration/Facebook:share.html.twig\" (looked into: /var/www/html/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /var/www/html/vendor/symfony/twig-bridge/Resources/views/Form). at /var/www/html/vendor/twig/twig/src/Loader/FilesystemLoader.php:227)"} {"hostname":"514cea8a7ef0","pid":3933708}
Steps I have tried to fix the problem:
I looked into my sent folder (I use Gmail to send the emails) and noticed that the sent email contains the following:
<img height=3D"1" width=3D"1" src=3D"http://mysite.com:443/ema=
il/66e9904e9d1d3698282478.gif" alt=3D"" />
I tried the URL http://mysite.com:443/ema= il/66e9904e9d1d3698282478.gif
myself and got an HTTP 400 error. I also tried http://mysite.com:443/email/66e9904e9d1d3698282478.gif
and got the same
Just noted that if I change the URL to https://mysite.com/email/66e9904e9d1d3698282478.gif
I do get the expected result but.
In my configuration I saw that I have http://mysite.com:443/index.php
as my site URL.