<p>For development in general, when something isn't working it's important to look at the output and errors you're getting in order to figure out what's going wrong. In most cases, the error message will tell you exactly what isn't working and you can figure out what to do from there.</p>
<p>In this case, the error message is pretty clear:</p>
<blockquote>
<p>Template not found: blog/_entry</p>
</blockquote>
<p>This tells you that Craft is trying to render the blog entry using the template you have configured for this section in the settings, but the template doesn't exist. The solution, then, is to create that template. Try creating the file <code>templates/blog/_entry.twig</code> in your project. For starters, just output the entry title to ensure it's working:</p>
<pre><code>{# templates/blog/_entry.twig #}
&lt;h1&gt;{{ entry.title }}&lt;/h1&gt;
</code></pre>
<p>Then reload the page. You should see the title of your blog post. Then you can further develop your template. Follow the <a href="https://craftcms.com/docs/getting-started-tutorial/build/templates.html" rel="nofollow noreferrer">guide for creating templates</a> to learn some best practices and common template structures.</p>

CC BY-SA 4.0
2021-09-15T07:38:52.803Z
2021-09-15T07:38:52.803Z
MoritzLost
<p>I’ve followed Craft’s instructions to set up the blog: <a href="https://craftcms.com/docs/getting-started-tutorial/configure/section.html" rel="nofollow noreferrer">https://craftcms.com/docs/getting-started-tutorial/configure/section.html</a></p>
<p>When I  published my first article, it returned a 404 error – see here: <a href="https://myvenue.com/blog/myvenue-scores-home-run-with-monarchs" rel="nofollow noreferrer">https://myvenue.com/blog/myvenue-scores-home-run-with-monarchs</a></p>
<p>Has anyone encountered and resolved this issue before?</p>

CC BY-SA 4.0
2021-09-15T03:19:55.970Z
Sounds like you just need to proceed through [a few more steps](https://craftcms.com/docs/getting-started-tutorial/build/templates.html#create-a-layout) in the Guide! Craft allows you to design your content architecture and add data, but it doesn't know how to display anything until you provide it some templates. Keep reading (all the way through the “Create Templates” section), and I bet you'll be able to figure out what's missing! 
August Miller
CC BY-SA 4.0
2021-09-15T03:21:20.560Z
In case you want an immediate solution, this error is telling you that there's no file to render at `templates/blog/_entry.twig` in your project folder. Create that file with just `<h1>{{ entry.title }}</h1>` as its content and you should see your new post's title!
August Miller
<templating>
Blog pages returning HTTP 404 – Not Found – yii\web\NotFoundHttpException Template not found: blog/_entry
# Blog pages returning HTTP 404 – Not Found – yii\web\NotFoundHttpException Template not found: blog/_entry

(Asked by: username_0 on 2021-09-15)

I’ve followed Craft’s instructions to set up the blog: <https://craftcms.com/docs/getting-started-tutorial/configure/section.html>

When I published my first article, it returned a 404 error – see here: <https://myvenue.com/blog/myvenue-scores-home-run-with-monarchs>

Has anyone encountered and resolved this issue before?

**Tags:** templating

> **Comments:**
> **username_1**: Sounds like you just need to proceed through [a few more steps](https://craftcms.com/docs/getting-started-tutorial/build/templates.html#create-a-layout) in the Guide! Craft allows you to design your content architecture and add data, but it doesn't know how to display anything until you provide it some templates. Keep reading (all the way through the “Create Templates” section), and I bet you'll be able to figure out what's missing!   
> **username_1**: In case you want an immediate solution, this error is telling you that there's no file to render at `templates/blog/_entry.twig` in your project folder. Create that file with just `<h1>{{ entry.title }}</h1>` as its content and you should see your new post's title!  

---

## 1 answers

### Answer by username_2 on 2021-09-15. Score: 1

For development in general, when something isn't working it's important to look at the output and errors you're getting in order to figure out what's going wrong. In most cases, the error message will tell you exactly what isn't working and you can figure out what to do from there.
In this case, the error message is pretty clear:

Template not found: blog/_entry

This tells you that Craft is trying to render the blog entry using the template you have configured for this section in the settings, but the template doesn't exist. The solution, then, is to create that template. Try creating the file templates/blog/_entry.twig in your project. For starters, just output the entry title to ensure it's working:
{# templates/blog/_entry.twig #}
{{ entry.title }}

Then reload the page. You should see the title of your blog post. Then you can further develop your template. Follow the guide for creating templates to learn some best practices and common template structures.


---

