<p>Somewhere in your template you are trying to access the <code>owner</code> attribute on an <code>EntryModel</code>. The example above doesn't show any details on where you might be trying to do that in your templates.</p>

<p>Try commenting out any area of your template where you may be trying to output values that relate to the Entry Model. Maybe even comment out your whole template. Comment things out until you get your page to load again. As you mentioned this error occurs when you try to send a comment, you may also want to comment things out on whatever template gets loaded after you submit the comments.</p>

<p>Once you're getting the page to load without errors, add your code back line by line until you get the error. This will help you isolate where the error is.</p>

<p>When you find it, you'll probably need to add a conditional check to the offending code to get things working:</p>

<pre><code>{% if entry['owner'] is defined %}
    Then it's safe to try to output {{ entry.owner }}
{% endif %}
</code></pre>

CC BY-SA 3.0
2016-10-05T16:45:47.257Z
You are right. My Problem is that {{ entry.owner }} is undefined. But how can I define the {{ entry.owner }}? I don't use {{ entry.owner }} in my template. The "Comments" Plugin use  EntryModel.owner when i want so submit a comment on any entry.
The Frog
CC BY-SA 3.0
2016-10-05T19:44:24.137Z
I'm not familiar with the Comments plugin. I just downloaded it and searched for the word `owner` and it seems the only time it is used is when checking for something related to Matrix blocks: `$element->owner->author` when it tries to send an author notification email. Try disabling notifications if you have them enabled, and perhaps reach out to the author and file a bug report.
Ben Parizek
CC BY-SA 3.0
2016-10-20T08:41:58.027Z
The problem is in the version you use, is a Bug with {{ entry.owner }}.
The Frog
CC BY-SA 3.0
2016-10-05T15:11:49.020Z
2016-10-05T15:11:49.020Z
Ben Parizek
<p>I have build a Blog. Now I've tried to add the commenting function with "Comments":
<a href="https://github.com/engram-design/Comments" rel="nofollow">https://github.com/engram-design/Comments</a></p>

<p>I use the absolute basic template:
<a href="https://github.com/engram-design/Comments/blob/master/examples/standard/standard.html" rel="nofollow">https://github.com/engram-design/Comments/blob/master/examples/standard/standard.html</a></p>

<p>The call in my Tpl:</p>

<pre><code>{% set params = {
   order: 'dateCreated asc'
} %}

{{ craft.comments.form(entry.id) }}
</code></pre>

<p>Until here everything is fine. When I want so send the comment, i always get this Error:</p>

<pre><code>Property "Craft \ EntryModel.owner is undefined.
</code></pre>

<p>The "Comments" Plugin use EntryModel.owner when I want so submit a comment on any entry. Now the problem is that {{ entry.owner }} is undefined. But how can I define the {{ entry.owner }}?</p>

<p>I know this is a noobie Question, but how can I fix this?</p>

<templating>
Blog Comments / EntryModel.owner is undefined
# Blog Comments / EntryModel.owner is undefined

(Asked by: username_0 on 2016-10-05)

I have build a Blog. Now I've tried to add the commenting function with "Comments":
https://github.com/engram-design/Comments
I use the absolute basic template:
https://github.com/engram-design/Comments/blob/master/examples/standard/standard.html
The call in my Tpl:
{% set params = {
   order: 'dateCreated asc'
} %}

{{ craft.comments.form(entry.id) }}

Until here everything is fine. When I want so send the comment, i always get this Error:
Property "Craft \ EntryModel.owner is undefined.

The "Comments" Plugin use EntryModel.owner when I want so submit a comment on any entry. Now the problem is that {{ entry.owner }} is undefined. But how can I define the {{ entry.owner }}?
I know this is a noobie Question, but how can I fix this?

**Tags:** templating

---

## 1 answers

### Answer by username_1 on 2016-10-05. Score: 2

Somewhere in your template you are trying to access the owner attribute on an EntryModel. The example above doesn't show any details on where you might be trying to do that in your templates.
Try commenting out any area of your template where you may be trying to output values that relate to the Entry Model. Maybe even comment out your whole template. Comment things out until you get your page to load again. As you mentioned this error occurs when you try to send a comment, you may also want to comment things out on whatever template gets loaded after you submit the comments.
Once you're getting the page to load without errors, add your code back line by line until you get the error. This will help you isolate where the error is.
When you find it, you'll probably need to add a conditional check to the offending code to get things working:
{% if entry['owner'] is defined %}
    Then it's safe to try to output {{ entry.owner }}
{% endif %}

> **Comments:**
> **username_0**: You are right. My Problem is that {{ entry.owner }} is undefined. But how can I define the {{ entry.owner }}? I don't use {{ entry.owner }} in my template. The "Comments" Plugin use  EntryModel.owner when i want so submit a comment on any entry.  
> **username_1**: I'm not familiar with the Comments plugin. I just downloaded it and searched for the word `owner` and it seems the only time it is used is when checking for something related to Matrix blocks: `$element->owner->author` when it tries to send an author notification email. Try disabling notifications if you have them enabled, and perhaps reach out to the author and file a bug report.  
> **username_0**: The problem is in the version you use, is a Bug with {{ entry.owner }}.  

---

