# "Move to existing topic" admin feature not working \[now fixed\]

**URL:** https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017
**Category:** Bug
**Created:** [May 29, 2019, 5:35pm UTC](https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017 "2019-05-29T17:35:50Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [May 29, 2019, 5:35pm UTC](https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017/1 "2019-05-29T17:35:50Z")

</div>

When attempting to merge posts into an existing topic, nothing happens when clicking “Move to Existing Topic”

An error is visible in the JS console:

```plaintext
Uncaught TypeError: Cannot read property 'forEach' of undefined at n.performMove

```

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [May 29, 2019, 5:42pm UTC](https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017/2 "2019-05-29T17:42:10Z")

</div>

Can you try to update to latest? I think I fixed this.

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [May 29, 2019, 5:54pm UTC](https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017/3 "2019-05-29T17:54:17Z")

</div>

Still not working after upgrade I’m afraid.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [May 29, 2019, 5:54pm UTC](https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017/4 "2019-05-29T17:54:52Z")

</div>

Ok will look later today

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [May 29, 2019, 8:45pm UTC](https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017/5 "2019-05-29T20:45:07Z")

</div>

can you tell me exactly what commit your forum is on right now please ?

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [May 29, 2019, 9:12pm UTC](https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017/6 "2019-05-29T21:12:05Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/d/a/da3b1611297283f2ec53b2851f09fae7cb4080d8.jpeg)

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [May 29, 2019, 9:14pm UTC](https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017/7 "2019-05-29T21:14:38Z")

</div>

This is not latest, you don’t have:  
[https://github.com/discourse/discourse/commit/034502af2138aaf1e3a847ffcdc3f07ec83bbb6b](https://github.com/discourse/discourse/commit/034502af2138aaf1e3a847ffcdc3f07ec83bbb6b)

Sorry I wasn’t on my computer, maybe our CI was blocked on some test for a moment, and took time to get this commit in tests-passed. It’s definitely in now and should fix your issue.

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [May 29, 2019, 9:31pm UTC](https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017/8 "2019-05-29T21:31:43Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/4/1/4184e98154eb35bd94c8d442b6e281702b9f0355.jpeg)

😬

Will try a rebuild at the CLI

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [May 29, 2019, 9:38pm UTC](https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017/9 "2019-05-29T21:38:24Z")

</div>

Tried a restart (not yet rebuild), didn’t help.

This is the error in `production.log`:

```plaintext
Started GET "/" for 82.44.224.199 at 2019-05-29 21:36:38 +0000
Processing by ListController#latest as HTML
Completed 500 Internal Server Error in 690ms (ActiveRecord: 0.0ms)
NoMethodError (undefined method `url' for nil:NilClass)
/var/www/discourse/plugins/poll/plugin.rb:441:in `block (3 levels) in activate!'

```

I notice the poll plugin has been recently changed. Any idea what might be wrong, @nbianca / @zogstrip ?

[https://github.com/discourse/discourse/commit/227c45107df6b1d6aa43b624fe59995bcb2db73d#diff-170edb1ef99339086c2d8d1c2b264e90](https://github.com/discourse/discourse/commit/227c45107df6b1d6aa43b624fe59995bcb2db73d#diff-170edb1ef99339086c2d8d1c2b264e90)

I’m currently trying a rebuild to see if this helps

**Update** this didn’t help. Forum still dead… ideas please anyone?! 😭

**Update** I entered the Docker container and did the following:

```plaintext
mv /var/www/discourse/plugins/poll /tmp
exit
./launcher restart app

```

This seems to have got the forum working, although polls are now not rendering properly.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [May 29, 2019, 10:01pm UTC](https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017/10 "2019-05-29T22:01:29Z")

</div>

Definitely related to this commit.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [May 29, 2019, 10:03pm UTC](https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017/11 "2019-05-29T22:03:12Z")

</div>

Sorry about that. Can you try again once [FIX: reduce poll when post is nil · discourse/discourse@a188d15 · GitHub](https://github.com/discourse/discourse/commit/a188d15b08dac322c074b4ee9de6269ec6cc3fe2) gets on the `test-passed` branch?

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [May 29, 2019, 10:03pm UTC](https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017/12 "2019-05-29T22:03:30Z")

</div>

> [@j.jaffeux](#):
>
> Definitely related to this commit.

In particular, here:

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

I wouldn’t rule out the possibility of data corruption on my forum though…

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [May 29, 2019, 10:06pm UTC](https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017/13 "2019-05-29T22:06:47Z")

</div>

> [@zogstrip](#):
>
> Sorry about that. Can you try again once [FIX: reduce poll when post is nil · discourse/discourse@a188d15 · GitHub](https://github.com/discourse/discourse/commit/a188d15b08dac322c074b4ee9de6269ec6cc3fe2) gets on the `test-passed` branch?

Thanks. I’ll await the fix on `tests-passed` 👍

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [May 29, 2019, 10:22pm UTC](https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017/14 "2019-05-29T22:22:17Z")

</div>

> [@zogstrip](#):
>
> Can you try again once [FIX: reduce poll when post is nil · discourse/discourse@a188d15 · GitHub](https://github.com/discourse/discourse/commit/a188d15b08dac322c074b4ee9de6269ec6cc3fe2) gets on the `test-passed` branch?

That has fixed it for me. Thanks for the very quick turnaround on this issue

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [May 29, 2019, 10:25pm UTC](https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017/15 "2019-05-29T22:25:39Z")

</div>

> [@j.jaffeux](#):
>
> It’s definitely in now and should fix your issue.

Can confirm, this has fixed the issue with merging topics. Many thanks Joffrey 👍

---

<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: [May 30, 2019, 2:23am UTC](https://meta.discourse.org/t/move-to-existing-topic-admin-feature-not-working-now-fixed/119017/16 "2019-05-30T02:23:41Z")

</div>


