@r621549 opened this Issue on August 14th 2019

Unable to Install a plugin from marketplace after install ldap plugin

@r621549 commented on August 14th 2019

when clicking on install button , it is throwing this error

An error occurred
The plugin Login is not enabled. You can activate the plugin on Settings > Plugins page in Matomo.

@tsteur commented on August 14th 2019 Member

Could you enable the plugin?

@gramakri commented on January 30th 2020

@mattab @tsteur I hit this issue today. Here's more information:

  1. Login as super user
  2. Enable matomo LDAP plugin - https://plugins.matomo.org/LoginLdap
  3. Clear the session objects on server and relogin as super user.
  4. Go to marketplace and try to install a plugin . It fails with The plugin Login is not enabled. You can activate the plugin on Settings > Plugins page in Matomo.

From what I can make out:

  1. When LDAP plugin is enabled, the Login plugin is disabled. The super user can still login
  2. When you install a plugin now from the marketplace, the installer redirects to a page where it asks for the password for confirmation. This is handled by the Login module (per the url bar which says &module=Login iirc) which is now disabled and thus the error message.

To hit the problem, it is important that you had not entered the password previously! I guess this is because it's remembered in the session somewhere. This is why step 3 above is important.

Workaround: If using the LDAP module, the super user has to disable it first and then install modules and then re-activate the LDAP module.

Can this bug be re-opened? Maybe a doc fix or a code fix.

Powered by GitHub Issue Mirror