Drupal developed this fix.
This message has been silenced in grav 7 months ago but still appears in 1.3.3 in an installation via github/composer. Is it necessary to switch to 1.x-dev?
Hi, i’ve been hit by this as well. And like others, i’m also on shared hosting, so no real control over my php environment. I got it working though.
In addition to this @-prefixed opcache line mentioned in previous posts:
grav/system/src/Grav/Common/File/CompiledFile.php
… i also found another opcache line in my /www tree:
vendor/twig/twig/lib/Twig/Cache/Filesystem.php
I’ve @-prefixed the opcached line in there and now my site is up again. I have no clue of what i’m doing actually and what fallout there might be from that change, but for now, it works
To resolve, simply edit this setting in your php.ini (or relevant configuration file) for opcache settings. In my case I had an /etc/php7.2-sp/conf.d/opcache.ini file that contained:
opcache.restrict_api=1
I just changed this to:
opcache.restrict_api=
and restarted PHP FPM with: sudo service php7.2-fpm-sp restart
I just updated to latest Grav v1.4.4 - Admin v1.7.2
and the problem is back
/grav/vendor/twig/twig/lib/Twig/Cache/Filesystem.php
adding @ on line 70 like in previous case solved the issue.