nextcloud / notes

✎ Distraction-free notes and writing
https://apps.nextcloud.com/apps/notes
GNU Affero General Public License v3.0
623 stars 133 forks source link

On web editor, notes loading forever and impossible to show/edit #1407

Open CelianGdfrd opened 3 weeks ago

CelianGdfrd commented 3 weeks ago

Steps to reproduce

  1. Open a note

Expected behaviour

Note should open and be editable.

Actual behaviour

Note loading takes forever, impossible to access content.

Server

Please complete the following information.

Nextcloud configuration:

``` { "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "cloud.kalytis.gg" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "30.0.1.2", "overwrite.cli.url": "https:\/\/cloud.kalytis.gg", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "memcache.local": "\\OC\\Memcache\\APCu", "mail_smtpmode": "smtp", "mail_sendmailmode": "smtp", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "587", "maintenance": false, "loglevel": 2, "filelocking.enabled": true, "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 6379, "timeout": 0, "password": "***REMOVED SENSITIVE VALUE***" }, "mail_smtpauth": 1, "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "default_phone_region": "FR", "app_install_overwrite": [ "cms_pico", "files_rightclick" ] } } ```

Client

Please complete the following information.

Log files

Add relevant parts of your nextcloud.log and/or your browser's JavaScript console here.

joshtrichards commented 3 weeks ago

We're going to need more information since this isn't readily reproducible.

Please open your browser inspector and monitor the Network tab as well as the Console while reproducing the problem.

When did this behavior start?

ghagl commented 3 weeks ago

I observe issues with window.OCA.text

Uncaught (in promise) TypeError: window.OCA.Text is undefined
    loadTextEditor NoteRich.vue:89
    fetchData NoteRich.vue:79
    mounted NoteRich.vue:56
    VueJS 18
    setSettings app.js:16
    _ vuex.esm.js:844
    commit vuex.esm.js:466
    commit vuex.esm.js:465
    _withCommit vuex.esm.js:624
    commit vuex.esm.js:464
    commit vuex.esm.js:409
    g NotesService.js:84
    promise callback*g NotesService.js:83
    loadNotes App.vue:129
    created App.vue:119
    VueJS 17
    <anonymous> main.js:12
    <anonymous> main.js:16
    <anonymous> main.js:16
[NoteRich.vue:89](webpack:///notes/src/components/NoteRich.vue)
    fetchData NoteRich.vue:79
    AsyncFunctionThrow self-hosted:811
    (Async: async)
    mounted NoteRich.vue:56
    VueJS 18
    setSettings app.js:16
    _ vuex.esm.js:844
    commit vuex.esm.js:466
    forEach self-hosted:160
    commit vuex.esm.js:465
    _withCommit vuex.esm.js:624
    commit vuex.esm.js:464
    commit vuex.esm.js:409
    g NotesService.js:84
    (Async: promise callback)
    g NotesService.js:83
    loadNotes App.vue:129
    created App.vue:119
    VueJS 17
    <anonym> main.js:12
    <anonym> main.js:16
    <anonym> main.js:16
CelianGdfrd commented 3 weeks ago

I observe the same error in my logs.

joshtrichards commented 3 weeks ago

When did this problem start?

Any errors on the Network tab when reloading the page and reproducing the problem?

Also please check Admin settings->Overview for any errors or warnings.

CelianGdfrd commented 3 weeks ago

I first witnessed it just before posting this -- but then again, I don't use the web viewer that much.

Nothing in the Network tab or in logs.

ghagl commented 2 weeks ago

When did this problem start?

Any errors on the Network tab when reloading the page and reproducing the problem?

Also please check Admin settings->Overview for any errors or warnings.

For me these errors started appearing when I did the upgrade to the very latest Nextcloud stable release

No other errors present in the instance, neither in the network tab nor system logs.

ghagl commented 2 weeks ago

@joshtrichards Any specific logs you would like to see, not covered by the network tab or Admin settings->Overview?

joshtrichards commented 2 weeks ago

Uncaught (in promise) TypeError: window.OCA.Text is undefined

Are you able to create/edit markdown files using the Text app outside of Notes? e.g. via Files in the Web UI?

Please take a close look at the Network tab in your browser then do a full refresh/reload of the problematic page.

jlighty8 commented 1 week ago

I got the same issue after the upgrade : "Uncaught (in promise) TypeError: window.OCA.Text is undefined" Finally I found a trick to fix it : go to "Notes settings" then click on "display mode" and select "open in edition mode" On my side, the display mode was empty, maybe that can explain why I wasn't able to display the notes in the browser.

ghagl commented 1 week ago

Selecting an option in "Notes settings" does indeed work, I haven't yet checked whether editing outside of Notes works though

joshtrichards commented 1 week ago

Finally I found a trick to fix it : go to "Notes settings" then click on "display mode" and select "open in edition mode" On my side, the display mode was empty, maybe that can explain why I wasn't able to display the notes in the browser.

If you then set it to "Open in rich text mode" does it continue to function?

Do you perhaps not have the text app installed?

jlighty8 commented 1 week ago

If you then set it to "Open in rich text mode" does it continue to function?

Do you perhaps not have the text app installed?

Yes, it works. I guess after the Note upgrade the setting was empty.

JuliaKirschenheuter commented 12 hours ago

Dear @CelianGdfrd,

Thanks for your report! Please check "Text" app too, and if app will be enabled and this will solve your problem, please close the issue. Otherwise will will have a look deeper.