Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Oct 15, 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
Copy link
Member Author

mattab commented Oct 19, 2012

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

@anonymous-matomo-user
Copy link

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
Copy link
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
Copy link
Member Author

mattab commented Dec 4, 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
Copy link
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
Copy link
Member Author

mattab commented Dec 13, 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
Copy link
Member

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

@mattab
Copy link
Member Author

mattab commented Dec 15, 2012

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

@mattab
Copy link
Member Author

mattab commented Dec 15, 2012

Ok, fixed.

@mattab mattab added this to the 1.10 - Piwik 1.10 milestone 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
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants