nextcloud / unsplash

📸🔀☁️ Random Nextcloud log in background from Unsplash
https://apps.nextcloud.com/apps/unsplash
GNU Affero General Public License v3.0
94 stars 23 forks source link

Application is not setup via query() but directly at <<closure>> #86

Closed adripo closed 2 years ago

adripo commented 3 years ago

Hello,

After enabling debug on Nextcloud 21, I get this error in the logs.

[unsplash] Error: RuntimeException: App class OCA\Unsplash\AppInfo\Application is not setup via query() but directly at <<closure>>

0. /var/www/html/custom_apps/unsplash/lib/AppInfo/Application.php line 30
   OCP\AppFramework\App->__construct("unsplash", [])
1. /var/www/html/custom_apps/unsplash/appinfo/routes.php line 9
   OCA\Unsplash\AppInfo\Application->__construct()
2. /var/www/html/lib/private/Route/Router.php line 407
   include_once("/var/www/html/c ... p")
3. /var/www/html/lib/private/Route/Router.php line 152
   OC\Route\Router->requireRouteFile("/var/www/html/c ... p", "unsplash")
4. /var/www/html/lib/private/Route/Router.php line 261
   OC\Route\Router->loadRoutes()
5. /var/www/html/lib/private/Route/Router.php line 294
   OC\Route\Router->findMatchingRoute("/ocsapp/search/providers")
6. /var/www/html/ocs/v1.php line 63
   OC\Route\Router->match("/ocsapp/search/providers")
7. /var/www/html/ocs/v2.php line 24
   require_once("/var/www/html/ocs/v1.php")

GET /ocs/v2.php/search/providers?from=%2Fsettings%2Fadmin%2Flogging
from 192.168.80.2 by at 2021-04-22T22:37:35+00:00

As I read on this issue for calendar the solution should be something like this.

newhinton commented 3 years ago

Thanks for the report, i will check compatibility with nc21 at the weekend. (And restore compatibility where required)

newhinton commented 2 years ago

@adripo Is this still an issue?

adripo commented 2 years ago

No, the issue was solved. Thanks