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

Piwik_API_Request in a tracker plugin gives fatal error #737

Closed
anonymous-matomo-user opened this issue May 18, 2009 · 2 comments
Closed
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.

Comments

@anonymous-matomo-user
Copy link

I hooked a function into Tracker.Visit.isExcluded. When I try to use Piwik_API_Request to get a value from my api function I get that fatal error. Tracker debug is enabled.

Fatal error: Class 'Piwik_Api_Proxy' not found in piwik/core/API/Request.php on line 113

I don't have to use the api call, but it would be cleaner (although less performant?), so I set the prio to normal.

Please also tell me if I should use the api call instead of duplicating a few lines of code. I'm not sure because the tracker probably is performance critical.

@robocoder
Copy link
Contributor

Please use the piwik-hackers mailing list for dev questions.

Not having seen your code, it should be possible to use Piwik_API_Request from within a plugin.

@robocoder
Copy link
Contributor

BTW if you want the data in native PHP form, use serialize=0 in your parameter list.

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

3 participants