# Error when pressing "Send Activitation Email" when \`must approve users\` setting is enabled

**URL:** https://meta.discourse.org/t/error-when-pressing-send-activitation-email-when-must-approve-users-setting-is-enabled/65408
**Category:** Bug
**Created:** [30 يونيو 2017، 6:19م UTC](https://meta.discourse.org/t/error-when-pressing-send-activitation-email-when-must-approve-users-setting-is-enabled/65408 "2017-06-30T18:19:30Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Jose\_C\_Gomez](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jose_c_gomez/32/137297_2.png) [@Jose\_C\_Gomez](https://meta.discourse.org/u/Jose_C_Gomez)
#### Post date: [30 يونيو 2017، 6:19م UTC](https://meta.discourse.org/t/error-when-pressing-send-activitation-email-when-must-approve-users-setting-is-enabled/65408/1 "2017-06-30T18:19:30Z")

</div>

Getting the following error when clicking Send Activation Email to a new user

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

---

<div class="post-metadata">

### Author: ![Jose\_C\_Gomez](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jose_c_gomez/32/137297_2.png) [@Jose\_C\_Gomez](https://meta.discourse.org/u/Jose_C_Gomez)
#### Post date: [30 يونيو 2017، 6:22م UTC](https://meta.discourse.org/t/error-when-pressing-send-activitation-email-when-must-approve-users-setting-is-enabled/65408/2 "2017-06-30T18:22:19Z")

</div>

Version v1.9.0.beta2 +107

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [30 يونيو 2017، 10:42م UTC](https://meta.discourse.org/t/error-when-pressing-send-activitation-email-when-must-approve-users-setting-is-enabled/65408/3 "2017-06-30T22:42:33Z")

</div>

Can you repro this @techapj?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [3 يوليو 2017، 9:03ص UTC](https://meta.discourse.org/t/error-when-pressing-send-activitation-email-when-must-approve-users-setting-is-enabled/65408/4 "2017-07-03T09:03:44Z")

</div>

I cannot repro this on [https://try.discourse.org](https://try.discourse.org).

@Jose_C_Gomez make sure you are running on latest Discourse version. Also, do you see any relevant error in `/logs` ?

---

<div class="post-metadata">

### Author: ![Jose\_C\_Gomez](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jose_c_gomez/32/137297_2.png) [@Jose\_C\_Gomez](https://meta.discourse.org/u/Jose_C_Gomez)
#### Post date: [3 يوليو 2017، 2:33م UTC](https://meta.discourse.org/t/error-when-pressing-send-activitation-email-when-must-approve-users-setting-is-enabled/65408/5 "2017-07-03T14:33:16Z")

</div>

I upgraded to v1.9.0.beta2 +238 Latest  
Still getting the same error

 ![](https://global.discourse-cdn.com/meta/original/3X/9/e/9ebc6ffdde54242b24c7baa837fffc2afd627bb5.png)

Only thing I see in logs is this but it appears to be related to a plug in

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

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [4 يوليو 2017، 8:02ص UTC](https://meta.discourse.org/t/error-when-pressing-send-activitation-email-when-must-approve-users-setting-is-enabled/65408/6 "2017-07-04T08:02:28Z")

</div>

Okay, I can repro this issue with `must approve users` site setting enabled. Working on a fix now.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [4 يوليو 2017، 8:32ص UTC](https://meta.discourse.org/t/error-when-pressing-send-activitation-email-when-must-approve-users-setting-is-enabled/65408/8 "2017-07-04T08:32:58Z")

</div>

When `must approve user` site setting is enabled, resending activation email is not allowed as per:

[https://github.com/discourse/discourse/commit/b584264d8280779e211a511486a067acd3fb8be5](https://github.com/discourse/discourse/commit/b584264d8280779e211a511486a067acd3fb8be5)

I just pushed a [fix](https://github.com/discourse/discourse/commit/c243861b172ec742e22f0c07bfc20ffa5a9e04ad) to hide “Send Activation Email” button if `must_approve_users` setting is enabled, to avoid confusion.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4 يوليو 2017، 8:43م UTC](https://meta.discourse.org/t/error-when-pressing-send-activitation-email-when-must-approve-users-setting-is-enabled/65408/9 "2017-07-04T20:43:03Z")

</div>


