nextcloud/unsplash

NC29 - Login page broken (Internal Error)

Closed this issue ยท 1 comments

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!

  • This is not a feature request
  • This is not an image-provider request
  • I have searched the issuetracker if the issue is not already reported.

Describe the bug:

When I updated my system (ubuntu server 22lts in a Hyper-V VM 4cpus 16G ram) today from nc29.0.1 to nc29.0.6, I was met with an error when trying to log in. It seems that the app is trying to call an undefined method on the login page.

To Reproduce:
Steps to reproduce the behavior:

  1. Go to 'the nextcloud login page'
  2. See error 'Internal Server Error'
  3. Check nextcloud logs with tail -f '/path/to/nc.log'
  4. See 'Call to undefined method OCP\AppFramework\Http\Events\BeforeLoginTemplateRenderedEvent::isLoggedIn()'

Expected behavior:

The login page should display as usual with an unsplash background.

Screenshots:

Screenshot_2024-09-05_21-27-35

Server:

  • Nextcloud version: 29.0.6
  • Splash-App version: 3.0.0

Additional Information:
Nextcloud logs:

{"reqId":"rTJiRk9nxvDtQ3nYgfWD","level":3,"time":"2024-09-06T01:01:40+00:00","remoteAddr":"*.*.*.*","user":"--","app":"index","method":"GET","url":"/index.php/login","message":"Call to undefined method OCP\\AppFramework\\Http\\Events\\BeforeLoginTemplateRenderedEvent::isLoggedIn()","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0","version":"29.0.6.1","exception":{"Exception":"Error","Message":"Call to undefined method OCP\\AppFramework\\Http\\Events\\BeforeLoginTemplateRenderedEvent::isLoggedIn()","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php","line":86,"function":"handle","class":"OCA\\Unsplash\\EventListener\\BeforeTemplateRenderedEventListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":230,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":59,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":86,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":98,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Middleware/AdditionalScriptsMiddleware.php","line":50,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php","line":142,"function":"afterController","class":"OC\\AppFramework\\Middleware\\AdditionalScriptsMiddleware","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":175,"function":"afterController","class":"OC\\AppFramework\\Middleware\\MiddlewareDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1058,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/unsplash/lib/EventListener/BeforeTemplateRenderedEventListener.php","Line":82,"message":"Call to undefined method OCP\\AppFramework\\Http\\Events\\BeforeLoginTemplateRenderedEvent::isLoggedIn()","exception":{},"CustomMessage":"Call to undefined method OCP\\AppFramework\\Http\\Events\\BeforeLoginTemplateRenderedEvent::isLoggedIn()"}}

Duplicate #139