@tsteur opened this Issue on February 15th 2018 Member

This is when executed on the cli. The problem is, there is no $_GET[idSite] set which means no Reports.addReports event listener can find reports as they use getRequestVar('idSite') to find eg all custom dimensions. This means it is not possible for plugins to add any reports depending on the idSite while rendering scheduled reports.

Easiest solution / work around would be probably to temporarily set an idsite while generating a report, and the ReportsCache would need to be based on idSite.

To test use eg ./console scheduled-tasks:run --force

@mattab commented on March 13th 2018 Member

We also have a similar issue, which should be addressed ideally here too:

We get the error: ERROR [2018-03-12 21:09:50] Got invalid response from API request: ?module=API&method=API.get&idSite=2&period=day&date=last52&format=php&trigger=archivephp. Response was 'a:2:{s:6:"result";s:5:"error";s:7:"message";s:81:"Segment 'dimension7' is not a supported segment. - caused by plugin CustomReports";}',
but we found that idSite=2 is a Roll-Up site, and the roll-up does not have custom reports.
But the website idSite=1 has the dimension7 existing.

-> Therefore the issue is that the roll-up idSite=2 sub-triggers the archiving of idsite=1, but does not load the right dimensions. We should address this specifically with a work-around like this issue above with email reports.

@mattab commented on March 13th 2018 Member

Edit: Marking as Major because we are otherwise getting email reports with the error each day, and the roll-up data is not processed correctly.

This Issue was closed on March 20th 2018
Powered by GitHub Issue Mirror