Skip to content

[Bug] Matomo Query Report Custom Range doesn't workΒ #22911

@bozzelliandrea

Description

@bozzelliandrea

What happened?

Using the Archive class to retrieve archived blob storage data doesn't work in a custom date range period.
If I filter the data using day/week/month/year as period, the data aggregation work as expected.

With data range period, starting date monday of the week, ending date sunday, returned dataTable is empty.

Same query with week as period, dataTable returns all expected counters.

What should happen?

Expected blob data aggregated and returned from Archive class.

How can this be reproduced?

  • Create and prepare an Archiver and generate archive blob records
  • Get archived data with range date as period
 $period = \Piwik\Common::getRequestVar('period', 'day', 'string');
 $date = \Piwik\Common::getRequestVar('date', 'today', 'string');
 // $period = range
 $archive = Archive::build($idSite, $period, $date);

 $archiveDataTable = $archive->getDataTable('Custom_Report'); // expected counters here

Matomo version

2.5.0 on premise

PHP version

8.1

Server operating system

No response

What browsers are you seeing the problem on?

No response

Computer operating system

No response

Relevant log output

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    answeredFor when a question was asked and we referred to forum or answered it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions