This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » eZ Publish 5 Platform » [EZ 5.3] - Exception - Erorr twig image

[EZ 5.3] - Exception - Erorr twig image

[EZ 5.3] - Exception - Erorr twig image

Tuesday 03 June 2014 3:28:19 pm - 2 replies


We have a problem on template twig with an ez render field content function. Actually, we have created objects on an external server and we work on a local server to develop. All is worked fine. However we have errors on twig templates with images from object because the CMS can find its.

For example, we try this :

 {{ ez_render_field( content, 'caption') }}

And we have an Exception :

 CRITICAL - Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("Could not find 'Content' with identifier '1118'")

An an error like this : 

 ERROR - Image with id var/.................... not found

We know that the image can not appear but the question is why there is an error and why it not displays the other datas of the template. Is there a configuration to disable this error ? On eZ4, the template continues to display.


Modified on Tuesday 03 June 2014 3:30:27 pm by Clem PERISCOPE

Wednesday 04 June 2014 12:10:25 pm


Your problem is very special. Your image is present, you can not use a field of the object to determine whether to display the image or not ...
Personally, I will override the template to display an image to do nothing locally ...



Friday 06 June 2014 11:55:16 am

Hello Christophe,

This is not a problem on image finally happy.gif Emoticon

Actually, the exception comed from relations object which have not been deleted properly.


Thank for your help


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from