@mattab opened this issue on October 15th 2012

reported in forum

Error: The report 'nb_uniq_pageviews' was requested but it is not available at this stage. You may also disable the related plugin to avoid this error.

Steps to reproduce 1) Add "Visits overview (with graph)" to dashboard 2) Change metrics to plot to 'pageviews'. Graph refreshes. 3) Reload page

@mattab commented on October 19th 2012

Could we avoid this error and fail gracefully, or is the error really not expected?

@diosmosis commented on November 21st 2012

(In [7500]) Fixes #3440, make sure Actions metrics are associated w/ an Actions report in Piwik_Archive_Single::getRequestedReportFor and make sure Piwik_VisitsSummary_Controller::getVisitsSummary can handle case where Piwik_API_Request returns false.

@mattab commented on December 4th 2012

There are metrics in the array that do not belong to the Actions plugin, ie.

        'sum_time_spent',
        'exit_nb_uniq_visitors',
        'exit_nb_visits',
        'sum_daily_exit_nb_uniq_visitors',
        'entry_nb_uniq_visitors',
        'sum_daily_entry_nb_uniq_visitors',
        'entry_nb_visits',
        'entry_nb_actions',
        'entry_sum_visit_length',
        'entry_bounce_count',

Were this added for a reason?

Vote for revert

@diosmosis commented on December 5th 2012

They are referenced by Archive.php in the $mappingFromIdToName as actions metrics so I guess I put them in w/ the others. I can see they're not actually archived as numeric metrics, though, by the Actions plugin. I guess I can remove them?

@mattab commented on December 13th 2012

Replying to capedfuzz:

They are referenced by Archive.php in the $mappingFromIdToName as actions metrics so I guess I put them in w/ the others. I can see they're not actually archived as numeric metrics, though, by the Actions plugin. I guess I can remove them?

Sounds good to remove them and only put the actions metrics, this would prevent further issues.

@diosmosis commented on December 15th 2012

(In [7621]) Refs #3440, remove non-archived metrics from Piwik_Archive::$actionMetrics.

@mattab commented on December 15th 2012

To fix it, maybe could have a test case that used to trigger the error? thoughts?

@mattab commented on December 15th 2012

Ok, fixed.

This issue was closed on December 16th 2012
Powered by GitHub Issue Mirror