1

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

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.

2

_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? or hidden templates from the Craft Docu.

| improve this answer | |
  • Work on my local dev version fine so not sure that is the issue :) – Dan Lee Nov 25 '19 at 13:58
  • Yes I get the same issue when removing the underscore and adjusting the name in the category settings. – Dan Lee Nov 25 '19 at 14:00
  • strange - Maybe because of the dash? – Christopher Dosin Nov 25 '19 at 14:11
  • All the other files in that directory are working without issue – Dan Lee Nov 25 '19 at 14:15
  • Bizzar - I'm doing tests with other files - uploading them to the server. They are not getting picked up as existing. – Dan Lee Nov 26 '19 at 8:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.