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 "Database Usage" usage ... #5253
Comments
Attachment: |
This was a hard one so far... Found a typo which might fix your issue but couldn't exactly reproduce it. Now waiting to see if this change breaks anything. Can you maybe test the next beta release? |
@Hornbeam can you please test with Piwik 2.4.0-beta that was just released? http://builds.piwik.org/?C=N;O=D |
This is a good fix (with fixing the typo and adjusting the arrays) but does not fix this bug. We are seeing the same thing on Referrers -> Websites & Social for one user (the social guy of course). |
The error is coming from the template processing system. The file in question here is plugins/CoreVisualizations/templates/_dataTableViz_tagCloud.twig. On line 1 of this file, we have: So the error is occurring because we are trying to call element 1 from the array of 0 elements. Why it is zero is still the question. |
The real issue here was that the user modified their configuration. Just to be clear, I have installed the patches above in the system. However, this does not solve the problem. To solve the problem, I also did the following: In piwik_option table, there are entries for the user like:
I removed these since "rows_to_display" were empty. The system was also generating a twig file in /tmp/templates_c/XX/YY/{token_auth}.php which persisted the error. The token_auth is from the piwik_user table for the specific user. Once I applied the patch, removed the user option, and then removed the tmp file, the system is back to normal. |
Good to know it worked! |
I checked every single update since my post. No single patch solved this issue including "piwik 2.4.0" . So I investigated and found that following mysql statement erases wrong options from database: delete USER in sql statement is user with display problems. Afterwards everything reseted to normal state. I hope that this helps someone ... |
@Hornbeam if you can reproduce a bug in 2.4.0, please create a new ticket as we will definitely want to fix it! thanks |
I'm reopening this one as the reported bug was actually never fixed. I mentioned in my comment that I don't know whether it fixes the issue or not and that we wait for this feedback. Thx for letting us know hornbeam. I appreciate your research. |
Dear All, I just tried to reproduce error. I installed 2.4.0 and deleted problematic recordd with upper mentioned sql statement. Afterwards I can not reproduce same error any more. Basically error occurred (at least in my case) at random clicking and changing layout of upper left "Database usage" report. I tried about 3 minutes with all possible combinations in version 2.4.0 and now is stable. I may conclude, that this happens (at least what I recall from my memory more is is in "trac"):
What confuses me is fact, that some other users have same problem and I can not explain why ... If you really want I can check backup repository for backup and restore that particular VM and dig contents of problematic sql records from DB. hornbeam |
Thanks @ hornbeam. I will close it again and we can reopen it again if you can reproduce. I reckon either the Treemap visualization or the - at that time displayed - metric picker caused it. The Treemap visualization can still cause a bit of trouble when switching between visualizations although it is better now. For instance in DB stats switching between Treemap and another visualization results in an empty chart but it is no longer persistent (which was before). Cheers |
"PIWIK 2.3.0" -> "Settings" -> "Database Usage" show this error:
Key "1" for array with keys "0" does not exist in "@CoreVisualizations/_dataTableViz_tagCloud.twig" at line 1
The text was updated successfully, but these errors were encountered: