<p><code>_category</code> can only be viewed if it's included in another file, because of the underscore. A twig file with an underscore cannot be loaded directly via the URL.</p>

<p>You may also read <a href="https://startingcraft.com/articles/what-is-with-the-underscore-in-twig-template-filenames" rel="nofollow noreferrer">What is with the underscore in twig template filenames?</a> or <a href="https://docs.craftcms.com/v3/dev/#template-paths" rel="nofollow noreferrer">hidden templates</a> from the Craft Docu.</p>

CC BY-SA 4.0
2019-11-25T13:58:43.553Z
Work on my local dev version fine so not sure that is the issue :)
Dan Lee
CC BY-SA 4.0
2019-11-25T14:00:45.773Z
Yes I get the same issue when removing the underscore and adjusting the name in the category settings.
Dan Lee
CC BY-SA 4.0
2019-11-25T14:11:17.410Z
strange - Maybe because of the dash?
Christopher Dosin
CC BY-SA 4.0
2019-11-25T14:15:56.717Z
All the other files in that directory are working without issue
Dan Lee
CC BY-SA 4.0
2019-11-26T08:59:07.230Z
Bizzar - I'm doing tests with other files - uploading them to the server. They are not getting picked up as existing.
Dan Lee
CC BY-SA 4.0
2019-11-26T10:56:57.317Z
Did you check if these files permissions are correct?
Romain P.
CC BY-SA 4.0
2019-11-26T11:01:27.203Z
Looks like we moved the droplet and were uploading files to the wrong location!
Dan Lee
CC BY-SA 4.0
2019-11-25T13:46:28.510Z
2019-11-25T14:10:29.303Z
2019-11-25T14:10:29.303Z
Christopher Dosin
<p>I am getting a Template not found error.</p>

<pre><code>Template not found error: case-studies/_category
</code></pre>

<p>However the template does exist (see screenshot).</p>

<p><a href="https://i.sstatic.net/dryIY.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/dryIY.png" alt="enter image description here"></a></p>

<p>I have tried clearing the template cache but still the issues perssits.</p>

<p><strong>Update</strong></p>

<p>I'm doing tests with other files - like image files - uploading them to the server. They are not getting picked up as existing and throw up 404 errors. </p>

<p><strong>Update - Fixed</strong></p>

<p>Looks like we moved the server droplet and were uploading files to the wrong location. </p>

<craft3>
Template not found error when template file does exist
# Template not found error when template file does exist

(Asked by: username_0 on 2019-11-25)

I am getting a Template not found error.
Template not found error: case-studies/_category

However the template does exist (see screenshot).

I have tried clearing the template cache but still the issues perssits.
Update
I'm doing tests with other files - like image files - uploading them to the server. They are not getting picked up as existing and throw up 404 errors. 
Update - Fixed
Looks like we moved the server droplet and were uploading files to the wrong location.

**Tags:** craft3

---

## 1 answers

### Answer by username_1 on 2019-11-25. Score: 2 | Accepted answer

`_category` can only be viewed if it's included in another file, because of the underscore. A twig file with an underscore cannot be loaded directly via the URL.

You may also read [What is with the underscore in twig template filenames?](https://startingcraft.com/articles/what-is-with-the-underscore-in-twig-template-filenames) or [hidden templates](https://docs.craftcms.com/v3/dev/#template-paths) from the Craft Docu.

> **Comments:**
> **username_0**: Work on my local dev version fine so not sure that is the issue :)  
> **username_0**: Yes I get the same issue when removing the underscore and adjusting the name in the category settings.  
> **username_1**: strange - Maybe because of the dash?  
> **username_0**: All the other files in that directory are working without issue  
> **username_0**: Bizzar - I'm doing tests with other files - uploading them to the server. They are not getting picked up as existing.  
> **username_2**: Did you check if these files permissions are correct?  
> **username_0**: Looks like we moved the droplet and were uploading files to the wrong location!  

---

