Juuser Report post Posted September 7, 2020 (edited) Hi, Trying out the FusionCharts and managed to render a bar chart nicely. But on the page where the chart is loaded, I get the following error: fusioncharts.js:13 Uncaught TypeError: Can't call method on undefined at e.exports (fusioncharts.js:13) at e.exports (fusioncharts.js:13) at Function.e.exports (fusioncharts.js:13) at HTMLDocument.fireEvent (mootools-core.js?0782601e4e69d358b8933909645cf550:120) at HTMLDocument.j (mootools-core.js?0782601e4e69d358b8933909645cf550:175) This breaks other javascript on that page. fusioncharts.js:13 takes to: if (e == undefined) throw TypeError("Can't call method on " + e); <-ERROR ROW return e mootools-core.js?0782601e4e69d358b8933909645cf550:120 to: fireEvent: function(a, b, d) { var e = this.retrieve("events"); if (!e || !e[a]) return this; b = Array.from(b); <-ERROR ROW e[a].keys.each(function(a) { d ? a.delay(d, this, : a.apply(this, }, this); return this }, and mootools-core.js?0782601e4e69d358b8933909645cf550:formatted:4397 to: if (!c) { Browser.loaded = c = true; a.removeListener("DOMContentLoaded", j).removeListener("readystatechange", m); a.fireEvent("domready"); <-ERROR ROW b.fireEvent("domready") } Fusioncharts is the latest trial downloaded today. Do you have any ideas how to solve this? Thanks in advance Edited September 7, 2020 by Juuser Share this post Link to post Share on other sites
Ayan Bhadury Report post Posted September 7, 2020 Hi, The error seems to be happening because of caching, please reload the page clearing the browser cache, or check the page in incognito mode and share your observations. Thanks, Ayan Share this post Link to post Share on other sites
Juuser Report post Posted September 8, 2020 Hello Ayan, Thanks for the reply. Unfortunately this doesn't seem to be the cause. I tried with incognito mode and with different browsers, still the same error across all browsers. I have tried rendering the chart in Joomla module position and articles, all have the same issue. BR, Martin Share this post Link to post Share on other sites
Ayan Bhadury Report post Posted September 11, 2020 Joomla plugin is not maintained anymore, you can use FusionCharts and render the charts there using the latest version 3.15.2 Share this post Link to post Share on other sites
Juuser Report post Posted September 11, 2020 (edited) Thanks for the reply! Actually I'm not using Fusioncharts Joomla plugin. I have included php-wrapper "fusioncharts.php" and fusioncharts.js in the template and then tried to render the chart in Joomla standard "custom" module and also including the separate php-file where the chart code is. The chart displays fine, but there is always this javascript conflict no matter how I include the chart. So it seems as log as the chart is rendered in Joomla framework, the error occurs. Thanks in advance for any advice that could solve the issue! Edited September 11, 2020 by Juuser Share this post Link to post Share on other sites
Ayan Bhadury Report post Posted September 11, 2020 Please let us know the FusionCharts version you are using, you can check the metadata of fusioncharts.js for version details. Share this post Link to post Share on other sites
Juuser Report post Posted September 11, 2020 It is 3.15.2 Share this post Link to post Share on other sites
Ayan Bhadury Report post Posted September 11, 2020 Please refer to a sample shared as an attachment. Here is a screenshot below column2d.zip Share this post Link to post Share on other sites
Juuser Report post Posted September 11, 2020 Thanks, this example works without errors when run independently. But when I include this sample e.g. in Joomla module, the same error still occurs. So there seems to be a conflict with Joomla framework (mootools maybe?) Share this post Link to post Share on other sites
Ayan Bhadury Report post Posted September 11, 2020 Please try to clear the cache and load the app. For Joomla related issues please check with Joomla support. Share this post Link to post Share on other sites