# Like button does not work on archived topics

**URL:** https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822
**Category:** Bug
**Tags:** reactions
**Created:** [July 24, 2022, 11:10pm UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822 "2022-07-24T23:10:33Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [July 24, 2022, 11:10pm UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/1 "2022-07-24T23:10:33Z")

</div>

The title explaisn its self. When I lcikc the like button I get the animation but nothing else.  
Video:

  
I dont see anything in /logs relating to this, but here’s a console error.  
 ![image](https://global.discourse-cdn.com/meta/original/4X/4/8/d/48df9612735236a37fd4cb752eefc903852b70ca.png)

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [July 24, 2022, 11:16pm UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/2 "2022-07-24T23:16:44Z")

</div>

If you try in [safe mode](https://meta.discourse.org/t/53504?silent=true) does liking posts work?

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [July 24, 2022, 11:17pm UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/3 "2022-07-24T23:17:56Z")

</div>

I dont see the like button at all.

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/7/9/779f19eef2eb7c961f9ebec53c971c96b0d15260.png)

---

<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: [July 24, 2022, 11:46pm UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/4 "2022-07-24T23:46:38Z")

</div>

Can you reproduce this on meta? What plugins do you have in place? Are you on latest?

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [July 24, 2022, 11:48pm UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/5 "2022-07-24T23:48:27Z")

</div>

I am on the latest build, and here’s a list of my plugins:

> [@Problem with post revisions after updating to 2.8.6 stable or 2.9.0.beta7](https://meta.discourse.org/t/problem-with-post-revisions-after-updating-to-2-8-6/232885/22):
>
> Plugins: Discourse-Akismet Discourse Apple Login Discourse BCC Discourse Cakeday Discourse Calendar Discourse Chat Discourse Custom Wizard Discourse follow Discourse Gamification Discourse Mate Discourse Microsoft login Discourse ImgFlip Discourse Promethehus Discourse Ratings Discourse Solved Discourse Spoiler Discourse Steam Login Discourse Tickets Discourse Userr Network Discourse User Notes Discourse Voting Discourse QA Discourse Who’s online Discourse Yearly Review …

I dont know what it is about that post in specific. I can like most any other posts, but that one just wont let me, so I cant do it on meta withotu knowing what causes it.

---

<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: [July 24, 2022, 11:50pm UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/6 "2022-07-24T23:50:24Z")

</div>

Maybe you liked and unliked it in the past? so it is an “old” post and you are no longer allowed to change your mind?

Maybe a side effect of the post revision issues?

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [July 24, 2022, 11:52pm UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/7 "2022-07-24T23:52:25Z")

</div>

The post was pretty new when I had made the video because I tried to like it. I hadn’t unliked it, and the unlike timer on ym site is 48 hours.

---

<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: [July 24, 2022, 11:53pm UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/8 "2022-07-24T23:53:29Z")

</div>

Can you try reproducing with a shadow account? Maybe this is something about moderator posts?

Turning this into a mod post… (this now has staff color, can you like it)

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [July 24, 2022, 11:53pm UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/9 "2022-07-24T23:53:52Z")

</div>

As I see in the video, you archived the topic, I think that’s what caused it.

---

<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: [July 24, 2022, 11:54pm UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/10 "2022-07-24T23:54:17Z")

</div>

Oh … yeah … archived topics have this surprising bug… for sure.

---

<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: [July 24, 2022, 11:56pm UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/12 "2022-07-24T23:56:20Z")

</div>

Yeah moved this back to bug.

#pr-welcome for adding a popup (when you try to like)

> This topic is archived and can no longer be liked

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [July 24, 2022, 11:56pm UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/13 "2022-07-24T23:56:53Z")

</div>

I would, I just need to read up on some ruby. How can I create pop ups?

---

<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: [July 24, 2022, 11:57pm UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/14 "2022-07-24T23:57:53Z")

</div>

We have some internal class for it, recommend you look at another pop up warning in the UI (like out of likes), this would all be done in JS actually.

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [July 24, 2022, 11:58pm UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/15 "2022-07-24T23:58:18Z")

</div>

I know JS, will have a look and update you guys latertonight. Thanks 👍

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [July 25, 2022, 12:01am UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/16 "2022-07-25T00:01:56Z")

</div>

I just tested it on my test site. When I archive the topic the like button still appear and clicking that the warn modal shows. If I reload the page the like button disappear.

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [July 25, 2022, 12:03am UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/17 "2022-07-25T00:03:07Z")

</div>

Weird, how do I have it after refreshing multiple times?

---

<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: [July 25, 2022, 12:03am UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/18 "2022-07-25T00:03:08Z")

</div>

did you try as admin? standard user? maybe something about the type of account. I remember seeing this on another topic on our internal instance.

Also … not first post?

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [July 25, 2022, 12:11am UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/20 "2022-07-25T00:11:23Z")

</div>

The previous was admin account and now I tried with a tl3 non-staff account.  
Edit: I checked with all account type and it seems to the modal works for me.

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [July 25, 2022, 12:26am UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/22 "2022-07-25T00:26:45Z")

</div>

Turns out this is an issue with the reactions plugin, which is still na official plugin. I will open a PR to it later.

I will also change the text in core discourse, as the text doesn’t really mean anythign atm

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [July 25, 2022, 12:45am UTC](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822/23 "2022-07-25T00:45:39Z")

</div>

Yep, I can repro it with Discourse Reactions plugin. After I archive the topic the like button still appear and clicking that, there is no warning modal and it seems the other reactions still active until I reload the page. After I reload the topic is broke.

The following error in console:

`Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'canToggle')`

[Next page](https://meta.discourse.org/t/like-button-does-not-work-on-archived-topics/233822.md?page=2)
