Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CelianGdfrd opened this issue Oct 29, 2024 · 13 comments
Open

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

CelianGdfrd opened this issue Oct 29, 2024 · 13 comments
Labels
bug Something isn't working need to reproduce Issue that has not been reproduced

Comments

@CelianGdfrd
Copy link

CelianGdfrd commented Oct 29, 2024

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.

  • Notes app version: 4.11.0
  • Nextcloud version: 30.0.1
  • OS: Ubuntu
  • Web server: Nginx
  • PHP version: 8.1
  • Database: Mariasql

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.

  • Browser (incl. version): Firefox
  • OS: Ubuntu

Log files

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

@CelianGdfrd CelianGdfrd added bug Something isn't working need to reproduce Issue that has not been reproduced labels Oct 29, 2024
@joshtrichards
Copy link
Member

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?

@joshtrichards joshtrichards added the needs info More details are needed in order to validate issue label Oct 30, 2024
@ghagl
Copy link

ghagl commented Oct 30, 2024

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
Copy link
Author

I observe the same error in my logs.

@joshtrichards
Copy link
Member

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
Copy link
Author

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
Copy link

ghagl commented Nov 1, 2024

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
Copy link

ghagl commented Nov 6, 2024

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

@joshtrichards
Copy link
Member

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
Copy link

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
Copy link

ghagl commented Nov 10, 2024

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

@joshtrichards
Copy link
Member

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
Copy link

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.

@joshtrichards joshtrichards removed the needs info More details are needed in order to validate issue label Nov 11, 2024
@JuliaKirschenheuter
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need to reproduce Issue that has not been reproduced
Projects
None yet
Development

No branches or pull requests

5 participants