<p>The issue was a plugin’s <code>composer.json</code> that was loading an older version of Twig as a nested dependancy, which was overriding Craft’s Twig.</p>

<p>Running a <code>composer update</code> for that plugin rectified the issue.</p>

CC BY-SA 3.0
2017-09-11T09:18:10.897Z
2017-09-11T09:18:10.897Z
Joshua Baker
<p>We’re running into issues with the null coalescence operator in the latest version of Craft (2.6.2989).</p>

<p><a href="https://i.sstatic.net/qj6Wv.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/qj6Wv.png" alt="enter image description here"></a></p>

<p>Does anyone know why this might be happening?</p>

CC BY-SA 3.0
2017-09-08T18:13:06.530Z
Where are getting this error?  In the Control Panel somewhere?
Brad Bell
CC BY-SA 3.0
2017-09-08T18:13:42.560Z
Also, what version of PHP are you running?
Brad Bell
CC BY-SA 3.0
2017-09-08T19:19:24.383Z
That's in the CP. Currently on PHP 7.0.10, however, it's also present on PHP 7.1.
Joshua Baker
CC BY-SA 3.0
2017-09-08T23:51:55.090Z
That's... odd.  Going to respond from your support ticket and will follow up here with any solution.
Brad Bell
CC BY-SA 3.0
2017-09-08T23:54:44.930Z
Things to try: 1. Re-download Craft and replace the /app folder. 2. Disable all plugins; if the error goes away; re-enable the plugins one by one.
Mats Mikkel Rummelhoff
CC BY-SA 3.0
2017-09-08T23:57:38.597Z
Also, what @MatsMikkelRummelhoff said.
Brad Bell
CC BY-SA 3.0
2017-09-09T15:47:44.933Z
Thanks, both. Have tried both of those steps already. Brad, I'll respond to your email.
Joshua Baker
CC BY-SA 3.0
2017-09-11T09:15:56.087Z
Sorry, @Mats; You were right! I hadn’t properly disabled all plugins, it seems. Removing plugins via the database one by one _did_ root out the issue.
Joshua Baker
<templating>
Unexpected token "punctuation" of value "?"
# Unexpected token "punctuation" of value "?"

(Asked by: username_0 on 2017-09-08)

We’re running into issues with the null coalescence operator in the latest version of Craft (2.6.2989).

[![enter image description here](https://i.sstatic.net/qj6Wv.png)](https://i.sstatic.net/qj6Wv.png)

Does anyone know why this might be happening?

**Tags:** templating

> **Comments:**
> **username_1**: Where are getting this error?  In the Control Panel somewhere?  
> **username_1**: Also, what version of PHP are you running?  
> **username_0**: That's in the CP. Currently on PHP 7.0.10, however, it's also present on PHP 7.1.  
> **username_1**: That's... odd.  Going to respond from your support ticket and will follow up here with any solution.  
> **username_2**: Things to try: 1. Re-download Craft and replace the /app folder. 2. Disable all plugins; if the error goes away; re-enable the plugins one by one.  
> **username_1**: Also, what @MatsMikkelRummelhoff said.  
> **username_0**: Thanks, both. Have tried both of those steps already. Brad, I'll respond to your email.  
> **username_0**: Sorry, @Mats; You were right! I hadn’t properly disabled all plugins, it seems. Removing plugins via the database one by one _did_ root out the issue.  

---

## 1 answers

### Answer by username_0 on 2017-09-11. Score: 2 | Accepted answer

The issue was a plugin’s `composer.json` that was loading an older version of Twig as a nested dependancy, which was overriding Craft’s Twig.

Running a `composer update` for that plugin rectified the issue.


---

