# Fatal Error - Missing Frontmatter Tag?

**URL:** <https://forums.realmacsoftware.com/t/fatal-error-missing-frontmatter-tag/49571>\
**Category:** Elements CMS\
**Created:** [August 8, 2025, 10:18am UTC](https://forums.realmacsoftware.com/t/fatal-error-missing-frontmatter-tag/49571 "2025-08-08T10:18:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![logrunner](https://avatars.discourse-cdn.com/v4/letter/l/59ef9b/32.png) [@logrunner](https://forums.realmacsoftware.com/u/logrunner)\
**Post date:** [August 8, 2025, 10:18am UTC](https://forums.realmacsoftware.com/t/fatal-error-missing-frontmatter-tag/49571/1 "2025-08-08T10:18:00Z")

</div>

If a Frontmatter tag is missing (“time” in this instance) , I am getting this FATAL error:

```auto
Fatal error
: Uncaught Twig\Error\RuntimeError: Neither the property "time" nor one of the methods "time()", "gettime()"/"istime()"/"hastime()" or "__call()" exist and have public access in class "stdClass" in "__string_template__db4dffedda492bfce5c94163b0c6934e" at line 4. in ...

```

So, I had previously added:

```auto
time: "14:30"

```

to one .md post, it was missing from the others, and I got this error when specifying:

```auto
{{item.time}}

```

in the text component for the posts where the “time’ tag was missing. It was Ok in the one it was present in.

Should it not just indicate the front-matter is missing for the text? For example:

```auto
Frontmatter time tag is missing!

```

or similar?

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [August 8, 2025, 5:25pm UTC](https://forums.realmacsoftware.com/t/fatal-error-missing-frontmatter-tag/49571/2 "2025-08-08T17:25:06Z")

</div>

Thanks for the report, and yes we have this down to fix/handle more gracefully 👍

For now, **ensure all your Markdown files in a collection have the same Frontmatter.**

---

<div class="post-metadata">

**Author:** ![logrunner](https://avatars.discourse-cdn.com/v4/letter/l/59ef9b/32.png) [@logrunner](https://forums.realmacsoftware.com/u/logrunner)\
**Post date:** [August 8, 2025, 6:55pm UTC](https://forums.realmacsoftware.com/t/fatal-error-missing-frontmatter-tag/49571/3 "2025-08-08T18:55:34Z")

</div>

> [@dan](#):
>
> **ensure all your Markdown files in a collection have the same Frontmatter.**

Ah, that probably explains why I thought @refsvik had to make more alterations to his markdown than just to do the change from .html to .php to get his markdown to work. I just dropped his markdown into a folder with my pre-existing markdown which obviously had inconsistent Frontmatter between his and my markdown files. 🤔

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [August 8, 2025, 7:42pm UTC](https://forums.realmacsoftware.com/t/fatal-error-missing-frontmatter-tag/49571/4 "2025-08-08T19:42:39Z")

</div>

> [@logrunner](#):
>
> Should it not just indicate the front-matter is missing

It definitely should, and I’ll make sure we fix that!

As Dan said, for now you should ensure your front matter is consistent.
