@katebutler opened this Pull Request on April 16th 2019 Member

Fixes #12721

@tsteur commented on May 2nd 2019 Member

I'm pretty confused right now :)

For some reason I'm getting the error

The following error just broke Matomo (v3.9.1):

Key "name" for array with keys "module, action, metrics, metricsDocumentation, processedMetrics, imageGraphUrl, imageGraphEvolutionUrl, uniqueId" does not exist.
in plugins/ScheduledReports/templates/_addReport.twig line 148

Where it expects the report to have a name property. But my DB doesn't have this column and it's neither defined in the model:

https://github.com/matomo-org/matomo/blob/3.x-dev/plugins/ScheduledReports/Model.php#L74

So wondering how this ever worked? There's something I'm not seeing. Any idea @katebutler @diosmosis ? It's not related to this PR as the PR didn't change anything. Just my scheduled reports seem to play up?

@diosmosis commented on May 2nd 2019 Member

I looked into the code, but I have no idea why it would work. It does work on demo.matomo.org though, so it must've been a recent regression (though the name code has been around for a long time).

@diosmosis commented on May 2nd 2019 Member

@tsteur Oh, I see it's not actually the scheduled report's name, but the individual report in the list of reports to include in the scheduled report (like "Visits Over Time").

@tsteur commented on May 2nd 2019 Member

thanks very much @diosmosis that's it! I think it's actually cohorts that doesn't have a name defined, might be an old version not sure...

{"module":"Cohorts","action":"getByFirstDayOfVisit","metrics":{"nb_uniq_visitors":"Unique

disabled the plugin and works now

@diosmosis commented on May 2nd 2019 Member

Probably Cohorts as I was affected too, I'll add it.

@tsteur commented on May 2nd 2019 Member

Works 👍 Will merge now @katebutler

This Pull Request was closed on May 2nd 2019
Powered by GitHub Issue Mirror