@julienmoumne opened this Issue on April 10th 2011 Member

How to reproduce

  • Access piwik with a date range (demo.piwik.org)
  • Access Email reports
  • Download any report

Error is :

<error message="Date format must be: YYYY-MM-DD, or 'today' or 'yesterday' or any keyword supported by the strtotime function (see http://php.net/strtotime for more information)"/>

The API call to PDFReports.generateReport is set with


period is overridden with configured period report in

getProcessedReport is called with

period=month or week or day&date=datex,datey

/plugins/API/API.php#L360 is executed and throws an exception at /core/Date.php#L70 because the Date factory doesn't support date ranges.


  • Override date with only one of the two provided dates
  • Allow date range scoped pdf reports when manually downloaded ?
  • Anything else ?
@mattab commented on April 11th 2011 Member

(In [4390]) Fixes #2290 PDF Reports will now be generated for period=range - thanks for the report Julien

This Issue was closed on April 11th 2011
Powered by GitHub Issue Mirror