Answers.Body: <p>Sounds like production has a case-sensitive file system and locally you don't.</p>
  
  <p>For example, you're trying to render a template called <code>mytemplate.html</code> on the file system, but you're using <code>myTemplate.html</code> in the plugin code.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-19T07:34:56.960Z
Answers.Text: Thank you, this would have taken me ages to figure out on my own!
Answers.UserDisplayName: Syversen
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-18T22:39:48.247Z
Answers.LastActivityDate: 2017-09-18T22:39:48.247Z
Answers.UserDisplayName: Brad Bell
Body: <p>I have made a simple plugin (with pluginfactory.io) that has been working perfectly so far. But after taking it to our live test-site it is causing the /admin/settings page to stop working, throwing the error that the plugin's settings template cannot be found. </p>
  
  <blockquote>
    <p>[error] [exception.Craft\TemplateLoaderException] Craft\TemplateLoaderException: Unable to find the template “pluginname/pluginName_Settings” in "settings/_index" at line 8. in /craft/app/etc/templating/twigextensions/TemplateLoader.php:123</p>
  </blockquote>
  
  <p>I have dumped the production DB and imported it locally, I have checked that the files exists both in git and on the server, but I still only get this error on the server, everything is working fine locally.</p>
  
  <p>Any ideas what could be causing this?</p>
  
  <pre><code>public function getSettingsHtml() {
      return craft()-&gt;templates-&gt;render('pluginname/pluginName', array(
          'settings' =&gt; $this-&gt;getSettings()
      ));
  }
  </code></pre>
  
Tags: <plugin-development>
Title: Plugin's setting template not found
ThreadText: # Plugin's setting template not found
  
  (Asked by: username_0 on 2017-09-18)
  
  I have made a simple plugin (with pluginfactory.io) that has been working perfectly so far. But after taking it to our live test-site it is causing the /admin/settings page to stop working, throwing the error that the plugin's settings template cannot be found.
  
  > [error] [exception.Craft\TemplateLoaderException] Craft\TemplateLoaderException: Unable to find the template “pluginname/pluginName\_Settings” in "settings/\_index" at line 8. in /craft/app/etc/templating/twigextensions/TemplateLoader.php:123
  
  I have dumped the production DB and imported it locally, I have checked that the files exists both in git and on the server, but I still only get this error on the server, everything is working fine locally.
  
  Any ideas what could be causing this?
  
  ```
  public function getSettingsHtml() {
      return craft()->templates->render('pluginname/pluginName', array(
          'settings' => $this->getSettings()
      ));
  }
  
  ```
  
  **Tags:** plugin-development
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-09-18. Score: 1 | Accepted answer
  
  Sounds like production has a case-sensitive file system and locally you don't.
  
  For example, you're trying to render a template called `mytemplate.html` on the file system, but you're using `myTemplate.html` in the plugin code.
  
  > **Comments:**
  > **username_0**: Thank you, this would have taken me ages to figure out on my own!  
  
  ---
  
  