We have a license for 3.1 extension and have noticed recently that are charts aren’t always displaying and now not at all. We are using Kreporter with Suitecrm 7.8.31.
I see this error in the console log and wonder if you have any ideas about the problem.
index.php?module=KReports&action=DetailView&record=4f85b03d-7466-0643-5faa-5dae184cdf5d:1107 Uncaught TypeError: Cannot read property ‘ChartWrapper’ of undefined
at index.php?module=KReports&action=DetailView&record=4f85b03d-7466-0643-5faa-5dae184cdf5d:1107
(anonymous) @ index.php?module=KReports&action=DetailView&record=4f85b03d-7466-0643-5faa-5dae184cdf5d:1107
We are using Google Charts. We have made no changes but noticed that the reports would intermittently fail to display until we did one or two refreshes. And as of yesterday, this does not work for the charts don’t display at all.
Thanks,
Dianna
Rachel,
I just started looking at it yesterday and did not get it working from the code above. But today I made the following changes to the code above and got it working.
Change the line in getHeader from:
$coreString = “”;
To:
$coreString = “”;
AND change the line in getItem from:
$chartDataString .= "google.charts.load(‘current’); ";
To:
$chartDataString .= "google.charts.load(‘current’, {packages: [‘corechart’]}); ";
Now I see what happened to albertostic because the same thing has happened to me and I don’t know how to fix it. When the post displays in HTML, the required code is not visible. When I look at it raw, the code is correct.
To see what needs to go in the getHeader modified line following this link: