New installation: Page not found

Hello

I feel a little stupid right now: I created two sites for a new website: the default site for English and the second for German.

For both sites I selected the installed and enabled theme.

The theme consists of the file “default.htm”, which currently consists only of an HTML framework.

When I access the page I can expect a blank page. Instead, the message “Page Not Found” appears. The message comes from the CMS.

It’s probably some small mistake, but I don’t check it. Does anyone have any ideas?

Thanks

Cheers

Hey @martin.schaible

Did you use a URL prefix for the German site?

Hi @martin.schaible

can you share the content of your default.htm page here ?

Yes, i followed the instructions from the tutorial Video.

Hi @chris

This is the content:

<!doctype html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <meta name="author" content="{{ this.page.meta_author }}">
    <meta name="copyright" content="">
    <meta name="description" content="{{ this.page.meta_description }}">
    <meta name="keywords" itemprop="keywords" content="{{ this.page.meta_keywords }}">
    <meta name="robots" content="index"/>    
    
    <!-- Google Site Verification -->
    <meta name="google-site-verification" content="">
    
    <!-- Favicon -->

    <title>{{ this.page.title }} - The Greens Guest House</title>
</head>

<body>
</body>
</html>

Not much, so simple :slight_smile:

Thanks!

Thanks @martin.schaible

Can I confirm that you have the following setup in your theme:

you have a default layout.
you have the landing page that refers to the default layout.

you can see examples in the demo theme for exemple.

the default layout file layouts/default.htm

##
description = "Default layout"
==
<!DOCTYPE html>
<html>
    <head>
        {% partial 'site/head/head-meta' %}
        <title>October CMS - {{ this.page.meta_title ?: placeholder('pageTitle') }}</title>
        <meta name="description" content="{{ this.page.meta_description }}">
        <meta name="title" content="{{ this.page.meta_title }}">
        {% partial 'site/head/head-links' %}
        {% partial 'site/head/head-scripts' %}
        {% partial 'site/head/analytics-code' %}
    </head>
    <body class="{{ 'page-'~this.page.id }}">

        <!-- Header -->
        <header id="layout-header">
            {% partial 'site/header' %}
        </header>

        {% partial 'site/flash-messages' %}

        <!-- Content -->
        <section id="layout-content">
            {% page %}
        </section>

        <!-- Footer -->
        <footer id="layout-footer">
            {% partial 'site/footer' %}
        </footer>

    </body>
</html>

and a page using this layout and defining its url:

##
title = "Demonstration"
url = "/"
layout = "default"
meta_title = "Welcome"

==
<!--the html code for the index page goes here -->
1 Like

Hello

I feel pretty stupid right now. Of course, the home page was missing.
Sorry for wasting your time. I’m standing in the corner now, feeling ashamed.

Cheers!

That’s ok, it happens to the best of us!

There is nothing wrong about asking for help :slightly_smiling_face:
happy coding !