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

Security Tab in Settings Fatal error: Class 'Piwik_Http' not found in /home/nite/public_html/piw/plugins/SecurityInfo/PhpSecInfo/Test/Application/php.php on line 34 #2546

Closed
anonymous-matomo-user opened this issue Jul 6, 2011 · 2 comments
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. 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

When clicking on Security Tab in Settings Fatal error: Class 'Piwik_Http' not found in /home/piwik/public_html/plugins/SecurityInfo/PhpSecInfo/Test/Application/php.php on line 34

The class 'Piwik_Http' that class 'PhpSecInfo_Test_Application_Php' is trying to use doesnt appear to be loaded.

By adding class 'Piwik_Http' to '/plugins/SecurityInfo/PhpSecInfo/Test/Application/php.php' allows the method 'PhpSecInfo_Test_Application_Php' to use the class and then the Security Page page works.

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

if (!class_exists('Piwik_Http', false))
{
include(PIWIK_INCLUDE_PATH .'/core/Http.php');
}

Patch attached

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

PHP 5.3 Piwik 1.5.1

Keywords: class extends doesnt exist

@anonymous-matomo-user
Copy link
Author

Attachment:
php.php.patch

@mattab
Copy link
Member

mattab commented Jul 7, 2011

please create only one bug for all these, also they are invalid, see Anthon note: http://forum.piwik.org/read.php?2,78979,page=1#msg-79034

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. 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