Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#787 closed Bug (fixed)

Flash stats are "Loading..." forever

Reported by: hass Owned by:
Priority: critical Milestone: Piwik 0.4.1
Component: Core Keywords:
Cc: Sensitive:


I'm the developer of the Piwik Drupal module. I'm currently updating the module to v0.4 and have found some issues.

I found that something seems to have changed in Piwik that breaks all reports I have integrated in Drupal. I have build some Drupal reports that loads the flash applets from the Piwik Server. This worked well for some time (for sure up to 0.2.32), but is now broken.

Do you have any idea what could be the issue... I'm little bit lost - the applet loads an then nothing happens - it only shows "Loading data..."

I have also tried to copy and paste the HTML code from Piwik front page to a local file - only to try out, but the same issue occurs - I wonder why it works on the site. Any idea???

<object width="100%" height="250" type="application/x-shockwave-flash" bgcolor="#FFFFFF" data="" id="UserCountrygetCountryChart_swf" style="visibility: visible;">
  <param name="allowScriptAccess" value="sameDomain"/>
  <param name="wmode" value="opaque"/>
  <param name="flashvars" value=";loading=Loading..."/>

One user also reported the below error and I have also seen it:

Open Flash Chart
Loading test data
Error #2032

This is the URL that I tried to open:../../data-files/menu.txt

Change History (17)

comment:1 Changed 5 years ago by vipsoft (robocoder)

This is a compat buster in open flash charts 2 re: cross domain security.

Temporary workaround is to use an iframe.

comment:2 Changed 5 years ago by hass

Oh my goodness... I expected something like this, but wasn't sure... It worked well in 0.2.32. Do you know if this will be fixed? Do you have a code example or a link about the IFRAME workaround?

comment:3 Changed 5 years ago by vipsoft (robocoder)

You can get the IFRAME workaround from your Piwik dashboard. Click on the Widgets link and look for the "Embed Iframe" textbox with code to cut & paste.

comment:4 Changed 5 years ago by hass

Thank you! I missed this...

Do you know if the object cross site scripting issue is fixable and if the maintainer of open flash char 2 is working on a fix? If it wouldn't take so long I would keep the current code as is and better wait for the fix before changing all the code...

comment:5 Changed 5 years ago by matt (mattab)

hass, can you please contact the author of the library and ask him? we would be interested

comment:6 Changed 5 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

(In [1208]) Fixes #787 - change to support embedded widgets across domains; add
sample cross domain policy (install in wwwroot and edit
list of permitted hosts)

Adobe specification for crossdomain.xml:

comment:7 Changed 5 years ago by hass

The referenced Adobe link isn't working.

comment:9 Changed 5 years ago by hass

I've checked and they do not have a policy with "*". I wonder how it is possible to integrate youtube videos in other sites. Aside this have worked with open chart 1...

comment:10 Changed 5 years ago by hass

I changed:

<param name="allowScriptAccess" value="sameDomain"/>


<param name="allowScriptAccess" value="always"/>

and now it works...

comment:11 Changed 5 years ago by hass

You can also remove the parameter as this is the default value if not set.

comment:12 Changed 5 years ago by hass

Oh - no it seems required...

<param name="allowScriptAccess" value="always"/>

I reopen to give you a chance to change the widget object tags.

comment:13 Changed 5 years ago by vipsoft (robocoder)

I did change it in [1208].

comment:14 Changed 5 years ago by Zithromax

comment:15 Changed 5 years ago by dzirt

comment:16 Changed 5 years ago by alivenk

comment:17 Changed 5 years ago by nocha

Note: See TracTickets for help on using tickets.