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

Bug in addDataTable function in core/DataTable.php #3382

Closed
anonymous-matomo-user opened this issue Sep 18, 2012 · 1 comment
Closed

Bug in addDataTable function in core/DataTable.php #3382

anonymous-matomo-user opened this issue Sep 18, 2012 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@anonymous-matomo-user
Copy link

We are going to develop another Action Plugin that will count incrementally archived data. We will truncate piwik_log_link_visit_action table after archiving and accepted incorrect unique visitor number (we will develop another method to count unique vistor).

But there is some case that
$rowFound->sumSubtable(Piwik_DataTable_Manager::getInstance()->getTable($idSubTable)); cause error because we can't find the Table of idSubTable because it's loaded yet.

To overcome this problem I have add a try catch statement surrounding.

$rowFound->sumSubtable(Piwik_DataTable_Manager::getInstance()->getTable($idSubTable));

But the better way could be change the sumSubtable function and it's parameter.

@mattab
Copy link
Member

mattab commented Sep 19, 2012

Can you please submit a patch of what would work for you? http://piwik.org/participate/development-process/#toc-how-to-submit-a-patch

@anonymous-matomo-user anonymous-matomo-user added this to the 1.9.2 - Piwik 1.9.2 milestone Jul 8, 2014
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. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

2 participants