Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-02T23:38:11.037Z
Answers.LastActivityDate: 2015-03-03T03:22:27.123Z
Answers.LastEditDate: 2015-03-03T03:22:27.123Z
Answers.UserDisplayName: Chuck Cerrillo
Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-28T12:39:55.100Z
Answers.LastActivityDate: 2015-09-28T12:39:55.100Z
Answers.UserDisplayName: Nick F
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-03-02T04:20:19.937Z
Comments.Text: What is `atom` and `video`?  Are they coming from a plugin?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-03-02T23:36:16.807Z
Comments.Text: 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.
Comments.UserDisplayName: Chuck Cerrillo
Tags: <templating><error-message>
Title: Issues with compiled_templates - call to undefined method
ThreadText: # 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:
  
  ![Getting an undefined method error](https://i.sstatic.net/o2Kaf.jpg)
  
  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 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.
  
  
  ---
  
  