Piwik module works well, I can see stats on my piwik install, but cannot see data into flash chart in piwik reports. Piwik is the last version, so the piwik module (6.x-1.x-dev 2009-Jun-10). Firebug shows the call to a external swf

http://piwik.mow.it/libs/open-flash-chart/open-flash-chart.swf?data=http...

try to open it in another tab and see this error:
----------------------
Open Flash Chart
IO ERROR
Loading test data
Error #2032
----------------------

I also tried to urldecode the data= passed to the swf , becomes something like:

http://piwik.mow.it/?module=VisitTime&action=getVisitInformationPerLocal...

and it shows json data ... what's wrong?

Comments

hass’s picture

I'm currently testing Piwik 0.4 with the module, but haven't yet found the time to test the reports module. Maybe something has changed in the API. We need to investigate...

mliga’s picture

Ok, what is the last piwik version is known to work with the report module? I can easily downgrade in the while ...
UPDATE: downgraded to piwik 2.37 and still the same issue ... Maybe this can be a theme issue
Is this module supposed to work with some piwik version?

hass’s picture

It have worked for sure with 0.2.32 and should work with all 0.2.x versions... I will take a look this evening... please wait a few days... shouldn't be so critical that you need to downgrade Piwik.

I hope this is not again a mod_security issue on your server... maybe you can take a short look if mod_security is active. Try to disable it first.

mliga’s picture

Thank you for your interest ... As I told, I just downgraded to 2.37 and I still have the issue.
mod_security is disabled on my server.

I solved the hurry via including a widget in an iframe, so can easily wait a few days ....

hass’s picture

Only to note - I have reproduced it, but do not have any solution yet. I mailed Matt from the Piwik Team and hope he have an idea...

hass’s picture

While trying to fix this issue we figured out that this is a cross domain issue, where a configuration workaround is not very user friendly. See http://dev.piwik.org/trac/ticket/787.

I'm planing to use the iframe widget's, but there is something broken with token_auth. See http://dev.piwik.org/trac/ticket/790. After this is fixed I will change all the piwik_reports code.

hass’s picture

Category: support » bug
hass’s picture

Title: Can't see data on Piwik reports, flash loads forever » Refactor piwik_reports module for new Piwik v0.4 / Applets not loading
Status: Active » Fixed

Now it works, but there are inconsistencies in the API parameter date that could cause data to be shown from other date ranges than selected. Followup #490664: Filter time period incosistencies.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.