nextcloud / unsplash

πŸ“ΈπŸ”€β˜οΈ Random Nextcloud log in background from Unsplash
https://apps.nextcloud.com/apps/unsplash
GNU Affero General Public License v3.0
92 stars 23 forks source link

Undefined array key "Unsplash" at nextcloud/apps/unsplash/lib/ProviderHandler/ProviderDefinitions.php #147

Open gk26 opened 2 weeks ago

gk26 commented 2 weeks ago

use GitHub reactions πŸ‘ to show that you are affected by the same issue. Please don't comment if you have no relevant information to add!

Describe the bug:

[PHP] Fehler: Undefined array key "Unsplash" at /var/www/nextcloud/apps/unsplash/lib/ProviderHandler/ProviderDefinitions.php#95 GET /index.php/apps/files/preview-service-worker.js von 192.168.2.31 von xxx um 13.09.2024, 08:18:30

To Reproduce: Error in nextcloud.log. If Splash app is disabled there is no error. If enabled, every Request causes an error

Server:

newhinton commented 1 week ago

Is this "just" an error that shows up in the logfile? Or does this cause nextcloud to lock up entirely?

arsounet commented 1 week ago

I've got this issue using Custom Menu app, but try to disable and have same issue with default menu.

{
  "reqId": "******",
  "level": 3,
  "time": "2024-09-19T10:40:00+02:00",
  "remoteAddr": "************",
  "user": "************",
  "app": "PHP",
  "method": "GET",
  "url": "/index.php/settings/admin/logging",
  "message": "Undefined array key \"Unsplash\" at /mypath/nextcloud/apps/unsplash/lib/ProviderHandler/ProviderDefinitions.php#95",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0",
  "version": "29.0.7.1",
  "data": { "app": "PHP" },
  "id": "66ebe360c6368"
}
gk26 commented 2 days ago

With nextcloud Version [Nextcloud Hub 9] (30.0.0) ans Splash Version 3.0.1 for me it's "just" an error in the logfile.

newhinton commented 2 days ago

The original "unsplash" integration was removed with 3.0.1. So its expected that it shows up as an error in the log, but that can easily be fixed by changing the provider via the ui. That resets the internal setting, and the provider will be stored properly. I'll check this with 3.0.0 on the weekend.

gk26 commented 2 days ago

Changeing the provider to "WallhavenCC" fixed it for me.