I recently upgraded my discourse version and all of my plugins are up to date.
After upgrade I am now getting 500 error when trying to mark a reply as solution.
Below are the error details I am getting in console.
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
Yes I do have unofficial plugin installed and I haven’t checked in safemode (I dont know how to do it :noobface:)
Though I checked logs and it showed this ArgumentError (unknown keyword: duration) /var/www/discourse/app/models/topic.rb:1138:in 'set_or_create_timer'
(Backtrace if you’re interested: https://pastebin.com/chKtDTeL.)
Then I went to solved settings and set auto close hours to 0 (Previous value 72) and it works now but I really want to use this feature. Any help?
Ok someone from my team has tried this already · Disabling unofficial plugins (e.g. our badges plugin) did not resolve the issue. · Disabling our theme (e.g. custom JavaScript) did not resolve the issue. · Disabling unofficial plugins and theme together did not resolve the issue.
Using safe-mode.
Didn’t try disabling all plugin cause you know it will disable solved also
You’re on a specific discourse version which probably doesn’t have the feature backported. The solved plugin works fine with latest tests-passed branch so consider upgrading to that.
It is Good but generally very very old and lacking new features. You should really be using tests-passed as it’s stable enough and contains all new features and performance improvements.