4.9.1/NC27.1.4 - Call to undefined method OCA\\Notes\\Service\\NoteUtil::getPathForUser()
Please make a clear and concise description of what the bug is.
Nextcloud notes shows getting started screen in browser. Error message "Error from Nextcloud server: Reading notes from filesystem has failed. (Error)"
Steps to reproduce
- Open Notes?
Expected behaviour
Notes should display existing notes
Actual behaviour
Notes show the getting started screen
Screenshots
If applicable, add screenshots to help explain your problem.
Server
Please complete the following information.
- Notes app version: 4.9.1
- Nextcloud version: 27.1.4
- OS: Docker
- Web server: Nginx
- PHP version: 8.2.13
- Database: MySQL
Nextcloud configuration:
Client
Please complete the following information.
- Browser (incl. version): Firefox 121.0
- OS: Ubuntu 22.04
Log files
{"reqId":"fqawI5wTfXWyELdnFn0b","level":3,"time":"2023-12-21T09:18:57+00:00","remoteAddr":"192.168.10.1","user":"sgofferj","app":"notes","method":"GET","url":"/apps/notes/notes","message":"Controller failed with Error","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"27.1.4.1","exception":{"Exception":"Error","Message":"Call to undefined method OCA\\Notes\\Service\\NoteUtil::getPathForUser()","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/notes/lib/Controller/Helper.php","line":62,"function":"getData","class":"OCA\\Notes\\Service\\Note","type":"->","args":[["etag","content"]]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/Helper.php","line":114,"function":"getNoteData","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":[["OCA\\Notes\\Service\\Note"],["etag","content"],["OCA\\Notes\\Db\\Meta",153]]},{"function":"OCA\\Notes\\Controller\\{closure}","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/Helper.php","line":113,"function":"array_map","args":[["Closure"],["*** sensitive parameters replaced ***",["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",148]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",154]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",152]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",151]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",155]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",149]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",150]]]]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/NotesController.php","line":71,"function":"getNotesAndCategories","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":[0,["etag","content"]]},{"file":"/var/www/html/custom_apps/notes/lib/Service/Util.php","line":26,"function":"OCA\\Notes\\Controller\\{closure}","class":"OCA\\Notes\\Controller\\NotesController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/Helper.php","line":140,"function":"retryIfLocked","class":"OCA\\Notes\\Service\\Util","type":"::","args":[["Closure"]]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/NotesController.php","line":57,"function":"handleErrorResponse","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":[["Closure"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"index","class":"OCA\\Notes\\Controller\\NotesController","type":"->","args":[0]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Notes\\Controller\\NotesController"],"index"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Notes\\Controller\\NotesController"],"index"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Notes\\Controller\\NotesController","index",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["notes.notes.index"]]},{"file":"/var/www/html/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/notes/notes"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/notes/lib/Service/Note.php","Line":108,"message":"Controller failed with Error","exception":{},"CustomMessage":"Controller failed with Error"}}
{"reqId":"wmyCXPC9VohS8CYvGgua","level":3,"time":"2023-12-21T09:19:22+00:00","remoteAddr":"192.168.10.1","user":"sgofferj","app":"notes","method":"GET","url":"/apps/notes/notes","message":"Controller failed with Error","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"27.1.4.1","exception":{"Exception":"Error","Message":"Call to undefined method OCA\\Notes\\Service\\NoteUtil::getPathForUser()","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/notes/lib/Controller/Helper.php","line":62,"function":"getData","class":"OCA\\Notes\\Service\\Note","type":"->","args":[["etag","content"]]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/Helper.php","line":114,"function":"getNoteData","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":[["OCA\\Notes\\Service\\Note"],["etag","content"],["OCA\\Notes\\Db\\Meta",153]]},{"function":"OCA\\Notes\\Controller\\{closure}","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/Helper.php","line":113,"function":"array_map","args":[["Closure"],["*** sensitive parameters replaced ***",["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",148]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",154]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",152]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",151]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",155]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",149]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",150]]]]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/NotesController.php","line":71,"function":"getNotesAndCategories","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":[0,["etag","content"]]},{"file":"/var/www/html/custom_apps/notes/lib/Service/Util.php","line":26,"function":"OCA\\Notes\\Controller\\{closure}","class":"OCA\\Notes\\Controller\\NotesController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/Helper.php","line":140,"function":"retryIfLocked","class":"OCA\\Notes\\Service\\Util","type":"::","args":[["Closure"]]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/NotesController.php","line":57,"function":"handleErrorResponse","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":[["Closure"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"index","class":"OCA\\Notes\\Controller\\NotesController","type":"->","args":[0]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Notes\\Controller\\NotesController"],"index"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Notes\\Controller\\NotesController"],"index"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Notes\\Controller\\NotesController","index",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["notes.notes.index"]]},{"file":"/var/www/html/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/notes/notes"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/notes/lib/Service/Note.php","Line":108,"message":"Controller failed with Error","exception":{},"CustomMessage":"Controller failed with Error"}}
{"reqId":"7Q7sMX1DuhK4LIQ1rV6r","level":3,"time":"2023-12-21T09:21:00+00:00","remoteAddr":"192.168.10.1","user":"sgofferj","app":"notes","method":"GET","url":"/apps/notes/notes","message":"Controller failed with Error","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"27.1.4.1","exception":{"Exception":"Error","Message":"Call to undefined method OCA\\Notes\\Service\\NoteUtil::getPathForUser()","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/notes/lib/Controller/Helper.php","line":62,"function":"getData","class":"OCA\\Notes\\Service\\Note","type":"->","args":[["etag","content"]]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/Helper.php","line":114,"function":"getNoteData","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":[["OCA\\Notes\\Service\\Note"],["etag","content"],["OCA\\Notes\\Db\\Meta",153]]},{"function":"OCA\\Notes\\Controller\\{closure}","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/Helper.php","line":113,"function":"array_map","args":[["Closure"],["*** sensitive parameters replaced ***",["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",148]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",154]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",152]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",151]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",155]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",149]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",150]]]]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/NotesController.php","line":71,"function":"getNotesAndCategories","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":[0,["etag","content"]]},{"file":"/var/www/html/custom_apps/notes/lib/Service/Util.php","line":26,"function":"OCA\\Notes\\Controller\\{closure}","class":"OCA\\Notes\\Controller\\NotesController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/Helper.php","line":140,"function":"retryIfLocked","class":"OCA\\Notes\\Service\\Util","type":"::","args":[["Closure"]]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/NotesController.php","line":57,"function":"handleErrorResponse","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":[["Closure"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"index","class":"OCA\\Notes\\Controller\\NotesController","type":"->","args":[0]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Notes\\Controller\\NotesController"],"index"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Notes\\Controller\\NotesController"],"index"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Notes\\Controller\\NotesController","index",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["notes.notes.index"]]},{"file":"/var/www/html/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/notes/notes"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/notes/lib/Service/Note.php","Line":108,"message":"Controller failed with Error","exception":{},"CustomMessage":"Controller failed with Error"}}
{"reqId":"ayjdjqB3lJaLYLxQYQgJ","level":3,"time":"2023-12-21T09:24:44+00:00","remoteAddr":"192.168.10.1","user":"sgofferj","app":"notes","method":"GET","url":"/apps/notes/notes","message":"Controller failed with Error","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"27.1.4.1","exception":{"Exception":"Error","Message":"Call to undefined method OCA\\Notes\\Service\\NoteUtil::getPathForUser()","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/notes/lib/Controller/Helper.php","line":62,"function":"getData","class":"OCA\\Notes\\Service\\Note","type":"->","args":[["etag","content"]]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/Helper.php","line":114,"function":"getNoteData","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":[["OCA\\Notes\\Service\\Note"],["etag","content"],["OCA\\Notes\\Db\\Meta",153]]},{"function":"OCA\\Notes\\Controller\\{closure}","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/Helper.php","line":113,"function":"array_map","args":[["Closure"],["*** sensitive parameters replaced ***",["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",148]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",154]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",152]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",151]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",155]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",149]],["OCA\\Notes\\Service\\MetaNote",["OCA\\Notes\\Service\\Note"],["OCA\\Notes\\Db\\Meta",150]]]]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/NotesController.php","line":71,"function":"getNotesAndCategories","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":[0,["etag","content"]]},{"file":"/var/www/html/custom_apps/notes/lib/Service/Util.php","line":26,"function":"OCA\\Notes\\Controller\\{closure}","class":"OCA\\Notes\\Controller\\NotesController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/Helper.php","line":140,"function":"retryIfLocked","class":"OCA\\Notes\\Service\\Util","type":"::","args":[["Closure"]]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/NotesController.php","line":57,"function":"handleErrorResponse","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":[["Closure"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"index","class":"OCA\\Notes\\Controller\\NotesController","type":"->","args":[0]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Notes\\Controller\\NotesController"],"index"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Notes\\Controller\\NotesController"],"index"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Notes\\Controller\\NotesController","index",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["notes.notes.index"]]},{"file":"/var/www/html/lib/base.php","line":1068,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/notes/notes"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/notes/lib/Service/Note.php","Line":108,"message":"Controller failed with Error","exception":{},"CustomMessage":"Controller failed with Error"}}
Is this related to #1184?
Hi @sgofferj - Are you still experiencing this? That method definitely was in v4.9.1. If this occurred after what was then a recent update it's possible it was a PHP caching issue.
Apologies for the delay. I upgraded to NC28 now and the issue is gone.