How to View Related Emails from Tasks Module in SuiteCRM

@pstevens and @pgr I did install a new instance of suiteCRM 8.7.1 in:

Debian 12 in an LXC container
PHP: 8.2.26
Apache: 2.4.62
Mariadb: 10.11.6

Created again a relationship between Task And activities, and again the web interface died:

This time Iā€™m sure the instance did not have any issues. My steps were:

  • Install the instance
  • created one role added
  • created some security groups
  • and then created the relationship between Task->Activities.

and as a result, the interface died as it is shown in the picture.
the only errors messages I can see are in the

/var/www/suitecrm/logs/prod/prod.log

[2025-01-10 23:31:53] php.CRITICAL: Uncaught Error: Failed opening required '/var/www/suitecrm/cache/prod/ContainerVKM3gE2/getApiPlatform_State_ErrorProviderService.php' (include_path='/var/www/suitecrm/public/legacy/include/..:.:/usr/share/php') {"exception":"[object] (Error(code: 0): Failed opening required '/var/www/suitecrm/cache/prod/ContainerVKM3gE2/getApiPlatform_State_ErrorProviderService.php' (include_path='/var/www/suitecrm/public/legacy/include/..:.:/usr/share/php') at /var/www/suitecrm/cache/prod/ContainerVKM3gE2/App_KernelProdContainer.php:552)"} []
[2025-01-10 23:31:53] request.CRITICAL: Uncaught PHP Exception Error: "Failed opening required '/var/www/suitecrm/cache/prod/ContainerVKM3gE2/getApiPlatform_State_ErrorProviderService.php' (include_path='/var/www/suitecrm/public/legacy/include/..:.:/usr/share/php')" at App_KernelProdContainer.php line 552 {"exception":"[object] (Error(code: 0): Failed opening required '/var/www/suitecrm/cache/prod/ContainerVKM3gE2/getApiPlatform_State_ErrorProviderService.php' (include_path='/var/www/suitecrm/public/legacy/include/..:.:/usr/share/php') at /var/www/suitecrm/cache/prod/ContainerVKM3gE2/App_KernelProdContainer.php:552)"} []
[2025-01-10 23:31:53] php.CRITICAL: Uncaught Error: Failed opening required '/var/www/suitecrm/cache/prod/ContainerVKM3gE2/getApiPlatform_State_ErrorProviderService.php' (include_path='/var/www/suitecrm/public/legacy/include/..:.:/usr/share/php') {"exception":"[object] (Error(code: 0): Failed opening required '/var/www/suitecrm/cache/prod/ContainerVKM3gE2/getApiPlatform_State_ErrorProviderService.php' (include_path='/var/www/suitecrm/public/legacy/include/..:.:/usr/share/php') at /var/www/suitecrm/cache/prod/ContainerVKM3gE2/App_KernelProdContainer.php:552)"} []

In this instance, the folder /var/www/suitecrm/cache/prod/ContainerVKM3gE2/ does not exist, instead a folder /var/www/suitecrm/cache/prod/ContainerC00SFei exists. I did a snapshot before creating the relationship, so I can easily repeat the process if you give me the necessary steps to diagnose the problem.

Have you tried a symfony cache clear?

A cache clear is a good idea, also when ever I see ā€œfailed openingā€ that leads me to want to reset the file permissions and ownerships and see if that helps.

@pgr I just did a sudo -u www-data ./bin/console cache:clear and it didnā€™t fix anything

@pstevens I reran the following commands from the suitecrm root folder :

find . -type f -not -perm 0644 -exec chmod 0644 {} \;
find . ! -user www-data -exec chown www-data:www-data {} \;
chmod +x bin/console```

and it didn't fix anything either.

It may not work in SuiteCRM 8. I did it in SuiteCRM 7. Itā€™s much more forgiving (stable) in when it runs into errors, for example everything works but just the subpanels donā€™t appear. SutieCRM 8 I find, just ends up in a blank screen until the error is resolved.

If you have the emails relationship working, you might just want to stick with that.

@pstevens Thanks for your help and time. Yes, this seems not to be working in SuiteCRM 8. One last think I noticed is that when the relationships are created, they do nod get marked as created in studio (they do not have the * mark):

imagen

Neither do mine but it still works.