Notes fail to load after upgrade to Nextcloud 32.0.0
Notes fail to load after upgrading Nextcloud server to v32.0.0 with error Error from Nextcloud server: Reading notes from filesystem has failed. (Error)
Logs show this error from notes: Undefined constant OCP\Share::SHARE_TYPE_USER
I can still see the Notes .md files in the configured folder.
Steps to reproduce
- Have a working instance of Nextcloud w/ Notes running on v31.0.0
- Upgrade to v32.0.0
Expected behaviour
Notes should load as usual, as nothing about the way they are stored changed.
Actual behaviour
Notes fail to load.
Server
Please complete the following information.
- Notes app version: 4.2.13
- Nextcloud version: 32.0.0
- OS: Docker (linuxserver/nextcloud)
- Web server: nginx/1.28.0
- PHP version: 8.4.13
- Database: Postgres 14
Nextcloud configuration:
Client
Please complete the following information.
- Browser (incl. version): Brave 1.79.126
- OS: MacOS 15
Log files
Add relevant parts of your nextcloud.log and/or your browser's JavaScript console here.
{"reqId":"***REMOVED SENSITIVE VALUE***","level":3,"time":"2025-10-19T09:15:15+00:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"***REMOVED SENSITIVE VALUE***","app":"notes","method":"GET","url":"/apps/notes/notes","message":"Controller failed with Error","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36","version":"32.0.0.13","exception":{"Exception":"Error","Message":"Undefined constant OCP\\Share::SHARE_TYPE_USER","Code":0,"Trace":[{"file":"/app/www/public/lib/private/legacy/OC_Hook.php","line":85,"function":"preUnShare","class":"OCA\\Maps\\Hooks\\FileHooks","type":"->"},{"file":"/app/www/public/lib/private/Share20/LegacyHooks.php","line":47,"function":"emit","class":"OC_Hook","type":"::"},{"file":"/app/www/public/lib/private/Share20/LegacyHooks.php","line":27,"function":"preUnshare","class":"OC\\Share20\\LegacyHooks","type":"->"},{"file":"/app/www/public/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":220,"function":"{closure:OC\\Share20\\LegacyHooks::__construct():26}","class":"OC\\Share20\\LegacyHooks","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/app/www/public/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":56,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/app/www/public/lib/private/EventDispatcher/EventDispatcher.php","line":67,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/app/www/public/lib/private/EventDispatcher/EventDispatcher.php","line":79,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/app/www/public/lib/private/Share20/Manager.php","line":2069,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/app/www/public/lib/private/Share20/Manager.php","line":1135,"function":"dispatchEvent","class":"OC\\Share20\\Manager","type":"->"},{"file":"/app/www/public/lib/private/Share20/Manager.php","line":1487,"function":"deleteShare","class":"OC\\Share20\\Manager","type":"->"},{"file":"/app/www/public/lib/private/Share20/Manager.php","line":1270,"function":"checkShare","class":"OC\\Share20\\Manager","type":"->"},{"file":"/config/www/nextcloud/apps/notes/lib/Service/NoteUtil.php","line":290,"function":"getSharesBy","class":"OC\\Share20\\Manager","type":"->"},{"file":"/config/www/nextcloud/apps/notes/lib/Service/Note.php","line":114,"function":"getShareTypes","class":"OCA\\Notes\\Service\\NoteUtil","type":"->"},{"file":"/config/www/nextcloud/apps/notes/lib/Controller/Helper.php","line":67,"function":"getData","class":"OCA\\Notes\\Service\\Note","type":"->"},{"file":"/config/www/nextcloud/apps/notes/lib/Controller/Helper.php","line":119,"function":"getNoteData","class":"OCA\\Notes\\Controller\\Helper","type":"->"},{"function":"{closure:OCA\\Notes\\Controller\\Helper::getNotesAndCategories():118}","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/config/www/nextcloud/apps/notes/lib/Controller/Helper.php","line":118,"function":"array_map"},{"file":"/config/www/nextcloud/apps/notes/lib/Controller/NotesController.php","line":77,"function":"getNotesAndCategories","class":"OCA\\Notes\\Controller\\Helper","type":"->"},{"file":"/config/www/nextcloud/apps/notes/lib/Service/Util.php","line":31,"function":"{closure:OCA\\Notes\\Controller\\NotesController::index():63}","class":"OCA\\Notes\\Controller\\NotesController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/config/www/nextcloud/apps/notes/lib/Controller/Helper.php","line":146,"function":"retryIfLocked","class":"OCA\\Notes\\Service\\Util","type":"::"},{"file":"/config/www/nextcloud/apps/notes/lib/Controller/NotesController.php","line":63,"function":"handleErrorResponse","class":"OCA\\Notes\\Controller\\Helper","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/Http/Dispatcher.php","line":204,"function":"index","class":"OCA\\Notes\\Controller\\NotesController","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/app/www/public/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/app/www/public/lib/base.php","line":1061,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/app/www/public/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/config/www/nextcloud/apps/maps/lib/Hooks/FileHooks.php","Line":154,"message":"Controller failed with Error","exception":[],"CustomMessage":"Controller failed with Error"},"id":"68f4ad381ac34"}
Same here. 4.2.13 with NC 32.0.1 Can't access the setting of the app as well to check with folder it wants to load. Only option is a redirect to the dashboard
OS Bazzite Browser Firefox 144.0
I discovered the cause in my case - a notes file with sharing enabled. Once I moved it away from the Notes folder, the app loaded just fine.
I did check and none of my notes are shared. I don't know though if any other user has (for whatever reason) shared notes
Just ran into same issue after upgrade from 31.0.10 to 32.0.1 on a Ubuntu server with manual NC installation, not docker.
Removing the notes app and reinstalling with gui or through " occ app: install notes" shows success, but notes is still not working.
Client OS: Wintendo 11 Browser: Brave
I had the same issue and can confirm once I unshared the files it started to work.
I have the same issue, Downloaded and installed notes on my NC32 installation and notes would not load. I have disabled the text app and this has solved the issue.
I have the same issue, Downloaded and installed notes on my NC32 installation and notes would not load. I have disabled the text app and this has solved the issue.
unfortunately that trick did not work for me :(
OP's stack trace suggests the issue was in Maps.
That's since been fixed it looks like: nextcloud/maps#1469
Since it's a sharing related bug, likely also explains why disabling sharing was a workaround.
Closing since this isn't a Notes matter and is also fixed.