Your software
My Mautic version is: 3.2.4 (but I think I always had this issue, even with 2.x)
My PHP version is: 7.3.27
Your problem
When I try to delete the " var/cache " or " var/cache/prod " folder via FTP , Mautic always breaks and shows just an " The site is currently offline due to encountering an error " error. Even after an hour and multiple page-refreshs, it doesn’t work.
Usually I just put back a backup of the cache-folder (DropMySite makes daily backups of my Mautic-files). A few days ago, when I posted this issue, I did the same.
Sorry, but I don’t know too much about these server-things. I have 1 username, and I use always that for accessing FTP, SSH, WHM and cPanel. I might have a “root” user too, but I never use that.
I now googled a bit to see how that “ls -l” works, and here is what I got using them:
Sorry, but I don’t know too much about these server-things. I have 1 username, and I use always that for accessing FTP, SSH, WHM and cPanel. I might have a “root” user too, but I never use that.
No worries. If the var folder (and probably the other Mautic folders too) are all owned by your user, the webserver will be running on that account too.
Anyway, 2 1/2 more checks please:
Just to confirm: var/cache ist still empty? Please do an ls -l
within that folder.
Please do another clear cache: php bin/console mautic:cache:clear
What does it report?
Immediately thereafter, try tail var/logs/mautic_prod-2021-04-27.php (or what ever is)
What messages are displayed?
No, because as said I uploaded there a backup of it, otherwise I wouldn’t be able to access/use Mautic. So at the moment this is the content of var/cache:
SOLVED! I read at “ERR_BUILD_M3_CACHE: Failed to build cache for Mautic 3” that somebody had upgrade-problems and I found similar errors in my log today. Than the user @imrodmartin revealed that’s because of an outdated plugin. I deleted than the Plugin “MauticExtendeeToolsBundle” (which generated the errors) and now deleting the cache-folder is not a problem anymore.
For future searchers: The error was:
[27-Apr-2021 14:54:22 UTC] ReflectionException: Class "Mautic\CoreBundle\EventListener\CommonSubscriber" not found while loading "MauticPlugin\MauticExtendeeToolsBundle\EventListener\ButtonSubscriber". - in file /mywebsite/mautic/vendor/symfony/config/Resource/ClassExistenceResource.php - at line 181