<p>You can receive this error if you have uploaded a Craft website and your <code>craft/storage/runtime/cache</code> and <code>craft/storage/runtime/complied_templates</code> folders are not writable.</p>

<p>We made these folders writable and resolved the error. </p>

CC BY-SA 3.0
2017-12-22T11:06:00.443Z
2017-12-28T16:18:16.820Z
2017-12-28T16:18:16.820Z
Shodan
<p><strong>Disk usage over quota</strong> is a possible cause for the error message <code>An error occurred when rendering a template</code> in Craft CMS v2.x.</p>

<p>In this case, you will see the same when trying to access the control panel, regardless of dev mode setting.</p>

CC BY-SA 3.0
2017-11-28T14:16:57.700Z
2017-11-28T14:16:57.700Z
Avant la lettre
<p>I have an odd problem. </p>

<p>When I render a simple HTML template without any link to the Control Panel, I get the following message on random pages:</p>

<blockquote>
  <p>An error occurred when rendering a template</p>
</blockquote>

<p>Whenever I change I can't seem the remove this error or find the problem / solution.</p>

<p>Also I cannot access the Control Panel.</p>

<p>Can you please help me?</p>

<p>Thanks!</p>

CC BY-SA 3.0
2017-09-11T18:58:57.583Z
Can you enable [devMode](https://craftcms.com/docs/config-settings#devMode), reproduce the error, then update your original question with the full stack trace leading up to the error?
Brad Bell
<templating><error>
An error occurred when rendering a template
# An error occurred when rendering a template

(Asked by: username_0 on 2017-09-11)

I have an odd problem.

When I render a simple HTML template without any link to the Control Panel, I get the following message on random pages:

> An error occurred when rendering a template

Whenever I change I can't seem the remove this error or find the problem / solution.

Also I cannot access the Control Panel.

Can you please help me?

Thanks!

**Tags:** templating, error

> **Comments:**
> **username_1**: Can you enable [devMode](https://craftcms.com/docs/config-settings#devMode), reproduce the error, then update your original question with the full stack trace leading up to the error?  

---

## 2 answers

### Answer by username_2 on 2017-12-22. Score: 4

You can receive this error if you have uploaded a Craft website and your `craft/storage/runtime/cache` and `craft/storage/runtime/complied_templates` folders are not writable.

We made these folders writable and resolved the error.


---

### Answer by username_3 on 2017-11-28. Score: 1

**Disk usage over quota** is a possible cause for the error message `An error occurred when rendering a template` in Craft CMS v2.x.

In this case, you will see the same when trying to access the control panel, regardless of dev mode setting.


---

