This is a compatibility patch for the Piwik Report module and Piwik 1.0.

It addresses the following issues:

Flash variables
The data URL was encoded twice breaking the flash applets. A new function piwik_reports_flashvars_urlencode($path, $query) encodes the URL correctly.

Pages report
Deprecated API method Actions.getActions was replaced by Actions.getPageTitles. This fixes #661406: Actions.getActions undefined.

SSL
The Piwik base url is chosen to match the current SSL state. (http vs. https) This avoids redirects, e.g. when using Secure Pages.

Comments

hass’s picture

Status: Needs review » Postponed

http://drupal.org/project/piwik

Known issue: Piwik 0.4+ have broken the ability to authenticate data URL requests. Therefore Piwik denies access to all report data from other sites nevertheless you entered your token_auth correctly. The main reason is that token_auth is not working any longer with the Flash applets and this breaks the Drupal Piwik - Reports module. It's not in the scope of this module to solve this...

sos4nt’s picture

Alexander, can you please clarify this? With the patch applied, Piwik Reports are running fine on my system, including Flash applets.

wilco’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
StatusFileSize
new9.26 KB

The following is a patch file which helps to fix the 1.x-dev edition of the module. Please review.

hass’s picture

Is one of you guys willingly to maintain the piwik_report module in it's own project? I do not like to maintain it any longer as the maintainers of Piwik.org are not fixing their bugs for about ~1.5 years and I will drop the piwik report module with the next release as it's really a mess and broken in many ways.

Romejoe’s picture

Hi,

I applied the #3 patch to the dev version downloaded today but still have "Piwik_broken_module (missing)" at the reports module.
Did I do something wrongly?

hass’s picture

Version: 6.x-1.x-dev » 7.x-2.x-dev
Status: Postponed » Closed (won't fix)

Piwik reports module has been removed from latest code.

hass’s picture

Issue tags: +piwik_reports