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

PiwikDebugger: a plugin to debug a Piwik instance without FTP access etc. #5982

Closed
tsteur opened this issue Aug 12, 2014 · 5 comments
Closed
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@tsteur
Copy link
Member

tsteur commented Aug 12, 2014

We often have the case that we need to debug a problem on a users instance which currently requires FTP access which is not good and many users cannot even give us FTP/SSH/TeamViewer access...

Ideally we would ask a user to give us SuperUser permissions to install a debug plugin. Alternatively we would ask a user to install this plugin but I think it should be only enabled for super users.

  • The plugin would let you edit all files, for instance using https://icecoder.net/ or http://codiad.com/
    Maybe not MVP but the plugin should have a restore possibility to make sure all the edited files are the same as before debugging.
  • We would need the possibility to execute MySQL queries from there since we often cannot access the database directly. Maybe there is even a lightweight library that lets us easily browse and search some tables
  • We would need the possibility to view logs and maybe more information like $_GET/$_POST (sometimes some fields get lost on the way to PHP), used memory, executed queries. I think http://phpdebugbar.com/ could be a good fit
  • Checkboxes to enable/disable tracker and archiver debug
  • What else?

After a debug session is over we always have to uninstall the plugin again as it would be a security risk of course

@tsteur tsteur added this to the Short term milestone Aug 12, 2014
@diosmosis
Copy link
Member

I think this plugin should allow execution of console commands as well (ie, ./console ...).

@diosmosis
Copy link
Member

A console commands that should be in the plugin:

  • A command to list plugins that are registered to given hook. They should be given in order of execution to make debuging easier. There could be parameter to check only tracker plugins.

@diosmosis
Copy link
Member

New plugin will be located here: https://github.com/piwik/plugin-PiwikDebugger

@tsteur tsteur modified the milestones: Short term, Piwik 2.6.0 Aug 20, 2014
@tsteur
Copy link
Member Author

tsteur commented Aug 20, 2014

Closing this issue since we are using the issues at the created repository

@tsteur tsteur closed this as completed Aug 20, 2014
@mattab
Copy link
Member

mattab commented Sep 5, 2014

New plugin is now officially released. Later we may publish it on the Marketplace as well. https://github.com/piwik/plugin-PiwikDebugger

@mattab mattab changed the title Create a plugin to debug a Piwik instance without FTP access etc. PiwikDebugger: a plugin to debug a Piwik instance without FTP access etc. Sep 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

3 participants