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

Error in Events report: Unsupported pivot: the subtable dimension for 'Events.Event Actions' does not match the requested pivotBy dimension #9716

Closed
phoob opened this issue Feb 5, 2016 · 15 comments · Fixed by #14348
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@phoob
Copy link
Contributor

phoob commented Feb 5, 2016

After upgrading to Piwik 2.16.0, I get errors when viewing the events report, specifically when I click to view the "Event Actions" sub-report. Instead of a table, the following error message is displayed:

Unsupported pivot: the subtable dimension for 'Events.Event Actions' does not match the requested pivotBy dimension. [subtable dimension = Events.EventName, pivot by dimension = Events.EventCategory]

And if I immediately go to the Administration page thereafter, I get this additional error message:

ERROR: Failed to get data from API: Unsupported pivot: the subtable dimension for 'Events.Event Actions' does not match the requested pivotBy dimension. [subtable dimension = Events.EventName, pivot by dimension = Events.EventCategory] #0 /var/www/xx.xx.xx/public_html/core/DataTable/Filter/PivotByDimension.php(170): Piwik\DataTable\Filter\PivotByDimension->checkSupportedPivot() #1 [internal function]: Piwik\DataTable\Filter\PivotByDimension->__construct(Object(Piwik\DataTable), 'Events.getActio...', 'Events.EventCat...', '', 0, 0) #2 /var/www/xx.xx.xx/public_html/core/DataTable.php(493): ReflectionClass->newInstanceArgs(Array) #3 /var/www/xx.xx.xx/public_html/core/API/DataTablePostProcessor.php(160): Piwik\DataTable->filter('PivotByDimensio...', Array) #4 /var/www/xx.xx.xx/public_html/core/API/DataTablePostProcessor.php(110): Piwik\API\DataTablePostProcessor->applyPivotByFilter(Object(Piwik\DataTable)) #5 /var/www/xx.xx.xx/public_html/core/Plugin/Visualization.php(444): Piwik\API\DataTablePostProcessor->process(Object(Piwik\DataTable)) #6 /var/www/xx.xx.xx/public_html/core/Plugin/Visualization.php(185): Piwik\Plugin\Visualization->applyFilters() #7 /var/www/xx.xx.xx/public_html/core/Plugin/ViewDataTable.php(414): Piwik\Plugin\Visualization->buildView() #8 /var/www/xx.xx.xx/public_html/core/Plugin/Report.php(338): Piwik\Plugin\ViewDataTable->render() #9 /var/www/xx.xx.xx/public_html/core/Plugin/Controller.php(327): Piwik\Plugin\Report->render() #10 /var/www/xx.xx.xx/public_html/plugins/Events/Controller.php(96): Piwik\Plugin\Controller->renderReport('getAction') #11 /var/www/xx.xx.xx/public_html/plugins/Events/Controller.php(48): Piwik\Plugins\Events\Controller->indexEvent('indexAction') #12 [internal function]: Piwik\Plugins\Events\Controller->indexAction() #13 /var/www/xx.xx.xx/public_html/core/FrontController.php(495): call_user_func_array(Array, Array) #14 /var/www/xx.xx.xx/public_html/core/FrontController.php(99): Piwik\FrontController->doDispatch(NULL, NULL, NULL) #15 /var/www/xx.xx.xx/public_html/core/dispatch.php(34): Piwik\FrontController->dispatch() #16 /var/www/xx.xx.xx/public_html/index.php(27): require_once('/var/www/xx.xx...') #17 {main}

I have Piwik running on PHP 5.5.9-1ubuntu4.14 on Ubuntu 14.04.3 LTS.

I have also posted this issue in the Piwik forum.

@phoob
Copy link
Contributor Author

phoob commented Feb 5, 2016

Tested in latest Safari, Chrome and Firefox on Mac OS, and IE11 on Windows.

@mattab mattab added this to the 2.16.1 milestone Feb 6, 2016
@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Feb 6, 2016
@tsteur
Copy link
Member

tsteur commented Feb 7, 2016

What are the steps to reproduce this? I couldn't reproduce it. Are you using any custom plugins?

@mattab could you reproduce it?

@phoob
Copy link
Contributor Author

phoob commented Feb 8, 2016

@tsteur Here are the steps to reproduce:

  1. Go to Piwik dashboard
  2. Open the Actions menu
  3. Open the Events report
  4. Click on Event Actions in the Top Events link list
  5. Observe first error message (see screen shot 1)
  6. Click on the cog wheel in the top right corner to go to Administration
  7. Observe second error message (see screen shot 2)

Screen shot 1

Screen shot 2

@tsteur
Copy link
Member

tsteur commented Feb 10, 2016

Thx. I can reproduce it with these steps: #9667

Tried to fix it but currently couldn't find a way to do it. Need to have a more detailed look some day later

@hoang89
Copy link

hoang89 commented Feb 19, 2016

How can i escape this bug to view normal events, i cannot view events when this bug occur

@tsteur
Copy link
Member

tsteur commented Feb 22, 2016

If you can, try to switch to another visualization. Or create a new user and view the reports with this user.

@tsteur
Copy link
Member

tsteur commented Mar 8, 2016

@phoob @hoang89 did it work to switch to another visualization?

@phoob
Copy link
Contributor Author

phoob commented Mar 8, 2016

Can you please describe how you mean I should do to switch to another visualization? As you can in my attached screen shot above (the first one) there is just an error message – no data table where I can choose another visualization.

@tsteur
Copy link
Member

tsteur commented Mar 8, 2016

I just realize this is not possible there as you are seeing this all the time. In my case, when I reproduced it, I was still able to change the visualization.

Can you maybe try to execute a query on the DB:

delete from piwik_option where option_name like "viewDataTableParameters_$YOUR_PIWIK_USERNAME_Events.%";
-- for example when username is "root"
delete from piwik_option where option_name like "viewDataTableParameters_root_Events.%";

@phoob
Copy link
Contributor Author

phoob commented Mar 8, 2016

Awesome! Deleting the options from piwik_option solved the issue for me.

@mattab
Copy link
Member

mattab commented Mar 10, 2016

FYI Added a FAQ to document how to reset the report settings: How do I reset the visualisations settings stored for a specific user, or for all users?

@mattab
Copy link
Member

mattab commented Mar 30, 2016

Hopefully this issue is fixed in 2.16.1-b3 (Learn more: http://piwik.org/faq/how-to-update/faq_159/ ). I'm closing now but if you experience this issue and are already using > 2.16.1-b3 please leave a comment asking to re-open this issue.

@mattab mattab closed this as completed Mar 30, 2016
@mattab mattab changed the title Error in Events report after upgrading to Piwik 2.16.0 Error in Events report: Unsupported pivot: the subtable dimension for 'Events.Event Actions' does not match the requested pivotBy dimension Apr 1, 2016
@gregoireclemencin
Copy link

Just for the sake of it, I ran into that same issue recently with Matomo 3.3.0.
Had to issue the SQL DELETE command to overcome the issue.

Here is one scenario where this happens (and can be reproduced):

  • I have the Event Widget on my Dashboard (it works fine)
  • I go to the Event report page, and request a pivoted View from the Category table (it does the job alright)
  • I go back to the Dahsboard --> Event Widget displays the following error message:

Unsupported pivot: the subtable dimension for 'Events.Noms d'évènement' does not match the requested pivotBy dimension. [subtable dimension = Events.EventAction, pivot by dimension = Events.EventCategory]

  • Same issue, if I then go back to the Event page.

Not a big deal in my case (tiny personal web site), but there you go.

Thanks.

@mattab
Copy link
Member

mattab commented Dec 18, 2018

This issue (or a similar issue) was again experienced recently on the Cloud and it will be great to find the root cause and solution to prevent this from happening again. Unfortunately we don't know the exact steps to reproduce but the error message was: "Unsupported pivot: the subtable dimension for 'Events.getCategory' does not match the requested pivotBy dimension. [subtable dimension = Events.EventAction, pivot by dimension = Events.EventName]"

@mattab mattab reopened this Dec 18, 2018
@mattab mattab modified the milestones: 2.16.1, 3.8.0, 3.9.0 Dec 18, 2018
@sgiehl
Copy link
Member

sgiehl commented Mar 17, 2019

I found a way to reproduce:

  • Go to any Events report
  • switch to the alternate dimension in report footer
  • switch to pivoted view of the report
  • go back to the original dimension of the report

--> this will result in a similar error as above

The error is caused by this:
When switching to the pivoted view, Matomo will automatically store the viewDataTable settings for this report. This means a pivotBy value will be stored. When switching back to the other Dimension, that stored value is being reused, but doesn't match the subtable anymore, causing the mentioned error.

@mattab mattab modified the milestones: 3.9.0, 3.10.0 Mar 18, 2019
@tsteur tsteur self-assigned this Apr 14, 2019
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

Successfully merging a pull request may close this issue.

6 participants