<p>It is my bad. Thanks to Brad Bell, I went to check whether the macros were on both the staging and live servers. The macros existed on staging but not on live.</p>

CC BY-SA 3.0
2015-03-02T23:38:11.037Z
2015-03-03T03:22:27.123Z
2015-03-03T03:22:27.123Z
Chuck Cerrillo
<p>I've had this a couple of times, and have yet to figure out what causes it, but on my server deleting the <code>compiled_templates</code> folder (<code>app/craft/storage/runtime/compiled_templates</code>) fixes it.</p>

CC BY-SA 3.0
2015-09-28T12:39:55.100Z
2015-09-28T12:39:55.100Z
Nick F
<p>We have two web servers in a load-balanced setup. Both servers are sharing a single database. The craft and public folders are rsync-ed between the two so changes on those folders in web1 propagate into web2.</p>

<p>We tried loading a video atom using the following twig:</p>

<pre><code>{% case "video" %}
{{ atom.video(block) }}
</code></pre>

<p>It works on our local dev copy and on our staging server at AWS, however on our live site we get this error:</p>

<p><img src="https://i.sstatic.net/o2Kaf.jpg" alt="Getting an undefined method error"></p>

<p>I tried copying the whole runtime folder from AWS over to the live web servers but that did not fix it.</p>

<p>Any ideas on how to get it to work? I would consider myself a novice to Craft so pardon me if there's something obvious that I'm missing.</p>

<p>Thanks in advance.</p>

<p><strong>Update:</strong></p>

<p>Already figured out that it was an error with the upload. Some macros were not properly copied over into live.</p>

CC BY-SA 3.0
2015-03-02T04:20:19.937Z
What is `atom` and `video`?  Are they coming from a plugin?
Brad Bell
CC BY-SA 3.0
2015-03-02T23:36:16.807Z
Thanks for asking this question. I went to double check both on our staging and live servers. The video atom thing is a macro that we made and it didn't exist on the live server. Must have been an issue with the upload.
Chuck Cerrillo
<templating><error-message>
Issues with compiled_templates - call to undefined method
# Issues with compiled_templates - call to undefined method

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

We have two web servers in a load-balanced setup. Both servers are sharing a single database. The craft and public folders are rsync-ed between the two so changes on those folders in web1 propagate into web2.
We tried loading a video atom using the following twig:
{% case "video" %}
{{ atom.video(block) }}

It works on our local dev copy and on our staging server at AWS, however on our live site we get this error:

I tried copying the whole runtime folder from AWS over to the live web servers but that did not fix it.
Any ideas on how to get it to work? I would consider myself a novice to Craft so pardon me if there's something obvious that I'm missing.
Thanks in advance.
Update:
Already figured out that it was an error with the upload. Some macros were not properly copied over into live.

**Tags:** templating, error-message

> **Comments:**
> **username_1**: What is `atom` and `video`?  Are they coming from a plugin?  
> **username_0**: Thanks for asking this question. I went to double check both on our staging and live servers. The video atom thing is a macro that we made and it didn't exist on the live server. Must have been an issue with the upload.  

---

## 2 answers

### Answer by username_0 on 2015-03-02. Score: 2 | Accepted answer

It is my bad. Thanks to username_1, I went to check whether the macros were on both the staging and live servers. The macros existed on staging but not on live.


---

### Answer by username_2 on 2015-09-28. Score: 0

I've had this a couple of times, and have yet to figure out what causes it, but on my server deleting the `compiled_templates` folder (`app/craft/storage/runtime/compiled_templates`) fixes it.


---

