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

Visitor profile: Key "totalEvents" for array with keys "..." does not exist #13171

Closed
dw opened this issue Jul 16, 2018 · 4 comments
Closed

Visitor profile: Key "totalEvents" for array with keys "..." does not exist #13171

dw opened this issue Jul 16, 2018 · 4 comments
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Milestone

Comments

@dw
Copy link

dw commented Jul 16, 2018

Hi there,

Running latest Matomo with (as far as I can tell) all the standard plug-ins enabled produced this for maybe 70% of clicks on the "View visitor profile" icon of the "Visitors in Real-time" dashboard widget. This has been broken for many months across many releases, I just decided to look into it today.

The AJAX call fails with HTTP 500, and the pop-up modal just displays a constant modal. Opening the AJAX URL directly reveals the error.

The URL is:

/piwik/index.php?date=today&module=Live&action=getVisitorProfilePopup&visitorId=...&idSite=6&period=day

The error text is:

A fatal error occurred

The following error just broke Matomo (v3.5.1):

Key "totalEvents" for array with keys "visitorId, totalVisits, totalVisitDuration, totalActions, 
totalOutlinks, totalDownloads, totalSearches, totalPageViews, totalUniquePageViews, 
totalRevisitedPages, totalPageViewsWithTiming, searches, totalGoalConversions, 
totalConversionsByGoal, hasLatLong, lastVisits, nextVisitorId, previousVisitorId, 
totalVisitDurationPretty, userId, firstVisit, lastVisit, visitsAggregated, visitedPages, 
averagePageGenerationTime, devices, continents, countries" does not exist.

in

/home/www/piwik/plugins/Live/templates/_profileSummary.twig line 11
@sgiehl
Copy link
Member

sgiehl commented Jul 16, 2018

Did you maybe disable the Events plugin?

@dw
Copy link
Author

dw commented Jul 16, 2018

Oh man, that was easy! Yes, somehow the plug-in was disabled. This is a very old install. Any idea why it was only broken for certain visitors?

@dw dw closed this as completed Jul 16, 2018
@dw
Copy link
Author

dw commented Jul 16, 2018

Regardless, thanks for the amazingly quick response!

@sgiehl
Copy link
Member

sgiehl commented Jul 16, 2018

Seems to happen only if the user had some actions != page view. Will check if there's something we can improve

@mattab mattab added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Aug 28, 2018
@mattab mattab added this to the 3.6.0 milestone Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

No branches or pull requests

3 participants