<p>I am presuming Craft 3 because of composer, but you didn't say. </p>

<p>To start with look in your craft templates folder. I would suggest that you simply don't have the template that Craft is looking for. </p>

<p>If you visit the root of your site this is normally <code>templates/index.twig</code> make sure this is present and has no further includes in it (just until you get it working) </p>

<p>Also try looking in <code>storage/logs/web.log</code> for errors. </p>

CC BY-SA 4.0
2019-09-26T12:51:14.280Z
Yep. Craft 3.  macOS Catalina.  All my templates and my index.twig files are where they were.
Hellyar
CC BY-SA 4.0
2019-09-26T13:31:02.337Z
@Hellyar did you run migrations ? Not that I think that would cause those errors. What happens on your index page (site root)? What do the logs say ?
32423hjh32423
CC BY-SA 4.0
2019-09-29T21:27:22.650Z
No, I did not run migrations.  Error on index page is can't find layout
Hellyar
CC BY-SA 4.0
2019-09-29T21:27:34.620Z
Twig Template Loading Error – craft\web\twig\TemplateLoaderException

Unable to find the template “_layout” in "index" at line 1.  But it is where it should be
Hellyar
CC BY-SA 4.0
2019-09-26T09:18:27.693Z
2019-09-26T09:18:27.693Z
32423hjh32423
<p>Have not accessed my local .test sites in a bit.  I tried today.  I am getting a series of errors.   </p>

<p>At first I could not access any page to include the admin page.  I ran Composer update from the command line (within a site's directory) and then updated Craft from the command line (.\ craft update all).  I can now access the admin page and successfully login, but I am still getting errors trying to access the actual site's home page (or any page other than the admin page).</p>

<p><code>HTTP 404 – Not Found – yii\web\NotFoundHttpException</code>
<code>Template not found: login</code></p>

<p>All my templates are located here...(according to Finder)  <code>/Users/myname/Documents/Websites/mysite/templates/index.twig</code></p>

<p>Where should I start?</p>

<error-message><yii><error-templates>
Can access admin page (now), but not any site pages...yii not found http execption
# Can access admin page (now), but not any site pages...yii not found http execption

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

Have not accessed my local .test sites in a bit. I tried today. I am getting a series of errors.

At first I could not access any page to include the admin page. I ran Composer update from the command line (within a site's directory) and then updated Craft from the command line (.\ craft update all). I can now access the admin page and successfully login, but I am still getting errors trying to access the actual site's home page (or any page other than the admin page).

`HTTP 404 – Not Found – yii\web\NotFoundHttpException`
`Template not found: login`

All my templates are located here...(according to Finder) `/Users/myname/Documents/Websites/mysite/templates/index.twig`

Where should I start?

**Tags:** error-message, yii, error-templates


---

## 1 answers

### Answer by username_1 on 2019-09-26. Score: 1

I am presuming Craft 3 because of composer, but you didn't say.

To start with look in your craft templates folder. I would suggest that you simply don't have the template that Craft is looking for.

If you visit the root of your site this is normally `templates/index.twig` make sure this is present and has no further includes in it (just until you get it working)

Also try looking in `storage/logs/web.log` for errors.

> **Comments:**
> **username_0**: Yep. Craft 3.  macOS Catalina.  All my templates and my index.twig files are where they were.  
> **username_1**: @username_0 did you run migrations ? Not that I think that would cause those errors. What happens on your index page (site root)? What do the logs say ?  
> **username_0**: No, I did not run migrations.  Error on index page is can't find layout  
> **username_0**: Twig Template Loading Error – craft\web\twig\TemplateLoaderException  Unable to find the template “_layout” in "index" at line 1.  But it is where it should be  

---

