My Mautic version is: 7.0.1
My PHP version is: 8.4
Your problem
Error 500 after usage of ASSETS.
Usage of assets break opening contact properties afterwards.
Steps to reproduce:
CREATE asset (either local or remote)
SEND email to CONTACT including an asset link
Open email from the contact mailbox (then clic on the asset link, no automation involved)
Go to MAUTIC and open CONTACT properties - ERROR 500
Yes I got a chance to look into it and in order to fix the bug modify â@MauticAsset/Asset/preview.html.twigâ to â@MauticAsset/Modules/preview.html.twigâ at AssetBundle/Resources/views/SubscribedEvents/Timeline/index.html.twig line no.3
mautic.noname_server.es@www:~/mautic/var/logs$ tail -f /home/mautic.noname_server.es/mautic/var/logs/mautic_prod-2026-05-04.php
[2026-05-04T15:51:50.369027+00:00] mautic.ERROR: STAT UPDATE: cURL error 6: Could not resolve host: updates.mautic.org (see libcurl - Error Codes) for https://updates.mautic.org/stats/send {âhostnameâ:âwww.noname_domain.esâ,âpidâ:3808713}
[2026-05-04T15:51:50.413784+00:00] mautic.ERROR: UPDATE CHECK: cURL error 6: Could not resolve host: api.github.com (see libcurl - Error Codes) for https://api.github.com/repos/mautic/mautic/releases {âhostnameâ:âwww.noname_domain.esâ,âpidâ:3808713}
[2026-05-04T16:01:40.078483+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\LoaderError: âUnable to find template â@MauticAsset/Asset/preview.html.twigâ (looked into: /home/mautic.noname_server.es/mautic/docroot/app/bundles/AssetBundle/Resources/views) in â@MauticAsset/SubscribedEvents/Timeline/index.html.twigâ at line 3.â at /home/mautic.noname_server.es/mautic/docroot/app/bundles/AssetBundle/Resources/views/SubscribedEvents/Timeline/index.html.twig line 3 {âexceptionâ:â[object] (Twig\Error\LoaderError(code: 0): Unable to find template â@MauticAsset/Asset/preview.html.twigâ (looked into: /home/mautic.noname_server.es/mautic/docroot/app/bundles/AssetBundle/Resources/views) in â@MauticAsset/SubscribedEvents/Timeline/index.html.twigâ at line 3. at /home/mautic.noname_server.es/mautic/docroot/app/bundles/AssetBundle/Resources/views/SubscribedEvents/Timeline/index.html.twig:3)â} {âhostnameâ:âwww.noname_domain.esâ,âpidâ:4062560}
[2026-05-04T16:16:16.661201+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\LoaderError: âUnable to find template â@MauticAsset/Asset/preview.html.twigâ (looked into: /home/mautic.noname_server.es/mautic/docroot/app/bundles/AssetBundle/Resources/views) in â@MauticAsset/SubscribedEvents/Timeline/index.html.twigâ at line 3.â at /home/mautic.noname_server.es/mautic/docroot/app/bundles/AssetBundle/Resources/views/SubscribedEvents/Timeline/index.html.twig line 3 {âexceptionâ:â[object] (Twig\Error\LoaderError(code: 0): Unable to find template â@MauticAsset/Asset/preview.html.twigâ (looked into: /home/mautic.noname_server.es/mautic/docroot/app/bundles/AssetBundle/Resources/views) in â@MauticAsset/SubscribedEvents/Timeline/index.html.twigâ at line 3. at /home/mautic.noname_server.es/mautic/docroot/app/bundles/AssetBundle/Resources/views/SubscribedEvents/Timeline/index.html.twig:3)â} {âhostnameâ:âwww.noname_domain.esâ,âpidâ:4062561}
Thanks a lot, @ravi_2002 and @ejobs â your fix worked perfectly on my end too (Mautic 7.0.1, PHP 8.4). Confirming for anyone landing here from search.
Before applying it, I caught the exact error in var/logs/mautic_prod-*.php, which matches your diagnosis 1:1:
mautic.CRITICAL: Uncaught PHP Exception Twig\Error\LoaderError:
"Unable to find template '@MauticAsset/Asset/preview.html.twig'
(looked into: .../AssetBundle/Resources/views)
in '@MauticAsset/SubscribedEvents/Timeline/index.html.twig' at line 3."
One extra thing worth flagging: when I opened index.html.twig to apply the fix, I noticed the file also contains a leftover debug line â a literal Hello on line 2:
It does not cause the 500, but it does render a stray âHelloâ in the contact timeline whenever an asset event is shown. Looks like leftover debug code that slipped into the 7.0.1 release. I removed it along with applying the path fix, so my final file looks like: