After upgrading from 8.6.2 to 8.7, when I attempt to login, I get routed back to the login page, as if a session was not created. I’ve checked the prod.log and I can see that the following errors are likely relevant to the case:
[2024-10-03 23:06:19] request.CRITICAL: Uncaught PHP Exception Error: “Call to undefined method AuthenticationController::isUserActive()” at Authentication.php line 246 {“exception”:“[object] (Error(code: 0): Call to undefined method AuthenticationController::isUserActive() at /home/MYWEBSITE/core/backend/Authentication/LegacyHandler/Authentication.php:246)”} []
[2024-10-03 23:06:20] request.CRITICAL: Uncaught PHP Exception Error: “Call to undefined method AuthenticationController::isUserActive()” at Authentication.php line 246 {“exception”:“[object] (Error(code: 0): Call to undefined method AuthenticationController::isUserActive() at /home/MYWEBSITE/core/backend/Authentication/LegacyHandler/Authentication.php:246)”} []
[2024-10-03 23:06:20] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: “Invalid CSRF token” at CSRFValidationListener.php line 95 {“exception”:“[object] (Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException(code: 0): Invalid CSRF token at /home/MYWEBSITE/core/backend/Security/CSRFValidationListener.php:95)”} []
[2024-10-03 23:06:20] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: “Invalid CSRF token” at CSRFValidationListener.php line 95 {“exception”:“[object] (Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException(code: 0): Invalid CSRF token at /home/MYWEBSITE/core/backend/Security/CSRFValidationListener.php:95)”} []
It appears that the upgrade has impacted the login procedure of your website, as both of the reported files by the error log are recently updated, as shown below:
-rw-r–r-- 1 ANONIMYZED ANONIMYZED 7741 Oct 3 22:26 /home/MYWEBSITE/core/backend/Authentication/LegacyHandler/Authentication.php
-rw-r–r-- 1 ANONIMYZED ANONIMYZED 3224 Oct 3 22:26 /home/MYWEBSITE/core/backend/Security/CSRFValidationListener.php
I find out that in bitnami docker image bitnami/suitecrm apache runs under user daemon and not apache. So when I change to owner daemen everything started working