Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.

Class 'Twig\Cache\NullCache' not found on updating to 3.2

This discussion is related to the Vanilla addon.


Seem to have hit a roadblock updating Vanilla from 3.1 to 3.2. Upon following the upgrade directions and loading utility/update:

Fatal Error in Twig\Environment.setCache();
Class 'Twig\Cache\NullCache' not found
The error occurred on or near: /.../public_html/vendor/twig/twig/src/Environment.php
266:      $this->originalCache = $cache;
267:      $this->cache = new FilesystemCache($cache);
268:    } elseif (false === $cache) {
269:      $this->originalCache = $cache;
270:      $this->cache = new NullCache();
271:    } elseif ($cache instanceof CacheInterface) {
272:      $this->originalCache = $this->cache = $cache;
273:    } else {
274:      throw new \LogicException(sprintf('Cache can only be a string, false, or a \Twig\Cache\CacheInterface implementation.'));

Any ideas about ways to proceed? Rolled back for now.





Sign In or Register to comment.