zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
26.91k stars 1.88k forks source link

(Bug report) Themes not working properly in server and Windows version (fonts and visibility) #4767

Open kotlasu opened 4 months ago

kotlasu commented 4 months ago

Trilium Version

0.63.5

What operating system are you using?

Other (specify below)

What is your setup?

Local + server sync

Operating System Version

Windows 11, Docker DitePi (RPi ARM7)

Description

Switching native and custom themes are not working as intended:

Screenshot 2024-05-09 160050

Reloading frontend, restarting docker container and rebooting whole system doesn't change anything. There's a message saying "0 GET options" just before the theme refreshes.

Screenshot 2024-05-09 161114

Error logs

16:15:03 Frontend app reload: theme change desktop.js:2:119817 16:15:03 error: undefined desktop.js:2:102331 16:15:03 0 GET options - undefined desktop.js:2:119643 16:15:03 error: undefined desktop.js:2:102331 16:15:03 0 GET options - undefined desktop.js:2:119643 16:15:03 error: undefined desktop.js:2:102331 16:15:03 0 GET options - undefined desktop.js:2:119643 16:15:03 error: undefined desktop.js:2:102331 16:15:03 0 GET options - undefined desktop.js:2:119643 Uncaught (in promise) Error: 0 GET options - undefined throwError toast.js:102 c server.js:222 error server.js:141 jQuery 6 l server.js:157 l server.js:117 l server.js:104 get server.js:36 refreshWithNote options_widget.js:47 refresh note_context_aware_widget.js:60 entitiesReloadedEvent options_widget.js:54 callMethod component.js:104 handleEvent component.js:48 handleEventInChildren component.js:74 handleEventInChildren type_widget.js:59 handleEvent component.js:50 handleEventInChildren component.js:74 handleEvent component.js:50 handleEventInChildren component.js:74 handleEventInChildren scrolling_container.js:47 handleEvent component.js:50 handleEventInChildren component.js:74 handleEvent component.js:50 handleEventInChildren component.js:74 handleEventInChildren split_note_container.js:199 handleEvent component.js:50 handleEventInChildren component.js:74 handleEvent component.js:50 handleEventInChildren component.js:74 handleEvent component.js:50 handleEventInChildren component.js:74 handleEvent component.js:50 handleEventInChildren component.js:74 handleEvent component.js:50 handleEventInChildren component.js:74 handleEvent component.js:50 triggerEvent app_context.js:97 processEntityChanges froca_updater.js:81 S ws.js:179 A ws.js:90 A ws.js:114 P ws.js:213 4264 ws.js:238 setTimeout handler4264 ws.js:237 Webpack 10 4 desktop.js:2:102524 16:15:03 error: undefined desktop.js:2:102331 16:15:03 0 GET options - undefined desktop.js:2:119643 Uncaught (in promise) Error: 0 GET options - undefined throwError toast.js:102 c server.js:222 error server.js:141 jQuery 6 l server.js:157 l server.js:117 l server.js:104 get server.js:36 refreshWithNote options_widget.js:47 refresh note_context_aware_widget.js:60 entitiesReloadedEvent options_widget.js:54 callMethod component.js:104 handleEvent component.js:48 handleEventInChildren component.js:74 handleEventInChildren type_widget.js:59 handleEvent component.js:50 handleEventInChildren component.js:74 handleEvent component.js:50 handleEventInChildren component.js:74 handleEventInChildren scrolling_container.js:47 handleEvent component.js:50 handleEventInChildren component.js:74 handleEvent component.js:50 handleEventInChildren component.js:74 handleEventInChildren split_note_container.js:199 handleEvent component.js:50 handleEventInChildren component.js:74 handleEvent component.js:50 handleEventInChildren component.js:74 handleEvent component.js:50 handleEventInChildren component.js:74 handleEvent component.js:50 handleEventInChildren component.js:74 handleEvent component.js:50 handleEventInChildren component.js:74 handleEvent component.js:50 triggerEvent app_context.js:97 processEntityChanges froca_updater.js:81 S ws.js:179 A ws.js:90 A ws.js:114 P ws.js:213 4264 ws.js:238 setTimeout handler4264 ws.js:237 Webpack 10 desktop.js:2:102524 16:15:04 WS closed or closing, trying to reconnect desktop.js:2:122690 InstallTrigger is deprecated and will be removed in the future. constants.js:50:15 Failed to get subsystem status for purpose Object { rejected: true, message: TypeError } content-script.js:95:21 16:15:05 Connected to server ws://XXX.XX.XX.XX:8080/ with WebSocket ws.js:212:30 Cannot find action 'switchToMobileVersion' keyboard_actions.js:54:11 Cannot find action 'switchToDesktopVersion' keyboard_actions.js:54:11 Cannot find action 'showLaunchBarSubtree' keyboard_actions.js:54:11 Cannot find action 'showShareSubtree' keyboard_actions.js:54:11 Cannot find action 'showSQLConsoleHistory' keyboard_actions.js:54:11 Cannot find action 'showSearchHistory' keyboard_actions.js:54:11 Cannot find action 'showHiddenSubtree' keyboard_actions.js:54:11 Cannot find action 'downloadLatestVersion' keyboard_actions.js:54:11 Cannot find action 'logout' keyboard_actions.js:54:11 16:15:06 Did not find parent root (root) for child _options (Options), available parents: _hidden (Hidden Notes). You can ignore this message as it is mostly harmless. tree.js:77:28

zadam commented 4 months ago

My guess is that the custom theme is buggy / perhaps created for an older version of Trilium.