widget error message "The report 'nb_uniq_pageviews' was requested but it is not available" #3440

Closed
mattab opened this Issue Oct 15, 2012 · 9 comments

3 participants

@mattab
Piwik Open Source Analytics member

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
Piwik Open Source Analytics member

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

@anonymous-piwik-user

Here is the trace :

#0 /.../core/Archive/Single.php(181): Piwik_ArchiveProcessing::getPluginBeingProcessed('nb_pageviews')
#1 /.../core/Archive/Single.php(266): Piwik_Archive_Single->prepareArchive()
#2 /.../core/Archive/Single.php(462): Piwik_Archive_Single->get('nb_pageviews', 'numeric')
#3 /.../core/Archive/Single.php(505): Piwik_Archive_Single->getNumeric('nb_pageviews')
#4 /.../plugins/VisitsSummary/API.php(88): Piwik_Archive_Single->getDataTableFromNumeric(Array)
#5 [internal function]: Piwik_VisitsSummary_API->get('359', 'day', 'yesterday', false, Array)
#6 /.../core/API/Proxy.php(190): call_user_func_array(Array, Array)
#7 /.../core/API/Request.php(128): Piwik_API_Proxy->call('Piwik_VisitsSum...', 'get', Array)
#8 /.../plugins/VisitsSummary/Controller.php(98): Piwik_API_Request->process()
#9 /.../plugins/VisitsSummary/Controller.php(129): Piwik_VisitsSummary_Controller::getVisitsSummary()
#10 /.../plugins/VisitsSummary/Controller.php(24): Piwik_VisitsSummary_Controller->setSparklinesAndNumbers(Object(Piwik_View))
#11 [internal function]: Piwik_VisitsSummary_Controller->index()
#12 /.../core/FrontController.php(138): call_user_func_array(Array, Array)
#13 /.../index.php(53): Piwik_FrontController->dispatch()
#14 {main}
@diosmosis
Piwik Open Source Analytics member

(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
Piwik Open Source Analytics member

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
Piwik Open Source Analytics member

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
Piwik Open Source Analytics member

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
Piwik Open Source Analytics member

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

@mattab
Piwik Open Source Analytics member

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

@mattab
Piwik Open Source Analytics member

Ok, fixed.

@mattab mattab added this to the 1.10 - Piwik 1.10 milestone Jul 8, 2014
@diosmosis diosmosis was assigned by mattab Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment