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

Flattening lists and filtering throws error when used together #3432

Closed
anonymous-matomo-user opened this issue Oct 10, 2012 · 3 comments
Closed
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

As explained in the forum post:
http://forum.piwik.org/read.php?2,94533,94575#msg-94575

I am trying to do the following:

  • report "Starting pages" (Aktionen->Eingangsseiten in the german interface)
  • interval any (1 day, 1 week, 1 month, ...)
  • at the end of the list choose "show flat"
  • then apply a filter (inserting a keyword in the textbox at the end of the list)

The error I see is (if I manually open the url in the browser):

The DataTable object has not yet been created

Stacktrace:
0 /path/to/piwik/plugins/Actions/Controller.php(386): Piwik_ViewDataTable->getDataTable()
1 /path/to/piwik/plugins/Actions/Controller.php(332): Piwik_Actions_Controller->configureGenericViewActions(Object(Piwik_ViewDataTable_HtmlTable))
2 /path/to/piwik/plugins/Actions/Controller.php(81): Piwik_Actions_Controller->configureViewActions(Object(Piwik_ViewDataTable_HtmlTable))
3 function: Piwik_Actions_Controller->getEntryPageUrls()
4 /path/to/piwik/core/FrontController.php(138): call_user_func_array(Array, Array)
5 /path/to/piwik/index.php(53): Piwik_FrontController->dispatch()
6 {main}

Example URL on demo.piwik.org:
http://demo.piwik.org/index.php?filter_column=label&filter_column_recursive=label&filter_sort_order=desc&filter_offset=0&keep_summary_row=0&module=Actions&action=getEntryPageUrls&idSite=7&period=year&date=2012-10-03&enable_sort=1&filter_sort_column=entry_nb_visits&filter_limit=100&search_recursive=1&viewDataTable=table&controllerActionCalledWhenRequestSubTable=getEntryPageUrlsSubDataTable&totalRows=17&enable_filter_excludelowpop=0&flat=1&filter_pattern_recursive=list.php

Opening a ticket as requested by Matt.

P.S. I am pretty sure it was working in release 1.8.3
Keywords: API export flatten

@mattab
Copy link
Member

mattab commented Oct 19, 2012

Thanks for the report!

@mattab
Copy link
Member

mattab commented Oct 19, 2012

can you please reproduce and find the bug?

@diosmosis
Copy link
Member

(In [7491]) Fixes #3432, allow filter_pattern_recursive to be used w/ flat=1 & add test for flat=1&expanded=1.

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