mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
"[uncaughtException] WeKan is stopping: TypeError: string.toLowerCase is not a function at later.parse.text ... at Object.schedule (wekan-ldap/server/sync.js)", in a snap restart loop. The docs give LDAP_BACKGROUND_SYNC_INTERVAL in milliseconds, settings_get() turns a numeric value into a Number, and the schedule handed it straight to later's text parser, which threw from a timer. Text later could not read did not throw, but made a schedule that never ran - as a quoted 'every 1 mins' from a compose file did, the second report in #2354. packages/wekan-ldap/server/syncSchedule.js reads the setting and never throws: milliseconds (a Number or digits) become that interval, later.js text is read as before, one pair of surrounding quotes is removed, unset keeps the original default (recur().on(0).minute()), and anything unreadable logs why and uses the default. The docs, the snap description and the compose files say both forms work, instead of "leave this unset so it does not crash". Tests: tests/ldapSyncSchedule.test.cjs reproduces the crash with the real later.js from the build, schedules 3600000 ms an hour apart and 10000 ms ten seconds apart, reads quoted text, keeps the default, never throws on any value a setting can hold, and fails if any server file hands a setting to parser.text directly. Thanks to B2RN and xet7 ! Fixes #2354.
Features by menu
Start with Features, the menu-based documentation index. See September 2026 additions for the newest guides.
See menu implementation audit for test evidence and known implementation gaps.