bolt / bolt

Bolt is a simple CMS written in PHP. It is based on Silex and Symfony components, uses Twig and either SQLite, MySQL or PostgreSQL.
MIT License
4.15k stars 809 forks source link

After update to 2.2.0: Twig_Error_Syntax #3636

Closed sbani closed 9 years ago

sbani commented 9 years ago

After the update from bolt/bolt (v2.2.0-beta3) to bolt/bolt (v2.2.0) I experience these errors:

cms.dev/bolt:

Twig_Error_Syntax The function "render" does not exist in "dashboard/dashboard.twig" at line 40

cms.dev:

http://cms.dev/_profiler/wdt/fc477f 500 (Internal Server Error)

http://cms.dev/_profiler/wdt/fc477f

Twig_Error_Syntax The function "render" does not exist in "@BoltProfiler/toolbar/config.html.twig" at line 1

I don't know why. Itried to delete vendor file, cleared cache and updated DB.

dashboard/dashboard.twig

{% include 'dashboard/_aside.twig' %}

@BoltProfiler/toolbar/config.html.twig

{% extends '@WebProfiler/Profiler/layout.html.twig' %}

Bolt is installed as composer project.

GwendolenLynch commented 9 years ago

That is due to Silex 1.3 that was released last night… there is a fix already in release/2.2 that will be tagged as 2.2.1 very shortly. :grin:

sbani commented 9 years ago

Thanks mate. PS: Crazy fast response

giphy

GwendolenLynch commented 9 years ago

Hehe… it was what I woke up to this morning, so was "all over it" :+1: