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

General_ExceptionPrivilegeAccessWebsite thrown during Request::processRequest #11535

Closed
tassoman opened this issue Mar 27, 2017 · 1 comment
Closed
Labels
worksforme The issue cannot be reproduced and things work as intended.

Comments

@tassoman
Copy link
Contributor

Ciao,
I'm writing a plugin that should query VisitsSummary plugin and writedown results, this plugin should be run after and before 3.x migration to assure migration was flawless.

I'm testing the plugin class but I'm getting a General_ExceptionPrivilegeAccessWebsite exception thrown while it does the Request::processRequest so I enveloped it inside the callable Piwik::doAsSuperuser (either inside Access::doAsSuperuser) but with no results, looks like I have no privileges querying idSite.

Any support is welcome, thank you

@tassoman
Copy link
Contributor Author

tassoman commented Apr 7, 2017

doAsSuperuser is no good, I solved with Access::getInstance()->setSuperUserAccess();
Now the problem is another, processRequest can't run the API request because «an unexpected idsite: 1»

@tassoman tassoman closed this as completed Apr 7, 2017
@tsteur tsteur added the worksforme The issue cannot be reproduced and things work as intended. label Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

2 participants