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

Matomo Tag Manager can be uninstalled #13835

Closed
Findus23 opened this issue Dec 12, 2018 · 0 comments · Fixed by #13838
Closed

Matomo Tag Manager can be uninstalled #13835

Findus23 opened this issue Dec 12, 2018 · 0 comments · Fixed by #13838
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@Findus23
Copy link
Member

MTM is a core plugin and shouldn't be uninstallable (only can be disabled)

Nevertheless Matomo shows a working uninstall button
grafik
See https://forum.matomo.org/t/fehler-nach-desinstallation-von-tag-manager/30904/8 for more details.

I think this is caused by

private function isPluginUninstallable($name)
{
return !$this->isPluginBundledWithCore($name);
}

public function isPluginBundledWithCore($name)
{
return $this->isPluginEnabledByDefault($name)
|| in_array($name, $this->pluginList->getCorePluginsDisabledByDefault())
|| $name == self::DEFAULT_THEME;
}

But TagManager is not enabled by default, but also doesn't appear in
https://github.com/matomo-org/matomo/blob/e571b67d8f6b2764a2bdbe3d017f0f9ddf147508/core/Application/Kernel/PluginList.php#L34-#L45

So I guess it should either be added to the list (which may have side effects) or maybe a special case for TagManager should be added to isPluginBundledWithCore

@Findus23 Findus23 added the Bug For errors / faults / flaws / inconsistencies etc. label Dec 12, 2018
@Findus23 Findus23 added this to the 3.8.0 milestone Dec 12, 2018
@tsteur tsteur self-assigned this Dec 12, 2018
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants