# Discourse solved plugin throwing 500 error

**URL:** https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441
**Category:** Support
**Created:** [April 1, 2020, 3:11pm UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441 "2020-04-01T15:11:20Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Caliph](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@Caliph](https://meta.discourse.org/u/Caliph)
#### Post date: [April 1, 2020, 3:11pm UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/1 "2020-04-01T15:11:21Z")

</div>

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

```

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [April 1, 2020, 3:24pm UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/2 "2020-04-01T15:24:12Z")

</div>

do you have unofficial plugins installed? Is it working in [safe mode](https://meta.discourse.org/t/53504?silent=true) with only official plugins and themes?

---

<div class="post-metadata">

### Author: ![Caliph](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@Caliph](https://meta.discourse.org/u/Caliph)
#### Post date: [April 1, 2020, 3:31pm UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/3 "2020-04-01T15:31:34Z")

</div>

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.](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?

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [April 1, 2020, 3:34pm UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/4 "2020-04-01T15:34:35Z")

</div>

just go to `/safe-mode` on your site to access [safe mode](https://meta.discourse.org/t/53504?silent=true) settings. Looks like this:

 ![Screen Shot 2020-04-01 at 8.33.33 AM](https://global.discourse-cdn.com/meta/original/3X/d/3/d35aae53e7be336f8f8d54896b1e23c826a2594c.png)

---

<div class="post-metadata">

### Author: ![Caliph](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@Caliph](https://meta.discourse.org/u/Caliph)
#### Post date: [April 1, 2020, 3:40pm UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/5 "2020-04-01T15:40:26Z")

</div>

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 😁

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [April 1, 2020, 3:53pm UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/6 "2020-04-01T15:53:39Z")

</div>

do you have any pavilion plugins?

---

<div class="post-metadata">

### Author: ![Caliph](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@Caliph](https://meta.discourse.org/u/Caliph)
#### Post date: [April 1, 2020, 3:54pm UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/7 "2020-04-01T15:54:01Z")

</div>

It seems related to what I found in logs. Last update made by plugin author is this  
[https://github.com/discourse/discourse-solved/commit/329d8aff30bf21e59e2c2ddcbc0e5a51bc8ef70d](https://github.com/discourse/discourse-solved/commit/329d8aff30bf21e59e2c2ddcbc0e5a51bc8ef70d)

---

<div class="post-metadata">

### Author: ![Caliph](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@Caliph](https://meta.discourse.org/u/Caliph)
#### Post date: [April 1, 2020, 3:57pm UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/8 "2020-04-01T15:57:00Z")

</div>

> [@tobiaseigen](#):
>
> pavilion

No plugins from pavilion

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [April 1, 2020, 4:07pm UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/9 "2020-04-01T16:07:13Z")

</div>

I just updated my personal site to latest and enabled the solved plugin, and it works fine for me. I am not able to replicate.

---

<div class="post-metadata">

### Author: ![Caliph](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@Caliph](https://meta.discourse.org/u/Caliph)
#### Post date: [April 1, 2020, 4:10pm UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/10 "2020-04-01T16:10:50Z")

</div>

I think I got the issue. We are on stable release (Not the default tests-passed) which doesn’t have the ‘duration’ change yet.

---

<div class="post-metadata">

### Author: ![Caliph](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@Caliph](https://meta.discourse.org/u/Caliph)
#### Post date: [April 1, 2020, 4:13pm UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/11 "2020-04-01T16:13:20Z")

</div>

Thankyou for looking into it, really appreciate it! I think we will just wait until the stable branch is updated to use this feature.

---

<div class="post-metadata">

### Author: ![Hotfirenet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hotfirenet/32/120124_2.png) [@Hotfirenet](https://meta.discourse.org/u/Hotfirenet)
#### Post date: [April 24, 2020, 7:18am UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/12 "2020-04-24T07:18:53Z")

</div>

Hello i have the same problem:

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/4/44c0a7b9beb38eaf1d99140deb9479b132cf83d3.png)

Discourse version:

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/b/0bc607003f4133573fe573948088f8e763ba64ef.png)

My extensions:

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/4/34aa4752c40ed4fbb26e2b3517e1948b8b93df10.png)

I have try in [safe mode](https://meta.discourse.org/t/53504?silent=true), it’s same.

The log  
 ![image](https://global.discourse-cdn.com/meta/optimized/3X/4/a/4a6c99dae331b8a81f40c19ae9951fe8a4a86914_2_690x47.png)

```plaintext
Message

ArgumentError (unknown keyword: duration)
/var/www/discourse/app/models/topic.rb:1138:in `set_or_create_timer'

Backtrace

/var/www/discourse/app/models/topic.rb:1138:in `set_or_create_timer'
/var/www/discourse/plugins/discourse-solved/plugin.rb:126:in `accept_answer!'
/var/www/discourse/plugins/discourse-solved/plugin.rb:206:in `accept'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/abstract_controller/base.rb:196:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.1/lib/active_support/callbacks.rb:135:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/abstract_controller/callbacks.rb:41:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.1/lib/action_controller/metal/rescue.rb:22:in `process_action'

```

Thanks for your help

---

<div class="post-metadata">

### Author: ![Hotfirenet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hotfirenet/32/120124_2.png) [@Hotfirenet](https://meta.discourse.org/u/Hotfirenet)
#### Post date: [April 25, 2020, 6:12am UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/13 "2020-04-25T06:12:30Z")

</div>

Hello evorybody,  
Have toi for an Idea ?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [April 25, 2020, 8:25am UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/14 "2020-04-25T08:25:06Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Hotfirenet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hotfirenet/32/120124_2.png) [@Hotfirenet](https://meta.discourse.org/u/Hotfirenet)
#### Post date: [April 26, 2020, 6:22am UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/15 "2020-04-26T06:22:43Z")

</div>

why ?  
I 'm un stable version.

So if i understand, stable version is not a good version for discourse production server ???

```plaintext
  ## Which Git revision should this container use? (default: tests-passed)
  version: stable

```

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [April 26, 2020, 6:34am UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/16 "2020-04-26T06:34:31Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Hotfirenet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hotfirenet/32/120124_2.png) [@Hotfirenet](https://meta.discourse.org/u/Hotfirenet)
#### Post date: [April 26, 2020, 6:37am UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/17 "2020-04-26T06:37:58Z")

</div>

ok thanks for your response.

---

<div class="post-metadata">

### Author: ![kris.kotlarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kris.kotlarek/32/176919_2.png) [@kris.kotlarek](https://meta.discourse.org/u/kris.kotlarek)
#### Post date: [April 29, 2020, 4:17am UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/20 "2020-04-29T04:17:57Z")

</div>

I made a fix yesterday. Could you update `discourse-solved` plugin and confirm if the issue is solved for you?

---

<div class="post-metadata">

### Author: ![Hotfirenet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hotfirenet/32/120124_2.png) [@Hotfirenet](https://meta.discourse.org/u/Hotfirenet)
#### Post date: [April 29, 2020, 6:53am UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/21 "2020-04-29T06:53:22Z")

</div>

Hello @kris.kotlarek,  
that’s good for me with this version:

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/f/0fc8a15da65540d3cd48dbb3f38f8481ad35a787.png)

Thanks

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [May 29, 2020, 6:53am UTC](https://meta.discourse.org/t/discourse-solved-plugin-throwing-500-error/146441/22 "2020-05-29T06:53:38Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
