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

Goals plugin on dashbaord Fatal error: Class 'Piwik_DataTable_Filter_AddColumnsProcessedMetrics' not found in /home/piwik/public_html/core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php on line 18 #2544

Closed
anonymous-matomo-user opened this issue Jul 6, 2011 · 2 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Critical Indicates the severity of an issue is very critical and the issue has a very high priority. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.

Comments

@anonymous-matomo-user
Copy link

See reportings in http://forum.piwik.org/read.php?2,78979

Goals plugin on dashbaord Fatal error: Class 'Piwik_DataTable_Filter_AddColumnsProcessedMetrics' not found in /home/piwik/public_html/core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php on line 18

The class 'Piwik_DataTable_Filter_AddColumnsProcessedMetrics' that 'Piwik_DataTable_Filter_AddColumnsProcessedMetricsGoal' is trying to extend doesnt appear to be loaded.

By adding class 'Piwik_DataTable_Filter_AddColumnsProcessedMetrics' to '/core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php' allows the class 'Piwik_DataTable_Filter_AddColumnsProcessedMetricsGoal' to extend and then the Goals plugin works.

Adding the following code before trying to extend the class fixes the issue as a temporary solution:

if (!class_exists('Piwik_DataTable_Filter_AddColumnsProcessedMetrics', false))
{
include(PIWIK_INCLUDE_PATH .'/core/DataTable/Filter/AddColumnsProcessedMetrics.php');
}

Patch attached

I think some sort of check for dependent classes should be introduced and should fail during automated tests.

PHP 5.3
Keywords: class extends epic fail

@anonymous-matomo-user
Copy link
Author

Attachment:
AddColumnsProcessedMetricsGoal.php.patch

@anonymous-matomo-user
Copy link
Author

This is in version 1.5.1 of Piwik (updated 3 days ago)

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. Critical Indicates the severity of an issue is very critical and the issue has a very high priority. 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