# Old user suspension reasons have gone missing

**URL:** https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305
**Category:** Bug
**Created:** [December 31, 2015, 5:42am UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305 "2015-12-31T05:42:12Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [December 31, 2015, 5:42am UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/1 "2015-12-31T05:42:12Z")

</div>

Not going to post a full report here, as I have no repro steps or real details, but I just noticed that `Reason` field for suspended users has gone blank. I have no date as to when this occurred, but we have 3 suspended users on our instance and at least 2 of them has suspension reasons the last time I viewed their profile. It is not listed on their public profile, nor on their admin page.

---

<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: [December 31, 2015, 6:21am UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/2 "2015-12-31T06:21:36Z")

</div>

Probably a bug based on reorganizing the user page @sam.

---

<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: [December 31, 2015, 6:40am UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/3 "2015-12-31T06:40:15Z")

</div>

Not able to repro this on latest version.

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

Also, relevant code looks OK to me.. 😕

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [December 31, 2015, 6:42am UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/4 "2015-12-31T06:42:54Z")

</div>

Here’s one of ours (could this be another admin vs moderator issue? I am a mod, not admin…):

> **[EpicDwarf](https://discourse.stonehearth.net/users/epicdwarf/activity)**
>
> Hello there! smiley 
> 
> I am EpicDwarf. I am a gamer and a regular forumer. thumbsup   
> 
> I am also learning to create things like animations and such. rainbow

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

I am about 95% certain that it used to say “Banned for repeated violations” or something to that effect.

---

<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: [December 31, 2015, 6:56am UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/5 "2015-12-31T06:56:21Z")

</div>

> [@jomaxro](#):
>
> could this be another admin vs moderator issue?

Just verified locally that moderator is also able to view suspension reason.

As an admin when I visit: [http://discourse.stonehearth.net/admin/users/epicdwarf](http://discourse.stonehearth.net/admin/users/epicdwarf) – I am not able to view the suspension reason either, so I am sure this is not a user page issue.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [December 31, 2015, 6:58am UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/6 "2015-12-31T06:58:12Z")

</div>

> [@techAPJ](#):
>
> As an admin when I visit: [http://discourse.stonehearth.net/admin/users/epicdwarf](http://discourse.stonehearth.net/admin/users/epicdwarf) – I am not able to view the suspension reason either, so I am sure this is not a user page issue.

Agreed, I don’t see the reason on either page. I am going to PM the admin who suspended the user to see if she remembers. Mind if I include you on the PM (over on my site)?

---

<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: [December 31, 2015, 6:59am UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/7 "2015-12-31T06:59:02Z")

</div>

> [@jomaxro](#):
>
> Mind if I include you on the PM (over on my site)?

Sure, go ahead! 🙂

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [January 1, 2016, 4:14am UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/8 "2016-01-01T04:14:30Z")

</div>

@techAPJ, I have confirmed that at least one of the users definitely had a suspension reason previously.

Happy New Year!

---

<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: [January 5, 2016, 3:21am UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/9 "2016-01-05T03:21:47Z")

</div>

So this only happens for uses who are suspended multiple times?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [January 5, 2016, 3:26am UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/10 "2016-01-05T03:26:35Z")

</div>

No. They were only suspended once (to the best of my knowledge). All of the users suspended (3 of them) were essentially suspended indefinitely (over 40 years each). I can add you to the PM over at Stonehearth if you would like…

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 7, 2016, 11:09am UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/11 "2016-01-07T11:09:19Z")

</div>

Is there any way you can reproduce this issue even on your site (create a sock puppet?)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [January 7, 2016, 4:21pm UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/12 "2016-01-07T16:21:18Z")

</div>

I’m honestly not sure. I can certainly try creating a user and suspending it, but seeing as I have no idea when their suspension reasons disappeared, I am not sure it will work. Will try later today…

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [January 7, 2016, 10:51pm UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/13 "2016-01-07T22:51:32Z")

</div>

I can confirm this bug exists.

On April 17th 2015 I took a screenshot of a suspended user’s public profile with the specific reason “`Use of multiple accounts detected`”. The user was at that time given a many year suspension until the year 2289.

I’ll have to hide the username and other content but this is what it looked at the time (April 2015):

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

And this is what it looks like now:

 ![](https://global.discourse-cdn.com/meta/original/3X/3/2/329125336dba6b15c04a22e6ca4deb90ee724303.png)

Additionally in the admin section the reason is not shown:

 ![](https://global.discourse-cdn.com/meta/original/3X/1/d/1d49f4d51b9f0bd73b0f9df0f12fcafe06814cee.png)

This user has been suspended once, no other action has been taken against this account.

There are no additional plugins installed in this Discourse instance.

Standard updates applied, currently running `Discourse 1.5.0.beta7 - version 0e2ded278db74c7446af83cc39bb5cd66ee50fda`.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 7, 2016, 11:15pm UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/14 "2016-01-07T23:15:15Z")

</div>

I am wondering if this is an open bug or a messed up migration, can you repro?

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [January 7, 2016, 11:25pm UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/15 "2016-01-07T23:25:03Z")

</div>

I am unable to repro.

###This is what I tried

1. Created new user account.
2. Suspended that user account for 1000 days with message “Suspended user test”

###Results - works as expected

- On suspension the user was successfully automatically logged out.
- Admin page looks like this: ![](https://global.discourse-cdn.com/meta/original/3X/6/d/6df8b15b9f62d16539dc8bbe101708b1dd2323e2.png)
- Public profile page for admin looks like this: ![](https://global.discourse-cdn.com/meta/original/3X/1/7/17f76de4aa434356b7c40a98751d8e67ab01b072.png)
- Public profile page for unauthenticated user looks like this: ![](https://global.discourse-cdn.com/meta/original/3X/2/d/2de2a35eb9c5591c7f9805c08f721baee94fa1e2.png)

---

<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: [January 7, 2016, 11:25pm UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/16 "2016-01-07T23:25:50Z")

</div>

Has to be a migration artifact. So in that case @jomaxro the workaround is to unsuspend the user, then re-suspend them.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [January 7, 2016, 11:26pm UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/17 "2016-01-07T23:26:49Z")

</div>

> [@codinghorror](#):
>
> Has to be a migration artifact.

A migration artifact from what? A Discourse update?

---

<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: [January 7, 2016, 11:27pm UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/18 "2016-01-07T23:27:30Z")

</div>

Assuming you don’t have dozens of long-term suspended users 😉 the easiest quick fix is to unsuspend and re-suspend the (I am assuming) one or two users this applies to.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [January 7, 2016, 11:28pm UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/19 "2016-01-07T23:28:27Z")

</div>

I wonder when this began because we have a TON (more than 200, probably more than 500) of suspended users and I’d hate to see those reasons go. So if you wanted, you could probably take a backup of our instance and run it through a migration to see what happens when you update it to latest.

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [January 7, 2016, 11:28pm UTC](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305/20 "2016-01-07T23:28:53Z")

</div>

I have well over 100 in one instance - but that doesn’t bother me.

Question: I take it there are no email notifications when a user is un-suspended / suspended again?

[Next page](https://meta.discourse.org/t/old-user-suspension-reasons-have-gone-missing/37305.md?page=2)
