<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>

CC BY-SA 3.0
2017-09-05T18:47:53.743Z
2017-09-05T18:47:53.743Z
Ben Parizek
<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>

<plugin-sproutseo>
Problem updating to latest version of Sprout SEO
# 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)


---

