SUITECRM DASHBOARD / Spinning Wheel of Death / Email Click

Version 7.11.18
Sugar Version 6.5.25 (Build 344)

When I click on any email address in the Dashboard View – I get the dreaded “spinning wheel of death”

Confirmed in both Safari and Chrome on Mac.

FYI, does NOT happen in the Modules (eg, click Leads first) list view nor details

Check if you have anything on Apache log or in suitecrm.log.

nothing in suitecrm.log but I see this in the Apache logs (IP REDACTED):

X…X.X.X - - [15/Dec/2020:00:45:21 -0600] “GET /index.php?module=Alerts&action=get&to_pdf=1 HTTP/1.1” 200 955 “https://crm.sppx.io/” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36”

Which I have confirmed shows up in both Safari and Chrome and stops producing those log files if I click off the spinning wheel…

It seems access log. Can you check error log also?

Checking error log now

Last entry in Apache error log is this and seems unrelated:

[Tue Dec 15 00:52:48.279623 2020] [php7:notice] [pid 12647] [client nnn.nnn.nnn.nnn:26749] PHP Notice: Undefined index: HTTP_REFERER in /www/SuiteCRM-7.10.10/include/MVC/SugarApplication.php on line 151

Seems like it is a local javascript error because I don’t see any new log entries after clicking on the email address in the DASHBOARD view – i can refresh the entire page and get the following entries added in Apache

x.x.x.x - - [15/Dec/2020:00:59:33 -0600] “GET / HTTP/1.1” 200 12989 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15”

x.x.x.x - - [15/Dec/2020:00:59:34 -0600] “GET /themes/SuiteP/css/colourSelector.php HTTP/1.1” 200 229 “https://crm.sppx.io/” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15”

x.x.x.x - - [15/Dec/2020:00:59:34 -0600] “POST /index.php?entryPoint=retrieve_dash_page HTTP/1.1” 200 6085 “https://crm.sppx.io/” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15”

x.x.x.x - - [15/Dec/2020:00:59:36 -0600] “GET /index.php?module=Alerts&action=get&to_pdf=1 HTTP/1.1” 200 802 “https://crm.sppx.io/” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15”

I wonder if this is at all related to the fix for this:

One more possibility, Check your browser console. If you have javascript error or when you click on Email address and follow ajax call what you have received in response.

2 Likes

BOOM

sugar_grp1_jquery.js?v=DWHWq7822gn9xbatDANV9w:7666 Uncaught ReferenceError: currentModule is not defined
at s.fn.init.$.fn.openComposeViewModal (sugar_grp1_jquery.js?v=DWHWq7822gn9xbatDANV9w:7666)
at HTMLAnchorElement.onclick (index.php?module=Home&action=index:1)
$.fn.openComposeViewModal @ sugar_grp1_jquery.js?v=DWHWq7822gn9xbatDANV9w:7666
onclick @ index.php?module=Home&action=index:1

:point_up: which Dashlet are we talking about here?

“My Leads”
Screen Shot 2020-12-15 at 11.45.26

As a workaround, replace this bit

with this block instead:

            $html =<<<HTML
            <a class="email-link" href="mailto:{$addr}"
                    onclick="currentModule='{$module_name}';$(document).openComposeViewModal(this);"
                    data-module="{$module_name}" data-record-id="{$record_id}"
                    data-module-name="{$name}" data-email-address="{$addr}"
                >{$text}</a>
HTML;

I am curious as to how long this has been broken… :thinking:

This is not the ideal fix, I would prefer something inside the openComposeViewModal but I didn’t have time to work on that.

1 Like

It must have been working in 7.11.13 which was the last version we had before taking on 7.11.18 a couple of days ago when I noticed it and the other mail template weirdness…

Screen Shot 2020-12-15 at 13.03.45

And did my fix work for you?

Sorry for the delay, YES it works!

Thank you!! Let me know if you have a TipJar :wink:

:cool:

You can Sponsor me on GitHub . It’s a monthly amount but you can cancel at any time after the first payment.