This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » eZ Publish 5 Platform » Error compilation with XML Bloc

Error compilation with XML Bloc

Error compilation with XML Bloc

Thursday 09 October 2014 10:18:19 am - 4 replies


I've a very big problem.

With my team, we work on a project EzPublish 5 version 2014.7 They work on Linux and me on Mac (for photoshop and webdesign).

Fairly regularly on the block XML type field, I can't make them display. The error is really weird, or rather I can't understand from where comes the problem.

This is my error : 


Here's how I call my XML Block :

{% if not ez_is_field_empty( content, "description" ) %}
    {{ ez_render_field( content, 'description' ) }}
{% endif %}

With my colleagues, we have the same Vendors, and the same database.The only difference we have is the version of PHP.

They are in 5.4.9 and I 5.4.32.Is there a compatibility issue with this version of PHP ?

I'm doing different test and if I empty the field it is the same. If I empty but I do a test with ez_is_field_empty, I no longer necessarily error because the field is empty.

Have you ever had this error ?Thanks for your help.


Modified on Thursday 09 October 2014 10:24:42 am by Stéphane Savona

Thursday 09 October 2014 10:58:37 am

Hi Stéphane

This error means that there is an issue with the XSL stylesheet used to convert internal XML format to HTML5. 

Do you use custom XSL stylesheets, e.g. for custom tags? The problem might be there... Furthermore, if you want more information on your exception, install and activate XDebug PHP extension. It will give you the whole stack trace.

Thursday 09 October 2014 11:07:26 am

Hi Jérôme

Arf.... I'm very sorry... It's my fault. I lose 1h just for a small space in my directory name (path in my site local)...

Mac is very permissive for this kind of thing and so we take bad habit...

Sorry :P

Thx Jérôme for your answer !



Thursday 11 December 2014 12:21:46 pm

Hi there,

I currently encounter the same problem :

  • a page with an XML block
  • only on dev environment
 ContextErrorException: Warning: XSLTProcessor::importStylesheet(): compilation error: file /Volumes/Workspace%20HD/Projects/OREME%20Website/Dev/oreme_ezpublish5_2014.07/web/ line 2 element import in /Volumes/Workspace HD/Projects/OREME Website/Dev/oreme_ezpublish5_2014.07/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/FieldType/XmlText/Converter/Html5.php line 140

I didn't create XSL stylesheets.

I'm not sure to know how to fix that.Stéphane, what kind of "small space" are you talking about?

I also use a Mac for my development. Is this due to the directory path of my projet, which contain spaces? (like in my volume name "Workspace HD"?) 


Modified on Tuesday 16 December 2014 5:37:23 pm by Julien Huon

Wednesday 17 December 2014 11:31:12 am

Indeed the problem was due to the space character in the name of my volume "Workspace HD" :/


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

36 542 Users on board!

Forums menu

Proudly Developed with from