Open jnweiger opened 2 years ago
@phil-davis the dependancy as added by @prsnbrg gives the appropriate message with occ app:enable, but has no effect when enabling the app through the web UI. It just gets enabled and runs into this issue again.
As far as I can see: $dependencyAnalyzer->analyze() returns empty. Even though lib imagick is present in the dependencies. Does this analyze() use a weaker check than occ app:install?
@jnweiger when I enable the app from the webUI admin settings it does a call to https://github.com/owncloud/core/blob/master/settings/ajax/enableapp.php
That code calls OC_App::enable
in the same way that the occ command calls OC_App::enable
- and both should call checkAppDependencies
with the same parameters. So I don't immediately see how there can be a difference.
On my local system I get:
$ php occ a:e twofactor_totp
In app.php line 1129:
App "2-Factor Authentication" cannot be installed because the following dependencies are not fulfilled: The library imagick is not available.
app:enable [-g|--groups GROUPS] [--] <app-id>
And:
So the app cannot be enabled via either method.
I have same problem
how do I resolve?
I updated owncloud to 10.11 but doesent work
@ilgio did you try the mentioned Manual workaround on Ubuntu:
apt install php-imagick; service apache2 restart
Seen in oC 10.12.1. I installed the app via market app in the WebUI - no dependency warning. Why is the fix of this issue not in the release of the latest release?
This is unrelated to 10.12.1 - twofactor_totp is not in the minimal and not in the complete bundle.
Seen with twofactor_totp 0.7.4 and core 10.9.1 on Ubuntu 20.04 where php-imagick is not installed.
admin navigates to his personal settings -> security and clicks the TOTP checkbox![image](https://user-images.githubusercontent.com/1108546/154510098-c6d34c55-11c8-4e92-a7f3-ba8703615962.png)
Expected behaviour:
Manual workaround on Ubuntu:
apt install php-imagick; service apache2 restart