Answers.Body: <p>We were able to recreate your issue. The error caused by an older version of Twig.</p>
  
  <p>The error should be fixed by upgrading to <a href="https://craftcms.com/changelog#2-6-2771" rel="nofollow noreferrer">Craft 2.6.2771</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-05T18:47:53.743Z
Answers.LastActivityDate: 2017-09-05T18:47:53.743Z
Answers.UserDisplayName: Ben Parizek
Body: <p>I updated Sprout SEO on our development site, but get the following error when trying to view the site:</p>
  
  <p><em>Craft\TemplatesService and its behaviors do not have a method or closure named "setTemplatesPath".</em></p>
  
  <p>I can access the Control Panel, but navigating within the Sprout SEO tab gets me the following error:</p>
  
  <p><em>Unexpected token "punctuation" of value "?".</em></p>
  
  <p>We are not on the latest version of Craft (Pro 2.5.2754) for a few reasons - not ideal, I know. Can anyone let me know where I should look to resolve this, or if it's a compatibility issue?</p>
  
Tags: <plugin-sproutseo>
Title: Problem updating to latest version of Sprout SEO
ThreadText: # Problem updating to latest version of Sprout SEO
  
  (Asked by: username_0 on 2017-09-05)
  
  I updated Sprout SEO on our development site, but get the following error when trying to view the site:
  
  *Craft\TemplatesService and its behaviors do not have a method or closure named "setTemplatesPath".*
  
  I can access the Control Panel, but navigating within the Sprout SEO tab gets me the following error:
  
  *Unexpected token "punctuation" of value "?".*
  
  We are not on the latest version of Craft (Pro 2.5.2754) for a few reasons - not ideal, I know. Can anyone let me know where I should look to resolve this, or if it's a compatibility issue?
  
  **Tags:** plugin-sproutseo
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-09-05. Score: 1 | Accepted answer
  
  We were able to recreate your issue. The error caused by an older version of Twig.
  
  The error should be fixed by upgrading to [Craft 2.6.2771](https://craftcms.com/changelog#2-6-2771)
  
  
  ---
  
  