Your software
My Mautic version is: 4
My PHP version is: 7.4.28
My Database type and version is: mariadb
Your problem
My problem is: cannot access mautic anymore…
If I try to access mautic using ip address I get error 500…
These errors are showing in the log:
Looked at APACHE log:
[Wed Mar 23 23:13:47.642678 2022] [proxy_fcgi:error] [pid 10240:tid 140611096954624] AH01071: Got error ‘PHP message: PHP Warning - file_put_contents(/opt/bitnami/mautic/app/…/var/cache/prod/middlewares.cache.php): failed to open stream: Permission denied - in file /opt/bitnami/mautic/app/bundles/CoreBundle/Cache/MiddlewareCacheWarmer.php - at line 84PHP message: PHP Warning: file_put_contents(/opt/bitnami/mautic/app/…/var/cache/prod/middlewares.cache.php): failed to open stream: Permission denied in /opt/bitnami/mautic/app/bundles/CoreBundle/Cache/MiddlewareCacheWarmer.php on line 84PHP message: PHP Warning - include(/opt/bitnami/mautic/app/…/var/cache/prod/middlewares.cache.php): failed to open stream: No such file or directory - in file /opt/bitnami/mautic/app/middlewares/MiddlewareBuilder.php - at line 82PHP message: PHP Warning: include(/opt/bitnami/mautic/app/…/var/cache/prod/middlewares.cache.php): failed to open stream: No such file or directory in /opt/bitnami/mautic/app/middlewares/MiddlewareBuilder.php on line 82PHP message: PHP Warning - include(): Failed opening ‘/opt/bitnami/mautic/app/…/var/cache/prod/middlewares.cache.php’ for inclusion (include_path=’.:/opt/bitnami/php/lib/php’) - in file /opt/bitnami/mautic/app/middlewares/MiddlewareBuilder.php - at line 82PHP message: PHP Warning: include(): Failed opening ‘/opt/bitnami/mautic/app/…/var/cache/prod/middlewares.cache.php’ for inclusion (include_path=’.:/opt/bitnami/php/lib/php’) in /opt/bitnami/mautic/app/middlewares/MiddlewareBuilder.php on line 82PHP message: PHP Warning - Invalid argument supplied for foreach() - in file /opt/bitnami/mautic/app/middlewares/MiddlewareBuilder.php - at line 84PHP message: PHP Warning: Invalid argument supplied for foreach() in /opt/bitnami/mautic/app/middlewares/MiddlewareBuilder.php on line 84’
I do not have this file in cache, I did clear my cache so this might be the reason…
What can I do to fix this error… why is this triggering and how can I regain mautic access?
I see the issue, but how can I fix??
Thank you,