Your software
My Mautic version is: 7.0.0
My PHP version is: 8.3.6
My Database type and version is:10.11.13
I installed Mautic via: Zip - Updated via php bin/console mautic:update:find and following commands.
Your problem
My problem is: Mautic display error in the Mail Area
Note: I have a multi user Mautic. Admin, user1, user2
I tested that yesterday as user1 - i’m sure it’s right problem in the user Management. 6.0.7 works fine.
I always updated over the php bin/console mautic:update:find from 4.4 to 5 to 6.0.7 without any tweaks. ubuntu 24.04 server at hetztner.com - nothing special on my side.
These errors are showing in the log: Don’t know which log you need - but i had to go back to 6.0.7 because of the error above. Try out multi user Instance and you see the error. 100%
Steps I have tried to fix the problem: Nothing - Don’t know how. Went back to 6.0.7 because of this huge bug.
Here is my bug created on Github - Closed…hmmm….
When I encounter Mautic errors during upgrades, I connect Windsurf AI IDE via SSH and use Claude Opus 4.5, and it always fixes them in a few minutes.
Often, these issues occur because the cache isn’t properly cleared before and after the upgrade. Sometimes you need to manually delete everything from the cache folder.
@stefan-franz as I mentioned on GitHub, if you wish people to help you must provide your server logs. We cannot help troubleshoot without the actual logs that tell you what the problem is.
To get your log files, check the /var/logs folder in your Mautic folder.
You’ll see files by date.
Reproduce the problem, go to the log file, read the logs to see what is causing the error. It could well be a third-party plugin, for example. The log files should tell you the info about what’s causing the error.
Be sure to redact any sensitive information before sharing them in the forums. Thanks!
updatet again from 6.0.7 to 7.0.0
Switching to the e-Mail section brings the error above - her is the log file:
mautic_prod-2026-01-28.php
[2026-01-28T10:50:07.924533+00:00] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Filesystem\Exception\IOException: "Cannot rename "/tmp/url_matching_routes.phprfPP5K" to "/var/www/html/mautic/var/cache/prod/url_matching_routes.php": rename(/tmp/url_matching_routes.phprfPP5K,/var/www/html/mautic/var/cache/prod/url_matching_routes.php): Permission denied" at /var/www/html/mautic/vendor/symfony/filesystem/Filesystem.php line 304 {"exception":"[object] (Symfony\\Component\\Filesystem\\Exception\\IOException(code: 0): Cannot rename \"/tmp/url_matching_routes.phprfPP5K\" to \"/var/www/html/mautic/var/cache/prod/url_matching_routes.php\": rename(/tmp/url_matching_routes.phprfPP5K,/var/www/html/mautic/var/cache/prod/url_matching_routes.php): Permission denied at /var/www/html/mautic/vendor/symfony/filesystem/Filesystem.php:304)"} {"hostname":"ubuntu-4gb-nbg1-2","pid":218647}
[2026-01-28T10:50:08.010861+00:00] mautic.CRITICAL: Exception thrown when handling an exception (Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Cannot rename "/tmp/url_generating_routes.php1UfNej" to "/var/www/html/mautic/var/cache/prod/url_generating_routes.php": rename(/tmp/url_generating_routes.php1UfNej,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied") in "@MauticCore/Default/script.html.twig" at line 7. at /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Default/script.html.twig line 7) {"exception":"[object] (Twig\\Error\\RuntimeError(code: 0): An exception has been thrown during the rendering of a template (\"Cannot rename \"/tmp/url_generating_routes.php1UfNej\" to \"/var/www/html/mautic/var/cache/prod/url_generating_routes.php\": rename(/tmp/url_generating_routes.php1UfNej,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied\") in \"@MauticCore/Default/script.html.twig\" at line 7. at /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Default/script.html.twig:7)\n[previous exception] [object] (Symfony\\Component\\Filesystem\\Exception\\IOException(code: 0): Cannot rename \"/tmp/url_generating_routes.php1UfNej\" to \"/var/www/html/mautic/var/cache/prod/url_generating_routes.php\": rename(/tmp/url_generating_routes.php1UfNej,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied at /var/www/html/mautic/vendor/symfony/filesystem/Filesystem.php:304)"} {"hostname":"ubuntu-4gb-nbg1-2","pid":218647}
[2026-01-28T10:50:08.019409+00:00] mautic.ERROR: Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Cannot rename "/tmp/url_generating_routes.php1UfNej" to "/var/www/html/mautic/var/cache/prod/url_generating_routes.php": rename(/tmp/url_generating_routes.php1UfNej,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied") in "@MauticCore/Default/script.html.twig" at line 7. - in file /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Default/script.html.twig - at line 7 [] {"hostname":"ubuntu-4gb-nbg1-2","pid":218647}
[2026-01-28T10:50:20.419277+00:00] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Filesystem\Exception\IOException: "Cannot rename "/tmp/url_matching_routes.phpGx84Ey" to "/var/www/html/mautic/var/cache/prod/url_matching_routes.php": rename(/tmp/url_matching_routes.phpGx84Ey,/var/www/html/mautic/var/cache/prod/url_matching_routes.php): Permission denied" at /var/www/html/mautic/vendor/symfony/filesystem/Filesystem.php line 304 {"exception":"[object] (Symfony\\Component\\Filesystem\\Exception\\IOException(code: 0): Cannot rename \"/tmp/url_matching_routes.phpGx84Ey\" to \"/var/www/html/mautic/var/cache/prod/url_matching_routes.php\": rename(/tmp/url_matching_routes.phpGx84Ey,/var/www/html/mautic/var/cache/prod/url_matching_routes.php): Permission denied at /var/www/html/mautic/vendor/symfony/filesystem/Filesystem.php:304)"} {"hostname":"ubuntu-4gb-nbg1-2","pid":266307}
[2026-01-28T10:50:20.482080+00:00] mautic.CRITICAL: Exception thrown when handling an exception (Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Cannot rename "/tmp/url_generating_routes.phpPULCFx" to "/var/www/html/mautic/var/cache/prod/url_generating_routes.php": rename(/tmp/url_generating_routes.phpPULCFx,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied") in "@MauticCore/Default/script.html.twig" at line 7. at /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Default/script.html.twig line 7) {"exception":"[object] (Twig\\Error\\RuntimeError(code: 0): An exception has been thrown during the rendering of a template (\"Cannot rename \"/tmp/url_generating_routes.phpPULCFx\" to \"/var/www/html/mautic/var/cache/prod/url_generating_routes.php\": rename(/tmp/url_generating_routes.phpPULCFx,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied\") in \"@MauticCore/Default/script.html.twig\" at line 7. at /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Default/script.html.twig:7)\n[previous exception] [object] (Symfony\\Component\\Filesystem\\Exception\\IOException(code: 0): Cannot rename \"/tmp/url_generating_routes.phpPULCFx\" to \"/var/www/html/mautic/var/cache/prod/url_generating_routes.php\": rename(/tmp/url_generating_routes.phpPULCFx,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied at /var/www/html/mautic/vendor/symfony/filesystem/Filesystem.php:304)"} {"hostname":"ubuntu-4gb-nbg1-2","pid":266307}
[2026-01-28T10:50:20.526184+00:00] mautic.ERROR: Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Cannot rename "/tmp/url_generating_routes.phpPULCFx" to "/var/www/html/mautic/var/cache/prod/url_generating_routes.php": rename(/tmp/url_generating_routes.phpPULCFx,/var/www/html/mautic/var/cache/prod/url_generating_routes.php): Permission denied") in "@MauticCore/Default/script.html.twig" at line 7. - in file /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Default/script.html.twig - at line 7 [] {"hostname":"ubuntu-4gb-nbg1-2","pid":266307}
[2026-01-28T10:51:03.664405+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\LoaderError: "Unable to find template "@MauticCore/Assets/pictograms/pilot-test.svg" (looked into: /var/www/html/mautic/app/bundles/CoreBundle, /var/www/html/mautic/app/bundles/CoreBundle/Resources/views) in "@MauticCore/Components/pictogram.html.twig" at line 4." at /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Components/pictogram.html.twig line 4 {"exception":"[object] (Twig\\Error\\LoaderError(code: 0): Unable to find template \"@MauticCore/Assets/pictograms/pilot-test.svg\" (looked into: /var/www/html/mautic/app/bundles/CoreBundle, /var/www/html/mautic/app/bundles/CoreBundle/Resources/views) in \"@MauticCore/Components/pictogram.html.twig\" at line 4. at /var/www/html/mautic/app/bundles/CoreBundle/Resources/views/Components/pictogram.html.twig:4)"} {"hostname":"ubuntu-4gb-nbg1-2","pid":266307}
I’ve just sent today a newsletter out. Can try it out in about 1 Week.
But: The install php command did this. I saw it in the SSH terminal. It’s a own step of the install routine. Doesn’t this work?
Btw:
What command do you prefer / what is the right for deleting the cache:
php /var/www/html/mautic/bin/console cache:clear
root@mautic01:/var/www/html/mautic# rm -rf var/cache/*
chatGPT gave me this:
find /var/www/html/mautic/var/cache/ -mindepth 1 -delete