Hi all,
I’ve just installed a fresh instance of SuiteCRM v8.8.0 , and during initial testing, I’m reviewing the /logs/prod.log file. While the system appears to work generally well, I’ve noticed a couple of recurring warnings/errors that I’d like to clean up if possible.
Warning #1: PHP Array Offset on Null
[2025-04-18 07:28:59] php.WARNING: Warning: Trying to access array offset on value of type null {"exception":"[object] (ErrorException(code: 0): Warning: Trying to access array offset on value of type null at /home/crmsystem/html/public/legacy/modules/Users/authentication/SugarAuthenticate/SugarAuthenticate.php:539)"}
This seems related to a null value in the user authentication module, possibly due to a missing session value or login attempt with an unexpected state.
Warning #2: Invalid CSRF Token
[2025-04-18 07:57:33] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: "Invalid CSRF token" at CSRFValidationListener.php line 95
This occurs intermittently and may be tied to expired sessions, form reloads, or navigating between modules in separate browser tabs.
Q1: Are these warnings considered normal in a default SuiteCRM 8.8.0 installation, or are they symptoms of a misconfiguration?
Q2: Is there a known fix or recommended mitigation for either issue?
Q3: Could these be related to permissions, session handling, or environment variables (e.g., caching, CSRF/session timeout)?
Let me know if I should provide additional configuration info (e.g., PHP version, environment setup). I’d really like to understand if these are benign or worth fixing proactively.
rsp
18 April 2025 14:28
2
https://community.suitecrm.com/search?q=Invalid%20CSRF%20token
You need to set error_reporting in your php.ini file.
Restart server!
INFO:
The following documentation is for SuiteCRM Version 8.7.0+
1. Before migrating On this page, when it is stated 7.14.x+ it refers to any version greater or equal to 7.14.x
Before running the migration, please make sure your system complies with...
Well, on by default: error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT and nothing is shown in the log.
rsp
18 April 2025 16:05
4
That’s good! we don’t need to worry about warnings
@Chabi02 we do not have that file in the logs/prod/ folder.
Maybe you did not set error reporting correctly in the php.ini or in the SuiteCRM under admin → system settings → Logger Settings
php.ini file error_reporting
Setting the following in php.ini would help get rid of these errors
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE & ~E_WARNING
Set logger (admin → system settings → Logger Settings)
[image]
and also do things mentioned by pgr
Changed the log level to error to see if it shows a bit more.
Lol, that generated a bit of errors; not really what I expected; what on earth is going on here?
Fri Apr 18 2025 at 17:19:06 [189550][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:06 [189550][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:06 [189550][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:06 [189550][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:06 [189550][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:06 [189550][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:06 [189550][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:06 [189550][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_quotes
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_quotes
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_quotes
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_quotes
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_quotes
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_quotes
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_quotes
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_quotes
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_users_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_users_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_quotes
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_quotes
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship projects_users_resources
Fri Apr 18 2025 at 17:19:07 [189538][1][ERROR] Unable to find relationship am_projecttemplates_users_resources
Fri Apr 18 2025 at 17:19:08 [189554][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:08 [189554][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:19:08 [189554][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:19:08 [189554][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:20:58 [189536][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:20:58 [189536][1][ERROR] Unable to find relationship emails_email_templates
Fri Apr 18 2025 at 17:20:58 [189536][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:20:58 [189536][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:20:58 [189536][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:20:58 [189536][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:20:58 [189536][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:20:58 [189536][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
Fri Apr 18 2025 at 17:20:58 [189536][1][ERROR] Unable to find relationship projects_contacts_resources
Fri Apr 18 2025 at 17:20:58 [189536][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
As mentioned I’ve performed a fresh installation of SuiteCRM v8.8.0 and not an upgrade, hence why a bit surprised to see so much errors, and most likely maybe nothing to worry about. But, I’m just put together seeing extensive error messages in a log, kind of itches and won’t go away by ignoring it. Log evel info, sure I get the various levels that you point to in #1 and #2 was talking about debug and logging with regards to upgrade, which isn’t what I’ve done.
Anyway, moving forward I ran 1) Quick Repair and Rebuild and then next 2) Rebuild Relationships, which got the errors down to the following:
Sat Apr 19 2025 at 09:43:07 [197012][1][ERROR] Unable to find relationship projects_contacts_resources
Sat Apr 19 2025 at 09:43:07 [197012][1][ERROR] Unable to find relationship am_projecttemplates_contacts_resources
So a big improvement. But, the big Question is why are we seeing these errors in a new scratch installation of SuiteCRM v8.8.0 and how to fully mitigate it?