Matomo: Unable to Install a plugin from market place when LoginLdap is active and Login is inactive

Created on 15 Aug 2019  路  4Comments  路  Source: matomo-org/matomo

Unable to Install a plugin from marketplace after install ldap plugin

Bug

Most helpful comment

I dont think to disable and enable LDAP every time you want to install something is a viable solution...

All 4 comments

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.

Could you enable the plugin?

@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.

I dont think to disable and enable LDAP every time you want to install something is a viable solution...

Was this page helpful?
0 / 5 - 0 ratings