Twig loader crushes with October CMS

- 1 answer

Ad

When I start fresh october project it says:

Class System\Twig\Loader contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Twig_LoaderInterface::getSourceContext) /home/doctor/web/paintshop/modules/system/twig/Loader.php line 82

enter image description here

Did anyone faced such problem? My php version is 7, and php7 mod is enabled in apache, while php 5.6 mod is disabled. Thank you!

Ad

Answer

Ad

Most of cases if you have a fresh OctoberCMS install it won't be the latest update.

Go to Config/Cms.php and set edgeUpdates to true and try to update the application from backend.

Ad
source: stackoverflow.com
Ad