Closed lyn1337 closed 3 years ago
I guess that did not exist in NC 19. If you edit this line and replace "get" with "query", it should work.
@marius-wieschollek That suppressed the err msg but the app doesn't seem to work.
must confirm this issue for NC 19 (and 18 and even 17)! i had to deactivate the app manually to get NC working again.
You can try the PR i just opened. It should fix the issue.
Hi there, just want to add that, if you update via the web button, it would give you a Internal Server Error
Got to delete the app from the directory manually as said above.
Log
{"reqId":"YAYjNA-L1wqcoUp29Mb6ogAAAAM","level":3,"time":"2021-01-19T00:09:24+00:00","remoteAddr":"10.8.64.99","user":"remssmoc","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications?format=json","message":{"Exception":"Err$
{"reqId":"YAYjNGZ12Kb5FQiDRk8BlAAAAAI","level":3,"time":"2021-01-19T00:09:24+00:00","remoteAddr":"10.8.64.99","user":"C9C2E511-2FC4-4E43-A176-2472F8E1E7BA","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications?format=json"${"reqId":"YAYjNdCe5BtW9HIVFPiT3gAAAAE","level":3,"time":"2021-01-19T00:09:25+00:00","remoteAddr":"10.8.65.108","user":"74781310-35C5-48BF-B9EB-0741AF471E15","app":"no app in context","method":"GET","url":"/ocs/v2.php/core/navigation/apps?absolute=true&format=json","me${"reqId":"YAYjNbDOEtLekDTdSKRU-gAAAAQ","level":3,"time":"2021-01-19T00:09:25+00:00","remoteAddr":"190.160.40.211","user":"CBB4A189-C16C-4F3C-AFBB-2C1FC01578A4","app":"no app in context","method":"GET","url":"/ocs/v2.php/core/navigation/apps?absolute=true&format=json",${"reqId":"YAYjNzvUwVgc8X9T20jofwAAAAU","level":3,"time":"2021-01-19T00:09:27+00:00","remoteAddr":"181.43.78.36","user":"felipe","app":"index","method":"GET","url":"/","message":{"Exception":"Error","Message":"Call to undefined method OC\\AppFramework\\DependencyInject${"reqId":"YAYjNx19Yw-OuEzgFqktkAAAAAA","level":3,"time":"2021-01-19T00:09:28+00:00","remoteAddr":"181.43.78.36","user":"felipe","app":"index","method":"GET","url":"/index.php/js/core/merged-template-prepend.js?v=5f566a53","message":{"Exception":"Error","Message":"Call${"reqId":"YAYjONCe5BtW9HIVFPiT3wAAAAE","level":3,"time":"2021-01-19T00:09:28+00:00","remoteAddr":"181.43.78.36","user":"felipe","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":{"Exception":"Error","Message${"reqId":"YAYjOHpqCa3RWsa4DRK6TgAAAAg","level":3,"time":"2021-01-19T00:09:28+00:00","remoteAddr":"181.43.78.36","user":"felipe","app":"index","method":"GET","url":"/undefined/img/notifications.svg","message":{"Exception":"Exception","Message":"The requested uri(/undef$
Exact same issue, updated from web interface Got the following log
`{"reqId":"Ig1xTf41SeQc3pgecN3Y","level":3,"time":"2021-01-19T09:12:25+00:00","remoteAddr":"192.168.0.20","user":"nicolas","app":"index","method":"GET","url":"/","message":{"Exception":"Error","Message":"Call to undefined method OC\AppFramework\DependencyInjection\DIContainer::get()","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/unsplash/lib/AppInfo/Application.php","line":30,"function":"registerSystemEvents","class":"OCA\Unsplash\AppInfo\Application","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/unsplash/appinfo/routes.php","line":9,"function":"__construct","class":"OCA\Unsplash\AppInfo\Application","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":353,"args":["/var/www/nextcloud/apps/unsplash/appinfo/routes.php"],"function":"include_once"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":152,"function":"requireRouteFile","class":"OC\Route\Router","type":"->","args":["/var/www/nextcloud/apps/unsplash/appinfo/routes.php","unsplash"]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":270,"function":"loadRoutes","class":"OC\Route\Router","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/base.php","line":1008,"function":"match","class":"OC\Route\Router","type":"->","args":[""]},{"file":"/var/www/nextcloud/index.php","line":38,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/apps/unsplash/lib/AppInfo/Application.php","Line":45,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 OPR/73.0.3856.344","version":"18.0.4.2"}
Had to disable using terminal
sudo -u www-data php /var/www/nextcloud/occ app:disable unsplash
Running Nextcloud 17.0.2.1 PHP Version : 7.3.11
PR #81 does appear to fix this issue for me, though the 404 image is still displayed (issue #72).
Also got an internal server error after updating to unsplash 1.2. on NC 19.0.3. My Nextcloud Provider Hetzner investigated and had to deactivate unsplash for me, because I could not access my NC admin panel, although I was logged in.
I just released the hotfix, sorry for the inconveniences! This one slipped. Please report back if you have further issues!
Just tested v. 1.2.1 from the releases on my NC 19 installation. Does seem to work now.
@rainerzufall Folks without access to the command line tool or a similar level can actually break their entire NC installation because of incompatibilities, just by updating or installing an app. π¬
@lyn1337 you are right. π I usually always wait while after new releases of apps to minimise this risk. I obviously didn't do it this time. π I will definitely wait for some more confirmations that it works before I activate the app again.
Thanks to marius-wieschollek and newhinton for fixing it so quickly!
@feligato, @rainerzufall & @lyn1337: you can actually deactivate every app manually by simply setting appid
->enabled
in the table NC_appconfig
from yes
to no
, no mater if done by commandline or GUI (which also most shared hoster provide, even if you don't have ssh).
Just tested v. 1.2.1 from the releases on my NC 19 installation. Does seem to work now.
i also tested version 1.2.1 from the store with NC 19 (and 18 & 17)... and all 3 still work. :wink:
@DJCrashdummy While that's a method I'm not convinced it's making it any easier or more accessible to some users.
Looks like I can close this issue now, thanks everyone involved!
Just updated to version unsplash 1.2.0 using occ and NC 19.0.7.1. This leads to the following error:
occ log:watch