# Can't create new tags?

**URL:** https://meta.discourse.org/t/cant-create-new-tags/47034
**Category:** Bug
**Created:** [July 9, 2016, 1:30pm UTC](https://meta.discourse.org/t/cant-create-new-tags/47034 "2016-07-09T13:30:58Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![iamntz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamntz/32/114670_2.png) [@iamntz](https://meta.discourse.org/u/iamntz)
#### Post date: [July 9, 2016, 1:30pm UTC](https://meta.discourse.org/t/cant-create-new-tags/47034/1 "2016-07-09T13:30:58Z")

</div>

Hey guys. I just realized that I can’t create a new tag.

It doesn’t work in any way:

- when composing new topic
- when editing topic
- when editing topic title & category.

I don’t think it’s a permission thing, since I tried to create them while I was logged in as admin.

There is no error log, in either `/logs` or console, just nothing happens when I press Enter in the tag popup:

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

I’m not sure when exactly the problem arised, but it’s pretty recent, because i have a new tag created just couple of days ago.

I’m up to date with everything:

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

* * *

Totally unrelated question: can I use wildcards on _staff tags_? I.e. `admin-*`?

Thanks!

---

<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: [July 9, 2016, 4:40pm UTC](https://meta.discourse.org/t/cant-create-new-tags/47034/2 "2016-07-09T16:40:35Z")

</div>

Can we repro this @techapj ? Any errors in your logs?

---

<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 10, 2016, 12:44am UTC](https://meta.discourse.org/t/cant-create-new-tags/47034/3 "2016-07-10T00:44:23Z")

</div>

Let me have a quick look, I had to change some stuff there for tag prefs

---

<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 10, 2016, 12:53am UTC](https://meta.discourse.org/t/cant-create-new-tags/47034/4 "2016-07-10T00:53:28Z")

</div>

I think this should fix it:

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

---

<div class="post-metadata">

### Author: ![iamntz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamntz/32/114670_2.png) [@iamntz](https://meta.discourse.org/u/iamntz)
#### Post date: [July 10, 2016, 6:15am UTC](https://meta.discourse.org/t/cant-create-new-tags/47034/5 "2016-07-10T06:15:28Z")

</div>

```plaintext
Uncaught TypeError: this.get is not a function

```

on this line:

```plaintext
if (!term.length || !this.get('allowCreate')) return;

```

I think it might be a problem of scoping?

---

<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 10, 2016, 6:47am UTC](https://meta.discourse.org/t/cant-create-new-tags/47034/6 "2016-07-10T06:47:21Z")

</div>

Apologies for the sloppiness, trying to rush a fix here and no proper access to my dev env

Try this:

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

---

<div class="post-metadata">

### Author: ![iamntz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamntz/32/114670_2.png) [@iamntz](https://meta.discourse.org/u/iamntz)
#### Post date: [July 10, 2016, 8:03am UTC](https://meta.discourse.org/t/cant-create-new-tags/47034/7 "2016-07-10T08:03:19Z")

</div>

Indeed it works! Thanks a lot!

---

<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 10, 2016, 8:06am UTC](https://meta.discourse.org/t/cant-create-new-tags/47034/8 "2016-07-10T08:06:26Z")

</div>


