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

Unable to Install a plugin from market place when LoginLdap is active and Login is inactive #14770

Closed
r621549 opened this issue Aug 14, 2019 · 10 comments
Labels
answered For when a question was asked and we referred to forum or answered it. Bug For errors / faults / flaws / inconsistencies etc.

Comments

@r621549
Copy link

r621549 commented Aug 14, 2019

Unable to Install a plugin from marketplace after install ldap plugin

@r621549
Copy link
Author

r621549 commented Aug 14, 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
Copy link
Member

tsteur commented Aug 14, 2019

Could you enable the plugin?

@mattab mattab closed this as completed Jan 21, 2020
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Jan 21, 2020
@gramakri
Copy link

gramakri commented Jan 30, 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.

@mattab mattab reopened this Jan 30, 2020
@mattab mattab added Bug For errors / faults / flaws / inconsistencies etc. and removed answered For when a question was asked and we referred to forum or answered it. labels Jan 30, 2020
@cronventis
Copy link

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

@cronventis
Copy link

@mattab : This issue is still open, is there any intention to fix this?

@tsteur
Copy link
Member

tsteur commented Jul 27, 2021

@cronventis are you using the latest version of Matomo and also the latest version of the other plugins?

@cronventis
Copy link

Yes, and yes.

Matomo 4.3.1
Ldap: 4.3.0

@tsteur
Copy link
Member

tsteur commented Jul 29, 2021

AFAIK this should have been fixed by #15945 and I just tried to reproduce this but couldn't. Is this still the same error that is happening? What's the URL when this error happens?

@cronventis
Copy link

Hmmmm... Just now I tried it again to get the url and error message....... But its working now? wt*?

@sgiehl
Copy link
Member

sgiehl commented Jul 29, 2021

@cronventis Thanks for the confirmation that it's working now. I'm closing this one then. If you experience this or another issue again, feel free to create a new issue here.

@sgiehl sgiehl closed this as completed Jul 29, 2021
@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it. Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

6 participants