The Basics
- Nextcloud Server version (e.g., 29.x.x):
34.0.2
- Operating system and version (e.g., Ubuntu 24.04):
FreeBSD 15.1
- Web server and version (e.g, Apache 2.4.25):
nginx 1.30.4,3
- Reverse proxy and version _(e.g. nginx 1.27.2)
caddy 2.0.2_2 on OPNsense
- PHP version (e.g, 8.3):
8.5
- Is this the first time you’ve seen this error? (Yes / No):
yes
- When did this problem seem to first start?
after upgrading from 33->34
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
Freebsd pkg
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
no
Summary of the issue you are facing:
I had v32 installed, did a manual install of the latest v33, which went fine, the UI was loading and everything looked ok. Then I did the pkg install to v34.0.2, ran occ upgrade which completed without issue but when I try to load the UI, I get “Internal Server Error” and checking the log has this that seems relevant "message":"Class "OCA\Settings\Controller\AppSettingsController" does not exist", but I have no clue what to do with that information and can’t seem to find anything about it.
Log entries
Nextcloud
Full error from the log file when refreshing the page:
{"reqId":"wwZbWzhmPlq23vWU67NI","level":3,"time":"2026-07-26T18:24:45+00:00","remoteAddr":"192.168.1.1","user":"SamKook","app":"index","method":"GET","url":"/index.php/apps/files/preview-service-worker.js","scriptName":"/index.php","message":"Class \"OCA\\Settings\\Controller\\AppSettingsController\" does not exist","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:153.0) Gecko/20100101 Firefox/153.0","version":"34.0.2.1","exception":{"Exception":"ReflectionException","Message":"Class \"OCA\\Settings\\Controller\\AppSettingsController\" does not exist","Code":-1,"Trace":[{"file":"/usr/local/www/nextcloud/lib/private/Route/Router.php","line":499,"function":"__construct","class":"ReflectionClass","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/Route/Router.php","line":455,"function":"getAttributeRoutes","class":"OC\\Route\\Router","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/Route/Router.php","line":129,"function":"loadAttributeRoutes","class":"OC\\Route\\Router","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/Route/CachingRouter.php","line":90,"function":"loadRoutes","class":"OC\\Route\\Router","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/Route/Router.php","line":316,"function":"findMatchingRoute","class":"OC\\Route\\CachingRouter","type":"->"},{"file":"/usr/local/www/nextcloud/lib/base.php","line":1172,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/usr/local/www/nextcloud/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/usr/local/www/nextcloud/lib/private/Route/Router.php","Line":499,"message":"Class \"OCA\\Settings\\Controller\\AppSettingsController\" does not exist","exception":"{\"class\":\"ReflectionException\",\"message\":\"Class \\\"OCA\\Settings\\Controller\\AppSettingsController\\\" does not exist\",\"code\":-1,\"file\":\"/usr/local/www/nextcloud/lib/private/Route/Router.php:499\",\"trace\":\"#0 /usr/local/www/nextcloud/lib/private/Route/Router.php(499): ReflectionClass->__construct()\\n#1 /usr/local/www/nextcloud/lib/private/Route/Router.php(455): OC\\Route\\Router->getAttributeRoutes()\\n#2 /usr/local/www/nextcloud/lib/private/Route/Router.php(129): OC\\Route\\Router->loadAttributeRoutes()\\n#3 /usr/local/www/nextcloud/lib/private/Route/CachingRouter.php(90): OC\\Route\\Router->loadRoutes()\\n#4 /usr/local/www/nextcloud/lib/private/Route/Router.php(316): OC\\Route\\CachingRouter->findMatchingRoute()\\n#5 /usr/local/www/nextcloud/lib/base.php(1172): OC\\Route\\Router->match()\\n#6 /usr/local/www/nextcloud/index.php(25): OC::handleRequest()\\n#7 {main}\"}","CustomMessage":"Class \"OCA\\Settings\\Controller\\AppSettingsController\" does not exist"}}
