I just installed Espo CRM version 5.7.11 for the first time and quickly encountered this same behavior (no content, grayish background, and copyright at the bottom) after logging in as an admin user. I am unsure of what action of took that caused the issue. I had one admin user and one normal user. I was making a number of configuration teaks via the application as the admin user. Then switching to the regular user to see the results and adding some data. Then log back in as admin and repeated that process trying to familiarized myself with the application.
I encountered the same behavior with both FireFox (71.0) and Chrome (79.0.3945.88).
The browser's console window also contained a JavaScript error:
Code:
[INDENT]Uncaught (in promise) TypeError: tabList.unshift is not a function at child.getTabList (eval at _execute (loader.js:94), <anonymous>:186:25) at child.setup (eval at _execute (loader.js:94), <anonymous>:204:32) at child.initialize (bull.js:276) at child.Backbone.View (backbone-min.js:1224) at child [as constructor] (backbone-min.js:1884) at child [as constructor] (backbone-min.js:1884) at new child (backbone-min.js:1884) at Bull.Factory.<anonymous> (bull.js:114) at Bull.Factory.<anonymous> (bull.js:98) at Espo.Loader.load (loader.js:292)[/INDENT]
Based on the JavaScript error and the difference in the settings. I believe that the JavaScript code is expecting tabList to be an array object so that the unshift() function can be called on it. The good setting appears to be a PHP array and the bad setting is just a string with a comma separated list of values. My guess is that some part of the application is updating the config.php file in the wrong way.
Replacing the bad settings with the good ones, corrects the issue and allows an admin user to login.
Bad Settings:
PHP Code:
'tabList' => 'Account,Contact,Lead,Opportunity,Case,Email,Calendar,Meeting,Call,Task,_delimiter_,Document,Campaign,KnowledgeBaseArticle,Stream,User',
'quickCreateList' => 'Account,Contact,Lead,Opportunity,Meeting,Call,Task,Case,Email',
Good Settings:
PHP Code:
'tabList' => [ 0 => 'Account',
1 => 'Contact',
2 => 'Lead',
3 => 'Opportunity',
4 => 'Case',
5 => 'Email',
6 => 'Calendar',
7 => 'Meeting',
8 => 'Call',
9 => 'Task',
10 => '_delimiter_',
11 => 'Document',
12 => 'Campaign',
13 => 'KnowledgeBaseArticle',
14 => 'Stream',
15 => 'User' ],
'quickCreateList' => [ 0 => 'Account',
1 => 'Contact',
2 => 'Lead',
3 => 'Opportunity',
4 => 'Meeting',
5 => 'Call',
6 => 'Task',
7 => 'Case',
8 => 'Email' ],
Leave a comment: