Dashboard content not loading

Our dashboard contents are not being displayed all I have is the sidebar and the buttons to add dashlet and dashboard but the dashboard itself is empty.

checking the logs we got this:

[FATAL] log call at: modules/Administration/index.tpl:54 - MY_FRAME is not set

checking the internet I found this: https://github.com/salesagility/SuiteCRM/pull/6097

but checking our code that was already patched with this:

{if isset($MY_FRAME)}
    {$MY_FRAME}
{else}
    {log msg="MY_FRAME is not set"}
{/if}

I’m not certain what is causing this problem. Though our site is not yet on SSL connection.

Also, checking the network logs I found this: index.php?entryPoint=retrieve_dash_page

I think that is the one that should be populating the dashboard since the data that should be seen in the dashboard can be viewed in that page if viewed directly but it’s not populating our dashboard for some reason.

Needed Info:

Version 7.10.7
Sugar Version 6.5.25 (Build 344)

Is this just for one user, or for every user?

What about a new user that you create now, does he get a broken dashboard too?

For every user, I also tried to reset the homepage to no avail.

I should also note that checking php, apache, suite, sugar logs gave no further clues to this problem.

I assume you already tried Admin / Repairs / Quick Repair and Rebuild, but please try also a few more repairs from that page.

  • Rebuild Dashlets

  • anything Javascript related

I tried what you suggested but still got nothing.

I would also like to point out that in the dashboard when I click the actions dropdown the “Add Dashboard” value is not populated only the “Add Dashlets and Edit Tabs”

We’re using Suite P theme.

<li id="tab-actions" class="dropdown open">
                <a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="true">ACTIONS<span class="suitepicon suitepicon-action-caret"></span></a>
                <ul class="dropdown-menu tab-actions">
    
        <li>
            <input class="button addDashlets" type="button" name="Edit" data-toggle="modal" data-target=".modal-add-dashlet" value="Add Dashlets">
        </li>
        <li>
            <input class="button addDashboard" type="button" name="Edit" data-toggle="modal" data-target=".modal-add-dashboard" value="">
        </li>
        <li>
            <input class="button addDashboard" type="button" name="Edit" data-toggle="modal" data-target=".modal-edit-dashboard" value="Edit Tabs">
        </li>
    </ul>            </li>

Can you please give me some more information about your system?

  • PHP version
  • OS
  • is it a new installation? Was it working well before? Until what, an upgrade?

We might have to check your permissions set up.

Also if you can please post a screenshot of what you described in your last post. Put it up on https://pasteboard.co

It was an upgrade and I’m still checking what the previous version was.
Image link: https://pasteboard.co/HDniCwP.png

For the permissions what directories should I look for and what should their permissions be?

PHP version 7.0.30
OS: Debian Linux 9

Can you please paste the results of these commands given from your suitecrm root directory?

ls -al
ps -ef | egrep '(httpd|apache2|apache)' | grep -v `whoami` | grep -v root | head -n1 | awk '{print $1}'

Also paste here what appears in your Admin / Schedulers, at the the bottom under the table. The crontab instructions (these are specific to your installation).

drwxrwxr-x  24 www-data www-data     4096 Sep 10 13:55 .
drwxr-xr-x   5 root     root         4096 Sep 10 16:59 ..
-rwxrwxr-x   1 www-data www-data     2542 Oct 21  2013 acceptDecline.php
drwxrws---  11 www-data www-data     4096 Sep  7 15:16 cache
drwxrwxr-x  19 www-data www-data     4096 Sep  7 13:48 cache2
-rwxrwxr-x   1 www-data www-data     3587 Sep  7 00:21 campaign_tracker.php
-rwxrwxr-x   1 www-data www-data     2748 Sep  6 00:07 campaign_trackerv2.php
-rw-r--r--   1 www-data www-data     3094 Sep  7 00:21 CODE_OF_CONDUCT.md
-rw-r--r--   1 www-data www-data     1341 Sep  7 00:21 composer.json
-rw-r--r--   1 www-data www-data    41422 Sep  7 00:21 composer.lock
-rwxrwxr-x   1 www-data www-data     2669 Sep 10 13:55 config_override.php
-rwxrwxr-x   1 www-data www-data    12022 Sep  7 11:29 config.php
-rwxrwxr-x   1 www-data www-data     5052 Sep  6 00:43 cron.php
-rwxrwxr-x   1 www-data www-data     2446 Sep  6 00:07 crossdomain.xml
drwxrwxr-x  13 www-data www-data     4096 Sep  6 00:35 custom
drwxrwxr-x   3 www-data www-data     4096 Sep  6 00:36 data
-rwxrwxr-x   1 www-data www-data     2386 Sep  7 00:21 dictionary.php
-rwxrwxr-x   1 www-data www-data    12874 Sep  7 00:21 download.php
-rwxrwxr-x   1 www-data www-data     2390 Sep  7 00:21 emailmandelivery.php
drwxrwxr-x   2 www-data www-data     4096 Oct 21  2013 examples
-rwxrwxr-x   1 www-data www-data     4918 Sep  7 00:21 export.php
-rwxrwxr-x   1 www-data www-data   967627 Sep  6 00:07 files.md5
-rw-r--r--   1 www-data www-data     7347 Jan 30  2014 get_mobile_no.php
-rwxrwxr-x   1 www-data www-data     2808 Sep  7 00:21 HandleAjaxCall.php
-rwxrwxr-x   1 www-data www-data     1727 Sep  7 00:23 .htaccess
-rwxrwxr-x   1 www-data www-data     2367 Sep  7 00:21 ical_server.php
-rwxrwxr-x   1 www-data www-data     2534 Oct 21  2013 image.php
drwxrwxr-x  59 www-data www-data     4096 Sep  7 11:20 include
-rw-r--r--   1 www-data www-data   127837 Feb 14  2014 index2.html
-rwxr-xr-x   1 www-data www-data     2374 Sep  7 13:48 index.php
-rwxr-xr-x   1 www-data www-data     2324 Sep  5 09:27 index.php.off
drwxrwxr-x   6 www-data www-data     4096 Sep 11 11:03 install
-rwxrwxr-x   1 www-data www-data    15843 Feb  2  2017 install.log
-rwxrwxr-x   1 www-data www-data    31893 Sep  7 00:21 install.php
-rwxrwxr-x   1 www-data www-data     2275 Sep  7 00:21 json_server.php
drwxrwxr-x   3 www-data www-data     4096 Oct 21  2013 jssource
drwxr-xr-x   2 www-data www-data     4096 Feb 15  2014 large_files
-rw-r--r--   1 www-data www-data   235017 Feb 15  2014 large.htm
-rwxrwxr-x   1 www-data www-data     2536 Oct 21  2013 leadCapture.php
drwxrws---   8 www-data www-data     4096 Sep  7 00:21 lib
-rwxrwxr-x   1 www-data www-data    34539 Sep  6 00:07 LICENSE.txt
drwxrwxr-x   2 www-data www-data     4096 Oct 21  2013 log4php
-rwxrwxr-x   1 www-data www-data     2112 Oct 21  2013 log_file_restricted.html
-rwxrwxr-x   1 www-data www-data     2376 Sep  6 00:07 maintenance.php
drwxrwxr-x   2 www-data www-data     4096 Sep  7 00:21 metadata
-rwxrwxr-x   1 www-data www-data     2298 Sep  6 00:07 metagen.php
drwxrwxr-x   3 www-data www-data     4096 Oct 21  2013 ModuleInstall
drwxrwxr-x 129 www-data www-data     4096 Sep  7 00:21 modules
-rwxrwxr-x   1 www-data www-data     2886 Sep  7 00:21 pdf.php
-rw-r--r--   1 www-data www-data      304 Sep  7 00:21 php_version.php
drwxrws---   2 www-data www-data     4096 Sep  6 00:35 public
-rw-r--r--   1 www-data www-data     3883 Sep  7 00:21 README.md
-rwxrwxr-x   1 www-data www-data     2536 Oct 21  2013 removeme.php
-rw-r--r--   1 www-data www-data      194 Sep  7 00:21 RoboFile.php
-rwxrwxr-x   1 www-data www-data       73 Sep  6 00:07 robots.txt
-rw-r--r--   1 www-data www-data     4776 Mar 28  2012 rpc.php
-rwxrwxr-x   1 www-data www-data     3588 Sep  6 00:07 run_job.php
-rw-r--r--   1 www-data www-data     4774 Jan 30  2014 send_campaign_sms.php
-rw-r--r--   1 www-data www-data     3283 Jan 30  2014 send_sms.php
drwxrwxr-x  12 www-data www-data     4096 Sep  6 00:35 service
-rw-r--r--   1 www-data www-data      277 Jan 30  2014 sms_config.php
drwxrwxr-x   2 www-data www-data     4096 Oct 21  2013 soap
-rwxrwxr-x   1 www-data www-data     4031 Sep  7 00:21 soap.php
-rw-r--r--   1 www-data www-data 10538886 Sep  6 15:53 sugarcrm_1.log
-rw-r--r--   1 www-data www-data  4466088 Sep 10 13:55 sugarcrm1.log
-rw-r--r--   1 www-data www-data 13871095 Sep  6 00:46 sugarcrm_2.log
-rw-r--r--   1 www-data www-data    21634 Sep 11 14:10 sugarcrm2.log
-rw-r--r--   1 www-data www-data 13682334 Sep  6 00:38 sugarcrm_3.log
-rw-r--r--   1 www-data www-data 10528271 Sep  6 00:35 sugarcrm_4.log
-rw-r--r--   1 www-data www-data 10947482 Sep  6 00:10 sugarcrm_5.log
-rw-r--r--   1 www-data www-data 10520118 Sep  5 22:16 sugarcrm_6.log
-rw-r--r--   1 www-data www-data 10522150 Sep  5 19:30 sugarcrm_7.log
-rw-r--r--   1 www-data www-data 10514011 Sep  5 16:44 sugarcrm_8.log
-rw-r--r--   1 www-data www-data 10520401 Sep  5 13:58 sugarcrm_9.log
-rw-r--r--   1 www-data www-data  4521997 Sep  7 10:45 sugarcrm.log
-rwxrwxr-x   1 www-data www-data     5327 Sep  6 00:07 SugarSecurity.php
-rwxrwxr-x   1 www-data www-data      154 Sep  7 00:21 sugar_version.json
-rwxrwxr-x   1 www-data www-data     2296 Sep  7 00:21 sugar_version.php
-rw-r--r--   1 www-data www-data      173 Sep  7 00:21 suitecrm_version.php
drwxrwxr-x   8 www-data www-data     4096 Sep  6 00:35 themes
-rw-r--r--   1 www-data www-data       93 Sep  7 00:21 travis.php.ini
-rwxrwxr-x   1 www-data www-data     5839 Sep  7 00:21 TreeData.php
-rw-rw----   1 www-data www-data  5646816 Sep  7 15:16 upgradeWizard.log
drwxrwxr-x   6 www-data www-data    12288 Sep  7 00:19 upload
-rwxrwxr-x   1 www-data www-data     2248 Sep  7 00:21 vcal_server.php
-rwxrwxr-x   1 www-data www-data     2976 Sep  7 00:21 vCard.php
drwxrws---  21 www-data www-data     4096 Sep  7 00:21 vendor
-rwxrwxr-x   1 www-data www-data     2542 Oct 21  2013 WebToLeadCapture.php
drwxrwxr-x   2 www-data www-data     4096 Oct 21  2013 XTemplate
drwxrwxr-x   8 www-data www-data     4096 Sep  7 00:22 Zend

www-data

In order to run SuiteCRM Schedulers, edit your web server user's crontab file with this command: 
sudo crontab -e -u www-data
... and add the following line to the crontab file: 
*    *    *    *    *     cd /var/www/html/ems/crm; php -f cron.php > /dev/null 2>&1 

Your permissions look fine, although there are some files with less permissions (sugarcrm.log etc).

Is your cron.php launching from www-data’s crontab, like the instructions say? Or is it possible you have it running as root? Please check with this:


crontab -l -u root
crontab -l -u www-data

Anyway you can try resetting your permissions once:


  sudo chown -R www-data:www-data .
  sudo chmod -R 755 .
  sudo chmod -R 775 cache custom modules themes data upload
  sudo chmod 775 config_override.php 2>/dev/null

And tell me what you have in config.php “default_permissions” array.

I got no crontab for both root and www-data

from config.php:

'default_permissions' => array('dir_mode' => 1528, 'file_mode' => 432, 'user'=> '', 'group' => '')

Also, My fellow dev told me it went wrong during the upgrade process. They took it from 7.9.17 to 7.10.7. The old version also had the same problem.

I did the permission reset but still the same problem.

What could cause a dashboard to not be populated by anything? Even though I can see the value from that entrypoint.

Hello,

Can I please get an update for this. Thank you :slight_smile:

I find it strange that you don’t have any cron set up. Are your Scheduler jobs all deactivated? No Workflows, no Reminders and Meeting notifications, no Advanced Search? Or are you launching your Jobs using some other system?

This is important to know because if the Jobs launch as different user they might be messing up your permissions.

Above, you said you tried several users, and you tried refreshing the dashboard. Can you please try also creating a new user?

Your logs probably have more information:

  • suitecrm.log what other FATAL/ERROR/WARNING messages do you see besides that MY_FRAME one?

  • php_errors.log: this is where the Web server throws PHP errors. It is very important to also track this log.

We tried with a new user and the same problem.

Also, there are no other errors found on both suite and php logs.

Advance search is working though I checked.

In Admin / Schedulers, when you go into a job that runs frequently, do you see the “last ran successfully” time showing as a recent time, and in the correct timezone? Or are all your jobs showing “last ran” as “never”?

If they are running, you must be launching them in some way. If you don’t have any crontab configured, you could be using an external service like EasyCron or similar (which isn’t really recommended, but shouldn’t affect your current problem).

Do you see any errors in your browser’s Javascript console?

Also, please try upgrading to 7.10.8 in a cloned test instance, to see if it makes a difference…

Hello,

Found the problem

“dashboardPages” was not in the custom/modules/Home/index.php so removing that file fixed this problem.

So this was caused by custom code…

Note that when you upgraded, you were given a warning saying that SuiteCRM was going to replace a file for which you had a custom version present. This means that the new file won’t take effect, because your custom file will override it, and it might cause things to break.

You always need to pay close attention to these warnings during upgrade, it will save you a lot of trouble. There is no better way to handle this, only manually checking each file. SuiteCRM cannot guess what you did in the custom files you created, and it can’t override them…

1 Like

What did you mean that removing that file fixed this problem? What file are you referring to? I am having the same issue, but don’t have dashboardPages anywhere on the system.