최근 Discourse 버전을 업그레이드했으며 모든 플러그인도 최신 상태로 유지되고 있습니다.
업그레이드 후 답변을 해결책으로 표시하려고 하면 500 오류가 발생합니다.
아래는 콘솔에서 확인되는 오류 세부 정보입니다.
Failed to load resource: the server responded with a status of 500 ()
_application-ed0ac69…88e883e0db.js:11141 SyntaxError: Unexpected token < in JSON at position 0
at Function.parse [as parseJSON] (<anonymous>)
at n (_application-ed0ac69…88e883e0db.js:11137)
at e.popupAjaxError (_application-ed0ac69…88e883e0db.js:11180)
at E (ember_jquery-8e338e1…8f98e499a037a9.js:1)
at w (ember_jquery-8e338e1…8f98e499a037a9.js:1)
at g (ember_jquery-8e338e1…8f98e499a037a9.js:1)
at t.invoke (ember_jquery-8e338e1…8f98e499a037a9.js:1)
at e.t.flush (ember_jquery-8e338e1…8f98e499a037a9.js:1)
at e.t.flush (ember_jquery-8e338e1…8f98e499a037a9.js:1)
at e.t._end (ember_jquery-8e338e1…8f98e499a037a9.js:1)
ember_jquery-8e338e1…8f98e499a037a9.js:1 Uncaught
Object
jqXHR: {readyState: 4, getResponseHeader: ƒ, getAllResponseHeaders: ƒ, setRequestHeader: ƒ, overrideMimeType: ƒ, …}
textStatus: "error"
errorThrown: ""
_discourse_displayed: true
__proto__: Object
네, 비공식 플러그인이 설치되어 있고, 세이프모드에서는 확인해 보지 않았습니다 (방법을 모르겠어요 :noobface:)
다만 로그를 확인해 봤더니 다음과 같은 내용이 표시되었습니다. ArgumentError (unknown keyword: duration) /var/www/discourse/app/models/topic.rb:1138:in 'set_or_create_timer'
(관심 있으시면 백트레이스: https://pastebin.com/chKtDTeL.)
그 후 해결 설정으로 가서 자동 닫기 시간을 0으로 설정했습니다(이전 값 72). 지금은 작동하지만, 이 기능을 실제로 사용하길 원합니다. 도움 주실 수 있나요?
팀에서 이미 이 방법을 시도해 보았습니다. · 비공식 플러그인(예: 배지 플러그인)을 비활성화해도 문제가 해결되지 않았습니다. · 테마(예: 사용자 정의 JavaScript)를 비활성화해도 문제가 해결되지 않았습니다. · 비공식 플러그인과 테마를 함께 비활성화해도 문제가 해결되지 않았습니다.
안전 모드(safe-mode)를 사용했습니다.
모든 플러그인을 비활성화하는 것은 시도하지 않았습니다. 그렇게 하면 solved 기능도 함께 비활성화되니까요