wekan icon indicating copy to clipboard operation
wekan copied to clipboard

Cannot save Layout settings

Open tensor5g opened this issue 1 year ago • 5 comments

Issue

Server Setup Information

Docker on Ubuntu 22.04: ghcr.io/wekan/wekan:latest

Problem description

I cannot edit Settings/Layout, I get an error in my browser's console:

image

image

It appears the object it's trying to reference "accessibility-title" and "accessibility-content" do not exist on my settings page. This is a practically brand new instance, I have not used wekan before, so I don't know if this problem is new. Tested in Firefox and Edge.

Reproduction Steps

Open layout menu under admin panel and try to save it with or without changing any settings. Error will appear in console and loading symbol will appear endlessly. I've tested this immediately after a deleting all volumes and starting fresh with this docker compose:

services:
  wekan:
    image: ghcr.io/wekan/wekan:latest
    container_name: wekan-app
    restart: always
    networks:
      - wekan-tier
    ports:
      - 3001:8080
    environment:
      - WRITABLE_PATH=/data
      - MONGO_URL=mongodb://wekandb:27017/wekan
      - ROOT_URL=http://192.168.100.100:3001 
      - MAIL_URL=smtp://smtp.example.com:25/?ignoreTLS=true&tls={rejectUnauthorized:false}
      - MAIL_FROM="Wekan <[email protected]>"
      - WITH_API=false
      - RICHER_CARD_COMMENT_EDITOR=true
      - CARD_OPENED_WEBHOOK_ENABLED=false
    depends_on:
      - wekandb
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - wekan-files:/data:rw

  wekandb:
    image: mongo:6
    container_name: wekan-db
    restart: always
    command: mongod --logpath /dev/null --oplogSize 128 --quiet
    networks:
      - wekan-tier
    expose:
      - 27017
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - wekan-db:/data/db
      - wekan-db-dump:/dump

volumes:
  wekan-files:
    driver: local
  wekan-db:
    driver: local
  wekan-db-dump:
    driver: local

networks:
  wekan-tier:
    driver: bridge

Logs

There are no errors in my container's logs (Just one line about SyncedCron). Edge logs above.

tensor5g avatar Dec 28 '24 02:12 tensor5g

I seem to be having this exact same issue now, running the latest version (7.94.0).

EDIT: the exact error is this:

5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:834 Uncaught TypeError: Cannot read properties of undefined (reading 'trim')
    at n.saveLayout (5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:834:737902)
    at 5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:634:15743
    at 5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:634:15311
    at d._withCurrentView (5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:556:23492)
    at 5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:634:15273
    at c._withTemplateInstanceFunc (5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:556:39789)
    at q (5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:634:15248)
    at t.<computed> (5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:634:15718)
    at 5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:556:27623
    at d._withCurrentView (5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:556:23492)

neiL-Garrett avatar Aug 26 '25 00:08 neiL-Garrett

I am also looking for a solution for this error. Version 7.94.0

5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:834 Uncaught TypeError: Cannot read properties of undefined (reading 'trim') at n.saveLayout (5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:834:737902) at 5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:634:15743 at 5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:634:15311 at Object._withCurrentView (5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:556:23492) at 5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:634:15273 at 5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:556:39789 at q (5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:634:15248) at t. (5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:634:15718) at 5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:556:27623 at Object._withCurrentView (5c9c9cab7b70cfdf7593a1d4e4036fe03528ebd7.js?meteor_js_resource=true:556:23492)

wildowgit avatar Aug 26 '25 19:08 wildowgit

I am also getting the same message when I try and save my settings in the admin panel.

Uncaught TypeError: Cannot read properties of undefined (reading 'trim')

this.setLoading(!0), $("li").removeClass("has-error"); const e = $("#product-name").val().trim() , t = $("#custom-login-logo-image-url").val().trim() , a = $("#custom-login-logo-link-url").val().trim() , n = $("#custom-help-link-url").val().trim() , s = $("#text-below-custom-login-logo").val().trim() , o = $("#automatic-linked-url-schemes").val().trim() , i = $("#custom-top-left-corner-logo-image-url").val().trim() , c = $("#custom-top-left-corner-logo-link-url").val().trim() , l = $("#custom-top-left-corner-logo-height").val().trim() , u = $("#oidcBtnTextvalue").val().trim() , d = $("#mailDomainNamevalue").val().trim() , p = $("#legalNoticevalue").val().trim() , m = "true" === $("input[name=hideLogo]:checked").val() , h = "true" === $("input[name=hideCardCounterList]:checked").val() , f = "true" === $("input[name=hideBoardMemberList]:checked").val() , b = "true" === $("input[name=displayAuthenticationMethod]:checked").val() , k = $("#defaultAuthenticationMethod").val() , g = "true" === $("input[name=accessibilityPageEnabled]:checked").val() , T = $("#accessibility-title").val().trim() <-- This is causing an error , S = $("#accessibility-content").val().trim() , I = $("#spinnerName").val();

Thydrate avatar Sep 04 '25 07:09 Thydrate

Same here 7.94.0

cbka avatar Sep 16 '25 09:09 cbka

https://github.com/wekan/wekan/pull/5878

cbka avatar Sep 16 '25 10:09 cbka