hevelius / files_external_onedrive

:mega: :floppy_disk: External storage support for Microsoft OneDrive
GNU General Public License v2.0
72 stars 22 forks source link

Breaks WebUI with installation from App Store of NC 20 #50

Open laatzener opened 3 years ago

laatzener commented 3 years ago

Hello, First I would like to thank you for project. Problem I found seem to be an Interface change in NextCloud where other „files_external“ Apps have the same problem: So I tried to install the App from NextCloud 20 Appstore. But afterwards the whole web interface is broken, only an empty page will be displayed.

When trying to deactivating the app, following happen:

pi@raspberrypi:~ $ sudo -u www-data php /var/www/nextcloud/occ app:list PHP Fatal error: Interface 'OCA\Files_External\Lib\Config\IBackendProvider' not found in /var/www/nextcloud/apps/files_external_onedrive/lib/AppInfo/Application.php on line 38

pi@raspberrypi:~ $ sudo -u www-data php /var/www/nextcloud/occ app:disable files_external_onedrive PHP Fatal error: Interface 'OCA\Files_External\Lib\Config\IBackendProvider' not found in /var/www/nextcloud/apps/files_external_onedrive/lib/AppInfo/Application.php on line 38

Work around to fix the Web UI is to remove the folder of the app: /var/www/nextcloud/apps/files_external_onedrive

Does anyone have an idea how to fix?

Thank you Christian

cazee commented 3 years ago

Same here.

Donatzsky commented 3 years ago

Had the same problem. Turns out it's because I hadn't installed the External storage support app first.

As a first step, this requirement really needs to be added to the app description.

cazee commented 3 years ago

good to know. For me, External storage support was installed before but still had the problems

Donatzsky commented 3 years ago

good to know. For me, External storage support was installed before but still had the problems

Have you tried reinstalling it?

laatzener commented 3 years ago

Thank you, now I was able to activate it after I activated “external storage support” and reinstalled the App. Web UI was not broken and I was also able to activate OneDrive for the users of NextCloud.

But in the User Settings, when trying to login to Microsoft, after adding my User-ID the following error came from the Microsoft page:

“unauthorized_client: The client does not exist or is not enabled for consumers. If you are the application developer, configure a new application through the App Registrations in the Azure Portal at https://go.microsoft.com/fwlink/?linkid=2083908.”

Donatzsky commented 3 years ago

“unauthorized_client: The client does not exist or is not enabled for consumers. If you are the application developer, configure a new application through the App Registrations in the Azure Portal at https://go.microsoft.com/fwlink/?linkid=2083908.”

You need to use the Application (client) ID, which you'll find on the Overview page for your app. I was also banging my head against that same wall for a few days, before figuring out what I was doing wrong (I tried using the Client ID found under Client Secrets).