# \[Error\] Can't create a tag on post due to Tickets plugin

**URL:** https://meta.discourse.org/t/error-cant-create-a-tag-on-post-due-to-tickets-plugin/225127
**Category:** Support
**Created:** [April 24, 2022, 2:34am UTC](https://meta.discourse.org/t/error-cant-create-a-tag-on-post-due-to-tickets-plugin/225127 "2022-04-24T02:34:41Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![AntiMetaman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/antimetaman/32/186978_2.png) [@AntiMetaman](https://meta.discourse.org/u/AntiMetaman)
#### Post date: [April 24, 2022, 2:34am UTC](https://meta.discourse.org/t/error-cant-create-a-tag-on-post-due-to-tickets-plugin/225127/1 "2022-04-24T02:34:41Z")

</div>

My forum recently does not allow me to add a tag. It says internal error after the update.

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

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/8/3/283da569b1ab85cf5e592944154b5450a3be33e9.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/b/7/6b7211eb05a90499b444a8386f8a4c3721df415f.jpeg)

I have no required tag groups.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [April 24, 2022, 6:25am UTC](https://meta.discourse.org/t/error-cant-create-a-tag-on-post-due-to-tickets-plugin/225127/2 "2022-04-24T06:25:53Z")

</div>

This happened to me on my test site yesterday. Unfortunately I didn’t check for errors in the console for a repro before I did a `./launcher rebuild app`. However, a rebuild fixed it for me. 👍

---

<div class="post-metadata">

### Author: ![AntiMetaman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/antimetaman/32/186978_2.png) [@AntiMetaman](https://meta.discourse.org/u/AntiMetaman)
#### Post date: [April 24, 2022, 7:26pm UTC](https://meta.discourse.org/t/error-cant-create-a-tag-on-post-due-to-tickets-plugin/225127/3 "2022-04-24T19:26:13Z")

</div>

No I still have the error even after a rebuild. Here is the backtrace of the error log.

```plaintext
NoMethodError (undefined method `id' for #<Array:0x00007f86479e85e8>) app/controllers/tags_controller.rb:249:in `search' app/controllers/application_controller.rb:404:in `block in with_resolved_locale

```

```plaintext
Message (149 copies reported)

NoMethodError (undefined method `id' for #<Array:0x00007f86479e85e8>)
app/controllers/tags_controller.rb:249:in `search'
app/controllers/application_controller.rb:404:in `block in with_resolved_locale'
app/controllers/application_controller.rb:404:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:368:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:202:in `call'

Backtrace

plugins/discourse-tickets/plugin.rb:47:in `block in filter_allowed_tags'
plugins/discourse-tickets/plugin.rb:47:in `select'
plugins/discourse-tickets/plugin.rb:47:in `filter_allowed_tags'
app/controllers/tags_controller.rb:249:in `search'
plugins/discourse-custom-wizard/lib/custom_wizard/extensions/tags_controller.rb:7:in `search'
actionpack (6.1.4.7) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
actionpack (6.1.4.7) lib/abstract_controller/base.rb:228:in `process_action'
actionpack (6.1.4.7) lib/action_controller/metal/rendering.rb:30:in `process_action'
actionpack (6.1.4.7) lib/abstract_controller/callbacks.rb:42:in `block in process_action'
activesupport (6.1.4.7) lib/active_support/callbacks.rb:117:in `block in run_callbacks'

Env

HTTP HOSTS: forum.duelistsunite.org

```

Seems to be a problem with discourse tickets. I’ll remove that and rebuild.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [April 24, 2022, 7:58pm UTC](https://meta.discourse.org/t/error-cant-create-a-tag-on-post-due-to-tickets-plugin/225127/4 "2022-04-24T19:58:40Z")

</div>

Hmmm. Yes. Now you mention it… I did actually remove that plugin during my rebuild as a ‘while I was there’ job, but didn’t click it was connected. In hindsight, that would have been useful information to share. 🤦‍♂️

---

<div class="post-metadata">

### Author: ![AntiMetaman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/antimetaman/32/186978_2.png) [@AntiMetaman](https://meta.discourse.org/u/AntiMetaman)
#### Post date: [April 24, 2022, 8:38pm UTC](https://meta.discourse.org/t/error-cant-create-a-tag-on-post-due-to-tickets-plugin/225127/5 "2022-04-24T20:38:58Z")

</div>

It works now after rebuilding without discourse tickets.

---

<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: [April 26, 2022, 2:18am UTC](https://meta.discourse.org/t/error-cant-create-a-tag-on-post-due-to-tickets-plugin/225127/6 "2022-04-26T02:18:56Z")

</div>

@angus should we move [Tickets Plugin 🎟](https://meta.discourse.org/t/tickets-plugin/97914) to #plugin:broken-plugin ?

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [April 26, 2022, 7:14am UTC](https://meta.discourse.org/t/error-cant-create-a-tag-on-post-due-to-tickets-plugin/225127/8 "2022-04-26T07:14:17Z")

</div>

Yes, I think that’s appropriate. I’ve moved it. It’ll motivate me to fix it.

---

<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 26, 2022, 7:15am UTC](https://meta.discourse.org/t/error-cant-create-a-tag-on-post-due-to-tickets-plugin/225127/9 "2022-05-26T07:15:17Z")

</div>

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