After enabling all the modules, I have successfully login into the suiteCRM but I can’t click Admin Modules or any other module. It shows “Unexpected error when calling action” and not open any page. Please suggest me how to fix this.
Check the file and directory permissions of SuiteCRM.
Hello Anguraj,
I was suffering with same error… I found several entries in the LOGS…
[2023-04-24 16:04:45] request.CRITICAL: Uncaught PHP Exception RuntimeException: “Failed to start the session.” at /home/serv/crm.services.com/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php line 157 {“exception”:“[object] (RuntimeException(code: 0): Failed to start the session. at /home/serv/crm.services.com/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:157)”} []
[2023-04-25 15:42:06] request.INFO: Matched route “api_graphql_entrypoint”. {“route”:“api_graphql_entrypoint”,“route_parameters”:{“_route”:“api_graphql_entrypoint”,“_controller”:“api_platform.graphql.action.entrypoint”,“_graphql”:true},“request_uri”:“https://crm.services.com/public/index.php/api/graphql",“method”:"POST”} []
[2023-04-25 15:42:06] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: “Invalid CSRF token” at /home/serv/crm.services.com/core/backend/Security/CSRFValidationListener.php line 96 {“exception”:“[object] (Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException(code: 0): Invalid CSRF token at /home/serv/crm.services.com/core/backend/Security/CSRFValidationListener.php:96)”} []
[2023-04-26 14:14:47] request.INFO: Matched route “api_graphql_entrypoint”. {“route”:“api_graphql_entrypoint”,“route_parameters”:{“_route”:“api_graphql_entrypoint”,“_controller”:“api_platform.graphql.action.entrypoint”,“_graphql”:true},“request_uri”:“https://crm.services.com/public/index.php/api/graphql",“method”:"POST”} []
[2023-04-26 14:14:48] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: “Invalid CSRF token” at /home/serv/crm.services.com/core/backend/Security/CSRFValidationListener.php line 96 {“exception”:“[object] (Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException(code: 0): Invalid CSRF token at /home/serv/crm.services.com/core/backend/Security/CSRFValidationListener.php:96)”} []
[2023-05-05 17:03:56] request.INFO: Matched route “api_graphql_entrypoint”. {“route”:“api_graphql_entrypoint”,“route_parameters”:{“_route”:“api_graphql_entrypoint”,“_controller”:“api_platform.graphql.action.entrypoint”,“_graphql”:true},“request_uri”:“https://crm.services.com/public/index.php/api/graphql",“method”:"POST”} []
[2023-05-05 17:03:56] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: “Invalid CSRF token” at /home/serv/crm.services.com/core/backend/Security/CSRFValidationListener.php line 96 {“exception”:“[object] (Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException(code: 0): Invalid CSRF token at /home/serv/crm.services.com/core/backend/Security/CSRFValidationListener.php:96)”} []
How ever the problem was solved, when I change the version of PHP of my system… it was from PHP 8.0 to 8.1 and everything works like a charm.