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

Add more information to system check and be able to copy/paste for debugging purposes #15931

Closed
tsteur opened this issue May 10, 2020 · 0 comments · Fixed by #16350
Closed

Add more information to system check and be able to copy/paste for debugging purposes #15931

tsteur opened this issue May 10, 2020 · 0 comments · Fixed by #16350
Assignees
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 May 10, 2020

This will help us better understand and debug issues

@Findus23 I think we maybe already have an issue for the copy/paste system check feature but couldn't find it right now.

Similar to Matomo for WP it would be great to have these features included when also developing the copy/paste feature:

  • List of customised settings in config.ini.php compared to original global config
  • List of enabled plugins and their versions

We also want to show more information such as

  • Browser User Agent
  • Browser language
  • Ideally when Archive was last started and finished
    image
  • More server information eg
    image
  • Mysql version
    image
  • Number of sites and users
  • What the matomo version was when it was installed

Ideally the copied system check would anonymise few things like

  • replace(SettingsPiwik::getMatomoUrl(), '$MATOMO_URL', $input)
  • replace(PIWIK_DOCUMENT_ROOT, '$MATOMO_DOC_ROOT', $input)
  • replace(PIWIK_USER_PATH, '$PIWIK_USER_PATH', $input)
  • token like things $value = preg_replace('/[[:xdigit:]]{31,80}/', 'TOKEN_REPLACED', $value);
  • salt and DB passwords etc from config
  • etc.

We can generally reuse a lot of logic for this from WP-Matomo see https://github.com/matomo-org/wp-matomo/blob/develop/classes/WpMatomo/Admin/SystemReport.php and https://github.com/matomo-org/wp-matomo/blob/1.0.6/matomo.php#L124-L156

@tsteur tsteur added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label May 10, 2020
@tsteur tsteur self-assigned this Aug 28, 2020
@mattab mattab added this to the 4.0.0 milestone Sep 10, 2020
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

Successfully merging a pull request may close this issue.

2 participants