<p>The OP was running an older version of Craft. Resolved the issue by updating to the latest.</p>

CC BY-SA 3.0
2015-07-29T16:44:41.683Z
2015-07-29T16:44:41.683Z
Brad Bell
<p>I received an email from craft:</p>
<blockquote>
<p>Hey Frederick,</p>
<p>This looks to be a bug in Craft. We're looking into it and will let you know what we find!</p>
<p>-Brad</p>
</blockquote>

CC BY-SA 3.0
2015-07-02T12:52:37.543Z
2015-07-02T12:52:37.543Z
2020-06-17T08:56:27.903Z
Fred
<p>I created a simplistic Console Command class in my plugin folder containing this function:</p>

<pre><code>public function actionTest () {
    craft()-&gt;templates-&gt;renderString('index');
}
</code></pre>

<p>When I run the command: </p>

<p><em>./yiic &lt; plugin > Test</em> </p>

<p>I get the follwing error message:</p>

<pre><code>Property "Craft\ConsoleApp.session" is not defined.
exception 'CException' with message 'Property "Craft\ConsoleApp.session" is not defined.' in /Users/&lt; username &gt;/Sites/&lt; project &gt;/craft/app/framework/base/CComponent.php:130
</code></pre>

<p>Thoughts? The end goal here is to be able to render HTML emails and them at specific intervals, but for some reason when using craft services, I get session errors.</p>

<plugin-development>
Session Error from Console Command
# Session Error from Console Command

(Asked by: username_0 on 2015-07-01)

I created a simplistic Console Command class in my plugin folder containing this function:
public function actionTest () {
    craft()->templates->renderString('index');
}

When I run the command: 
./yiic < plugin > Test 
I get the follwing error message:
Property "Craft\ConsoleApp.session" is not defined.
exception 'CException' with message 'Property "Craft\ConsoleApp.session" is not defined.' in /Users/< username >/Sites/< project >/craft/app/framework/base/CComponent.php:130

Thoughts? The end goal here is to be able to render HTML emails and them at specific intervals, but for some reason when using craft services, I get session errors.

**Tags:** plugin-development


---

## 2 answers

### Answer by username_1 on 2015-07-29. Score: 1

The OP was running an older version of Craft. Resolved the issue by updating to the latest.


---

### Answer by username_0 on 2015-07-02. Score: 0

I received an email from craft:

> Hey username_0erick,
>
> This looks to be a bug in Craft. We're looking into it and will let you know what we find!
>
> -Brad


---

