<p>You can connect to your database and run:</p>

<pre><code>SELECT * FROM craft_elements_i18n WHERE slug = 'forms';
</code></pre>

<p>to see what other element is already using the slug <code>forms</code>.</p>

<p>To see what type of element it is (Entry, Asset, etc.), cross reference the <code>elementId</code> column of the result with the <code>id</code> column in the <code>craft_elements</code> table.</p>

CC BY-SA 4.0
2019-11-26T07:06:27.473Z
Note: If you're using Craft 3, the table you need to search it "craft_elements_sites". So the query would be `SELECT * FROM craft_elements_sites WHERE slug = 'forms';`
Alex Roper
CC BY-SA 3.0
2016-04-26T17:49:56.517Z
2016-04-26T17:49:56.517Z
Brad Bell
<p>Each time I try to rename a slug within an entry, the page refreshes, but the slug is getting a <code>-1</code> appended.</p>

<p>The slug I want is: <code>forms</code>. The slug I get after saving is: <code>forms-1</code>.</p>

<p>I've checked through all the other entries and there's no duplicate slug.</p>

<p>Any ideas?</p>

CC BY-SA 3.0
2016-04-26T15:01:50.697Z
Im pretty sure that craft will do this by default since you aren't using a dynamic slug like `{title}` or `{id}`
mcclaskiem
CC BY-SA 3.0
2016-04-26T15:18:12.297Z
But I _can_ manually update the slug to `forms-something-else`, but not just `forms`.
Matt Ellis
CC BY-SA 3.0
2016-04-26T16:03:44.460Z
Is forms the name of the section?
mcclaskiem
<entries><entry><slug><saveentry>
Can't rename slug
# Can't rename slug

(Asked by: username_0 on 2016-04-26)

Each time I try to rename a slug within an entry, the page refreshes, but the slug is getting a `-1` appended.

The slug I want is: `forms`. The slug I get after saving is: `forms-1`.

I've checked through all the other entries and there's no duplicate slug.

Any ideas?

**Tags:** entries, entry, slug, saveentry
> **Comments:**
> **username_1**: Im pretty sure that craft will do this by default since you aren't using a dynamic slug like `{title}` or `{id}`  
> **username_0**: But I _can_ manually update the slug to `forms-something-else`, but not just `forms`.  
> **username_1**: Is forms the name of the section?  

---

## 1 answers

### Answer by username_2 on 2016-04-26. Score: 3 | Accepted answer

You can connect to your database and run:
SELECT * FROM craft_elements_i18n WHERE slug = 'forms';

to see what other element is already using the slug forms.
To see what type of element it is (Entry, Asset, etc.), cross reference the elementId column of the result with the id column in the craft_elements table.

> **Comments:**
> **username_3**: Note: If you're using Craft 3, the table you need to search it "craft_elements_sites". So the query would be `SELECT * FROM craft_elements_sites WHERE slug = 'forms';`  

---

