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

Row evolution not working in several reports #17263

Open
eramirezprotec opened this issue Feb 24, 2021 · 5 comments
Open

Row evolution not working in several reports #17263

eramirezprotec opened this issue Feb 24, 2021 · 5 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@eramirezprotec
Copy link
Contributor

Expected Behavior

When clicking on a row evolution icon, I should be able to see correctly the evolution of the row data:

image
image

Current Behavior

Three different errors are occurring:

  1. [Reproducible in demo.matomo.cloud] Matomo completely breaks, throwing the following error:
    image
    In my local environment, looks like this:
    image
  2. [Reproducible in demo.matomo.cloud] The graphic shows itself empty:
    image
  3. [Couldn't reproduce in demo.matomo.cloud] After closing the empty graphic from the previous step, another graphic is automatically opened; this time, with data:
    image
    image
    image

Possible Solution

Based on this information:

Call to undefined method Piwik\DataTable\Map::getRows()
in C:\xampp\htdocs\piwik\updated-version\plugins\CustomDimensions\API.php line 66

We get to:

image

The problem described in the first point of the previous section, appears when the hit from JS includes the parameter idSubtable. Another difference between the hits is the presence of the paramater flat with value 0.

Good request:
image

Bad request:
image

Another important thing happening is that the method getCustomDimension is being called several times when processing the request; the last execution of it, receives the parameter $date with a range of dates (2021-02-05,2021-02-15, for instance); when this happens and the parameter idSubtable is present, the method Archive::createDataTableFromArchive is executed and it does not return a DataTable, reason why we get the error described before.

By avoiding the execution of the method Archive::createDataTableFromArchive, the first error disapears, but the second and third one continue happening.

Steps to Reproduce (for Bugs)

1.Enter to demo.matomo.cloud
2.Enter to Behaviour->Page Author
3.Expand any row and click on the Open Row Evolution icon of one of the subtable rows
4.Close the dialog using the X button
5.Click on the Open Row Evolution icon of another of the subtable rows
6.If the error does not appear, try the previous step but with a register of another subtable

About the second error, repeat the same steps but using the Acquisition->Websites section.

The third error appears jointly with the second one. Although, I couldn't reproduce it in demo.matomo.cloud.

Context

Related issues:

Your Environment

  • Matomo Version: 3.13.5
  • PHP Version: 7.4.6
  • Server Operating System: Linux
  • Browser: Chrome
  • Operating System: Windows

CC: @pardvm

@eramirezprotec eramirezprotec added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Feb 24, 2021
@eramirezprotec eramirezprotec changed the title Row evolution not working in Custom Dimension reports Row evolution not working in several reports Feb 24, 2021
@diosmosis diosmosis added Bug For errors / faults / flaws / inconsistencies etc. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. labels Feb 24, 2021
@sgiehl
Copy link
Member

sgiehl commented Feb 25, 2021

@diosmosis Might be related to our discussion in matomo-org/plugin-MarketingCampaignsReporting#62

@ElLorans
Copy link

ElLorans commented Mar 15, 2023

I have the same issue. The only solution is to collapse all rows, which is not enough. I looked into #17374 and #17374 to no avail.
EDIT: oddly enough, I experience the empty graph only in widgets, but it works from matomo cloud.

@sgiehl sgiehl added this to the For Prioritization milestone Mar 16, 2023
@Stan-vw
Copy link
Contributor

Stan-vw commented Apr 18, 2023

I was able to reproduce this last month but I tried it again today on a few environments and it seems to work like a charm. Closing it for now, but we can reopen in case someone experiences it again. Would be great to understand what the way to reproduce is in case we can reproduce it again.

@Stan-vw Stan-vw closed this as completed Apr 18, 2023
@heurteph-ei
Copy link

Very strange: When you click on the @diosmosis link the graph is empty, but if you close the graph and reopen it manually (admindz > http://divezone.net/jobs), data are there... 🤔

@sgiehl sgiehl reopened this May 16, 2023
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

6 participants