Answers.Body: <p>Was simply root password in DB changing since last loading up environment. Threw some more errors to finally see database connection issues and just had to update db.php to fix. Leaving this here in case anyone else has issues.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-21T18:35:26.697Z
Answers.LastActivityDate: 2015-10-21T18:35:26.697Z
Answers.UserDisplayName: Ryan Vosburg
Answers.Body: <p>Can you post your <code>_layout</code> template code? It looks like you may be trying to use a variable like <code>{{ craft.bust }}</code> which doesn’t exist in your local environment.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-21T15:39:41.843Z
Answers.Text: Missing plugin perhaps?
Answers.UserDisplayName: megatrond
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-21T17:14:02.400Z
Answers.Text: Hmmm... If i remote the {{ craft.bust }} variable it throws and error for `The filter "auto_link" does not exist in "_layout" at line 68 ` for the {{ siteName }} link. Sounds like something isn't running. Just restarted mysql and php no change.
Answers.UserDisplayName: Ryan Vosburg
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-21T15:36:25.470Z
Answers.LastActivityDate: 2015-10-21T15:36:25.470Z
Answers.UserDisplayName: Stephen Bowling
Body: <p>Trying to set up craft on local environment and getting the following error once running mysql. Any clue what usually causes twig_error_runtime?</p>
  
  <pre><code>Twig_Error_Runtime
  
  Method "bust" for object "Craft\CraftVariable" does not exist in "_layout" at line 66 (/Users/username/Sites/site.com/craft/app/vendor/twig/twig/lib/Twig/Template.php:485)
  
  #0 /Users/username/Sites/site.com/craft/app/etc/templating/BaseTemplate.php(41): Twig_Template-&gt;getAttribute(Object(Craft\CraftVariable), 'bust', Array, 'any', false, false)
  #1 /Users/username/Sites/site.com/craft/storage/runtime/compiled_templates/f7/b1/be6fe94a8e6c7ce48ecb00086d0a2ebde7cc24cc43eec4a6ba82fa4a24c9.php(128): Craft\BaseTemplate-&gt;getAttribute(Object(Craft\CraftVariable), 'bust', Array)
  #2 /Users/username/Sites/site.com/craft/app/vendor/twig/twig/lib/Twig/Template.php(313): __TwigTemplate_f7b1be6fe94a8e6c7ce48ecb00086d0a2ebde7cc24cc43eec4a6ba82fa4a24c9-&gt;doDisplay(Array, Array)
  #3 /Users/username/Sites/site.com/craft/app/vendor/twig/twig/lib/Twig/Template.php(287): Twig_Template-&gt;displayWithErrorHandling(Array, Array)
  #4 /Users/username/Sites/site.com/craft/storage/runtime/compiled_templates/44/d5/7fc586931d2e13dfcd02f8209765153f695b63c7cf7dd78afa05d76029c4.php(27): Twig_Template-&gt;display(Array, Array)
  #5 /Users/username/Sites/site.com/craft/app/vendor/twig/twig/lib/Twig/Template.php(313): __TwigTemplate_44d57fc586931d2e13dfcd02f8209765153f695b63c7cf7dd78afa05d76029c4-&gt;doDisplay(Array, Array)
  #6 /Users/username/Sites/site.com/craft/app/vendor/twig/twig/lib/Twig/Template.php(287): Twig_Template-&gt;displayWithErrorHandling(Array, Array)
  #7 /Users/username/Sites/site.com/craft/app/vendor/twig/twig/lib/Twig/Template.php(298): Twig_Template-&gt;display(Array)
  #8 /Users/username/Sites/site.com/craft/app/vendor/twig/twig/lib/Twig/Environment.php(293): Twig_Template-&gt;render(Array)
  #9 /Users/username/Sites/site.com/craft/app/services/TemplatesService.php(223): Twig_Environment-&gt;render('404', Array)
  #10 /Users/username/Sites/site.com/craft/app/controllers/BaseController.php(74): Craft\TemplatesService-&gt;render('404', Array)
  #11 /Users/username/Sites/site.com/craft/app/controllers/TemplatesController.php(201): Craft\BaseController-&gt;renderTemplate('404', Array)
  #12 /Users/username/Sites/site.com/craft/app/framework/web/actions/CInlineAction.php(49): Craft\TemplatesController-&gt;actionRenderError()
  #13 /Users/username/Sites/site.com/craft/app/framework/web/CController.php(308): CInlineAction-&gt;runWithParams(Array)
  #14 /Users/username/Sites/site.com/craft/app/framework/web/CController.php(286): CController-&gt;runAction(Object(CInlineAction))
  #15 /Users/username/Sites/site.com/craft/app/framework/web/CController.php(265): CController-&gt;runActionWithFilters(Object(CInlineAction), Array)
  #16 /Users/username/Sites/site.com/craft/app/framework/web/CWebApplication.php(282): CController-&gt;run('renderError')
  #17 /Users/username/Sites/site.com/craft/app/framework/base/CErrorHandler.php(368): CWebApplication-&gt;runController('templates/rende...')
  #18 /Users/username/Sites/site.com/craft/app/framework/base/CErrorHandler.php(351): CErrorHandler-&gt;renderError()
  #19 /Users/username/Sites/site.com/craft/app/framework/base/CErrorHandler.php(218): CErrorHandler-&gt;renderException()
  #20 /Users/username/Sites/site.com/craft/app/etc/errors/ErrorHandler.php(128): CErrorHandler-&gt;handleException(Object(Craft\HttpException))
  #21 /Users/username/Sites/site.com/craft/app/framework/base/CErrorHandler.php(131): Craft\ErrorHandler-&gt;handleException(Object(Craft\HttpException))
  #22 /Users/username/Sites/site.com/craft/app/framework/base/CApplication.php(740): CErrorHandler-&gt;handle(Object(CExceptionEvent))
  #23 [internal function]: CApplication-&gt;handleException(Object(Craft\HttpException))
  #24 {main}
  </code></pre>
  
Tags: <installation>
Title: Twig_Error_Runtime on Local Dev Environment
ThreadText: # Twig_Error_Runtime on Local Dev Environment
  
  (Asked by: username_0 on 2015-10-21)
  
  Trying to set up craft on local environment and getting the following error once running mysql. Any clue what usually causes twig\_error\_runtime?
  
  ```
  Twig_Error_Runtime
  
  Method "bust" for object "Craft\CraftVariable" does not exist in "_layout" at line 66 (/Users/username/Sites/site.com/craft/app/vendor/twig/twig/lib/Twig/Template.php:485)
  
  #0 /Users/username/Sites/site.com/craft/app/etc/templating/BaseTemplate.php(41): Twig_Template->getAttribute(Object(Craft\CraftVariable), 'bust', Array, 'any', false, false)
  #1 /Users/username/Sites/site.com/craft/storage/runtime/compiled_templates/f7/b1/be6fe94a8e6c7ce48ecb00086d0a2ebde7cc24cc43eec4a6ba82fa4a24c9.php(128): Craft\BaseTemplate->getAttribute(Object(Craft\CraftVariable), 'bust', Array)
  #2 /Users/username/Sites/site.com/craft/app/vendor/twig/twig/lib/Twig/Template.php(313): __TwigTemplate_f7b1be6fe94a8e6c7ce48ecb00086d0a2ebde7cc24cc43eec4a6ba82fa4a24c9->doDisplay(Array, Array)
  #3 /Users/username/Sites/site.com/craft/app/vendor/twig/twig/lib/Twig/Template.php(287): Twig_Template->displayWithErrorHandling(Array, Array)
  #4 /Users/username/Sites/site.com/craft/storage/runtime/compiled_templates/44/d5/7fc586931d2e13dfcd02f8209765153f695b63c7cf7dd78afa05d76029c4.php(27): Twig_Template->display(Array, Array)
  #5 /Users/username/Sites/site.com/craft/app/vendor/twig/twig/lib/Twig/Template.php(313): __TwigTemplate_44d57fc586931d2e13dfcd02f8209765153f695b63c7cf7dd78afa05d76029c4->doDisplay(Array, Array)
  #6 /Users/username/Sites/site.com/craft/app/vendor/twig/twig/lib/Twig/Template.php(287): Twig_Template->displayWithErrorHandling(Array, Array)
  #7 /Users/username/Sites/site.com/craft/app/vendor/twig/twig/lib/Twig/Template.php(298): Twig_Template->display(Array)
  #8 /Users/username/Sites/site.com/craft/app/vendor/twig/twig/lib/Twig/Environment.php(293): Twig_Template->render(Array)
  #9 /Users/username/Sites/site.com/craft/app/services/TemplatesService.php(223): Twig_Environment->render('404', Array)
  #10 /Users/username/Sites/site.com/craft/app/controllers/BaseController.php(74): Craft\TemplatesService->render('404', Array)
  #11 /Users/username/Sites/site.com/craft/app/controllers/TemplatesController.php(201): Craft\BaseController->renderTemplate('404', Array)
  #12 /Users/username/Sites/site.com/craft/app/framework/web/actions/CInlineAction.php(49): Craft\TemplatesController->actionRenderError()
  #13 /Users/username/Sites/site.com/craft/app/framework/web/CController.php(308): CInlineAction->runWithParams(Array)
  #14 /Users/username/Sites/site.com/craft/app/framework/web/CController.php(286): CController->runAction(Object(CInlineAction))
  #15 /Users/username/Sites/site.com/craft/app/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
  #16 /Users/username/Sites/site.com/craft/app/framework/web/CWebApplication.php(282): CController->run('renderError')
  #17 /Users/username/Sites/site.com/craft/app/framework/base/CErrorHandler.php(368): CWebApplication->runController('templates/rende...')
  #18 /Users/username/Sites/site.com/craft/app/framework/base/CErrorHandler.php(351): CErrorHandler->renderError()
  #19 /Users/username/Sites/site.com/craft/app/framework/base/CErrorHandler.php(218): CErrorHandler->renderException()
  #20 /Users/username/Sites/site.com/craft/app/etc/errors/ErrorHandler.php(128): CErrorHandler->handleException(Object(Craft\HttpException))
  #21 /Users/username/Sites/site.com/craft/app/framework/base/CErrorHandler.php(131): Craft\ErrorHandler->handleException(Object(Craft\HttpException))
  #22 /Users/username/Sites/site.com/craft/app/framework/base/CApplication.php(740): CErrorHandler->handle(Object(CExceptionEvent))
  #23 [internal function]: CApplication->handleException(Object(Craft\HttpException))
  #24 {main}
  
  ```
  
  **Tags:** installation
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2015-10-21. Score: 2
  
  Was simply root password in DB changing since last loading up environment. Threw some more errors to finally see database connection issues and just had to update db.php to fix. Leaving this here in case anyone else has issues.
  
  
  ---
  
  ### Answer by username_1 on 2015-10-21. Score: 0
  
  Can you post your `_layout` template code? It looks like you may be trying to use a variable like `{{ craft.bust }}` which doesn’t exist in your local environment.
  
  > **Comments:**
  > **username_2**: Missing plugin perhaps?  
  > **username_0**: Hmmm... If i remote the {{ craft.bust }} variable it throws and error for `The filter "auto_link" does not exist in "_layout" at line 68 ` for the {{ siteName }} link. Sounds like something isn't running. Just restarted mysql and php no change.  
  
  ---
  
  