Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-25T13:58:43.553Z
Answers.Text: Work on my local dev version fine so not sure that is the issue :)
Answers.UserDisplayName: Dan Lee
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-25T14:00:45.773Z
Answers.Text: Yes I get the same issue when removing the underscore and adjusting the name in the category settings.
Answers.UserDisplayName: Dan Lee
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-25T14:11:17.410Z
Answers.Text: strange - Maybe because of the dash?
Answers.UserDisplayName: Christopher Dosin
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-25T14:15:56.717Z
Answers.Text: All the other files in that directory are working without issue
Answers.UserDisplayName: Dan Lee
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-26T08:59:07.230Z
Answers.Text: Bizzar - I'm doing tests with other files - uploading them to the server. They are not getting picked up as existing.
Answers.UserDisplayName: Dan Lee
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-26T10:56:57.317Z
Answers.Text: Did you check if these files permissions are correct?
Answers.UserDisplayName: Romain P.
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-26T11:01:27.203Z
Answers.Text: Looks like we moved the droplet and were uploading files to the wrong location!
Answers.UserDisplayName: Dan Lee
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-25T13:46:28.510Z
Answers.LastActivityDate: 2019-11-25T14:10:29.303Z
Answers.LastEditDate: 2019-11-25T14:10:29.303Z
Answers.UserDisplayName: Christopher Dosin
Body: <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>
  
Tags: <craft3>
Title: Template not found error when template file does exist
ThreadText: # 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).
  
  [![enter image description here](https://i.sstatic.net/dryIY.png)](https://i.sstatic.net/dryIY.png)
  
  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!  
  
  ---
  
  