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

Setting 'archiving_ranking_query_row_limit' to 0 (no limit) should disable RankingQuery #3482

Closed
mattab opened this issue Oct 26, 2012 · 2 comments
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Oct 26, 2012

Setting
'archiving_ranking_query_row_limit' to 0 (no limit) causes archiving
process not to process Actions and display an error.

The following errors shows up during archiving:

 Notice:</strong> <i>Undefined index: type</i> in
 <b>/home/ehealth/public_html/piwik/plugins/Actions/ArchivingHelper.php</b>
 on line <b>49</b>
 <br /><br />Backtrace --&gt;<div style="font-family:Courier;font-
 size:10pt"><br />
 #0  Piwik_ErrorHandler(...) called at
 [/home/ehealth/public_html/piwik/plugins/Actions/ArchivingHelper.php:49]<br
 />
 #1  Piwik_Actions_ArchivingHelper::updateActionsTableWithRowQuery(...)
 called at
 [/home/ehealth/public_html/piwik/plugins/Actions/Archiving.php:478]<br />
 #2  Piwik_Actions_Archiving-&gt;archiveDayQueryProcess(...) called at
 [/home/ehealth/public_html/piwik/plugins/Actions/Archiving.php:282]<br />
 #3  Piwik_Actions_Archiving-&gt;archiveDayActionsTime(...) called at
 [/home/ehealth/public_html/piwik/plugins/Actions/Archiving.php:100]<br />
 #4  Piwik_Actions_Archiving-&gt;archiveDay(...) called at
 [/home/ehealth/public_html/piwik/plugins/Actions/Actions.php:592
 ...

var_dump'ing $row at plugins/Actions/ArchivingHelper.php:36, shows:

 array(6) {
   ["idaction"]=>
   string(7) "1792657"
   [17]=>
   string(1) "1"
   [19]=>
   string(1) "1"
   [20]=>
   string(1) "3"
   [21]=>
   string(3) "279"
   [22]=>
   string(1) "0"
 }

so we have a problem with translation of keys in the row.

@mattab
Copy link
Member Author

mattab commented Apr 13, 2013

Proposal

  • when archiving_ranking_query_row_limit == 0, throw an exception (ask user to increase value in config file)
  • in the code, remove the code that tests for RQ and always use it in Actions+Transitions plugins (where it is currently used)
    • the feature "disable ranking query" is actually not a feature of Piwik, so let's remove it.

To record more or all data, set this number to very high limit ie. 100000 or 1 million.

@diosmosis
Copy link
Member

In 4b4277b: Fixes #3482, apply quick fix so Piwik works when ranking query is disabled and added test for disabled ranking query. Added FIXME comment to make sure underlying issue is eventually dealt with.

@mattab mattab added this to the 1.12 - The Great 1.x Backlog milestone Jul 8, 2014
@mattab mattab self-assigned this 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. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

2 participants