Answers.Body: <p>I'm guessing staging has a case sensitive file system and your local dev site doesn't.</p>
  
  <p>i.e. the section handle in your screenshot is called <code>availableHomes</code>, but the template folder you're referencing is <code>availablehomes</code>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-08T18:57:00.237Z
Answers.Text: Amazing, that was it. Something so simple. Will be extra careful with the folder naming in future. Thanks
Answers.UserDisplayName: mention79
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-08T18:55:04.243Z
Answers.LastActivityDate: 2017-02-08T18:55:04.243Z
Answers.UserDisplayName: Brad Bell
Body: <p>I'm having a strange issue where pages aren't loading on the staging site that were all working fine on the local.dev site.</p>
  
  <p>I have a Section called <strong>Available Homes</strong> and in that section it has two Entry types called <strong>Available Homes</strong> and <strong>Plot</strong> which link to two entry templates, that are dynamically called from the main entry.html.twig template, which then links to the sub folder </p>
  
  <pre><code>/entry
    /availablehomes
      availablehomes.html.twig
      plot.html.twig
    default.html.twig
  </code></pre>
  
  <p>The sections Entry URL Format is as follows:</p>
  
  <p><code>developments/{counties.first.slug}/{developments.first.slug}/available-homes</code></p>
  
  <p>and nested entries get the following:</p>
  
  <p><code>{parent.uri}/{slug}</code></p>
  
  <p>If I change the template from entry in the control panel to different template then it loads.</p>
  
  <p>This is the entry template code:</p>
  
  <pre><code>{% include [
    "entry/" ~ entry.section.handle ~ "/" ~ entry.type,
    "entry/default"
  ] %}
  </code></pre>
  
  <p>Can someone help please?</p>
  
  <p><a href="https://i.sstatic.net/CuQ7a.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/CuQ7a.png" alt="enter image description here"></a></p>
  
Tags: <templating><routes>
Title: Dynamic entry template not loading on staging site but works on local.dev
ThreadText: # Dynamic entry template not loading on staging site but works on local.dev
  
  (Asked by: username_0 on 2017-02-08)
  
  I'm having a strange issue where pages aren't loading on the staging site that were all working fine on the local.dev site.
  
  I have a Section called **Available Homes** and in that section it has two Entry types called **Available Homes** and **Plot** which link to two entry templates, that are dynamically called from the main entry.html.twig template, which then links to the sub folder
  
  ```
  /entry
    /availablehomes
      availablehomes.html.twig
      plot.html.twig
    default.html.twig
  
  ```
  
  The sections Entry URL Format is as follows:
  
  `developments/{counties.first.slug}/{developments.first.slug}/available-homes`
  
  and nested entries get the following:
  
  `{parent.uri}/{slug}`
  
  If I change the template from entry in the control panel to different template then it loads.
  
  This is the entry template code:
  
  ```
  {% include [
    "entry/" ~ entry.section.handle ~ "/" ~ entry.type,
    "entry/default"
  ] %}
  
  ```
  
  Can someone help please?
  
  [![enter image description here](https://i.sstatic.net/CuQ7a.png)](https://i.sstatic.net/CuQ7a.png)
  
  **Tags:** templating, routes
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-02-08. Score: 1 | Accepted answer
  
  I'm guessing staging has a case sensitive file system and your local dev site doesn't.
  
  i.e. the section handle in your screenshot is called `availableHomes`, but the template folder you're referencing is `availablehomes`.
  
  > **Comments:**
  > **username_0**: Amazing, that was it. Something so simple. Will be extra careful with the folder naming in future. Thanks  
  
  ---
  
  