I am currently experiencing an issue when I go to the Emails menu under any of Marketing, Support, Activities, upon entering any, the page displays only the Emails title and a textless button which opens an empty modal on click.
I am getting a 500 error on the request, e.g. module=Emails&action=index&parentTab=Activities (500)
I can see on the console an error that displays
SyntaxError: "undefined" is not valid JSON
and on the logs on the server I’m getting
FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "moduleList" in /path/to/SuiteCRM/cache/smarty/templates_c/%%F6^F60^F609237E%%_headerModuleList.tpl.php
I’ve searched regarding this topic but was unable to find anything that helped
I believe you’re running a PHP version outside the matrix:
I would also advise upgrading to a newer version, at least a newer 7.12, if you don’t want to take the jump to 7.13 (which essentially updates email configuration functionality). Upgrading to v8 is a whole different matter, I’d advise a much more prudent approach there.
Normally a 500 error is a FATAL error on the server, which you should find in one of your two logs.
The error you posted earlier is just a warning, and I don’t think it is relevant. Can you find something else there? Pay attention to the timestamps, look for errors coming up exactly when you’re using the broken screens.
It’s a cache file, it will get automatically re-created. My idea for this test is simple to see if it is a random, transient error that will go away magically, or if the same error will come up in the recreated file.
The next test I suggest is to try PHP 7.4. If it fixes it, at least you have a clue about what sorts of things to look for (PHP 7.4 —> 8.0 incompatibilities).
I’ve done the switch to PHP 7.4 and removed the cache files, but still no luck the when entering the Module the cache files are recreated as an exact copy of what it was and still throws the same fatal error on the log file
Could you tell me where to find the original file? I’ve searched for files named ListViewGeneric, but none of them include the string above, I imagine it’s because <?php if (count ( $this->_tpl_vars['data'] ) == 0): ?> is not actually what I need to search for on the original file