eZ Community » Forums » Install & configuration » Twig_Error_Runtime / XSLT convert...
expandshrink

Twig_Error_Runtime / XSLT convert error after completing installation

Twig_Error_Runtime / XSLT convert error after completing installation

Wednesday 16 December 2015 4:40:21 pm - 2 replies

After installing eZ Platform I'm getting a 500 error when I try to go to the site. Note that I'm on Windows 8.1 with IIS 8.5, but I'm confident I've configured everything correctly on the web server side.

I see the following error in my prod.log file.

request.CRITICAL: Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("Catchable Fatal Error: Argument 1 passed to eZ\Publish\Core\FieldType\RichText\Converter\Xslt::convert() must be an instance of DOMDocument, boolean given, called in E:\src\Applications\ez\vendor\ezsystems\ezpublish-kernel\eZ\Publish\Core\FieldType\RichText\Converter\Aggregate.php on line 51 and defined") in "EzPublishCoreBundle::content_fields.html.twig"." at E:\src\Applications\ez\app\cache\prod\classes.php line 5158 {"exception":"[object] (Twig_Error_Runtime(code: 0): An exception has been thrown during the rendering of a template (\"Catchable Fatal Error: Argument 1 passed to eZ\\Publish\\Core\\FieldType\\RichText\\Converter\\Xslt::convert() must be an instance of DOMDocument, boolean given, called in E:\\src\\Applications\\ez\\vendor\\ezsystems\\ezpublish-kernel\\eZ\\Publish\\Core\\FieldType\\RichText\\Converter\\Aggregate.php on line 51 and defined\") in \"EzPublishCoreBundle::content_fields.html.twig\". at E:\\src\\Applications\\ez\\app\\cache\\prod\\classes.php:5158, Symfony\\Component\\Debug\\Exception\\ContextErrorException(code: 0): Catchable Fatal Error: Argument 1 passed to eZ\\Publish\\Core\\FieldType\\RichText\\Converter\\Xslt::convert() must be an instance of DOMDocument, boolean given, called in E:\\src\\Applications\\ez\\vendor\\ezsystems\\ezpublish-kernel\\eZ\\Publish\\Core\\FieldType\\RichText\\Converter\\Aggregate.php on line 51 and defined at E:\\src\\Applications\\ez\\vendor\\ezsystems\\ezpublish-kernel\\eZ\\Publish\\Core\\FieldType\\RichText\\Converter\\Xslt.php:122)"}

 

After some debugging it looks like it's failing on Line 46 of the following file:

\ez\vendor\ezsystems\ezpublish-kernel\eZ\Publish\Core\FieldType\RichText\Converter\Aggregate.php 

 

Apparently it is passing 5 "converters" into the method, and when it hits the fourth, it passes the $document (DOMDocument) to the Xlst::convert() method, located here:

 \ez\vendor\ezsystems\ezpublish-kernel\eZ\Publish\Core\FieldType\RichText\Converter\Xslt.php

 

And on Line 135 of that file, when it calls XSLTProcessor::transformToDoc(), the call just returns (bool) false instead of a DOMDocument object.

What's going on? How can I fix this?

Modified on Wednesday 16 December 2015 4:41:45 pm by Brian Lacy

Wednesday 23 December 2015 11:17:11 am

Brian,

Please check out this bugfix: https://github.com/ezsystems/ezpublish-kernel/commit/cbacdfc848fd395bce0e7e10e7adf243a353cf26

That did the trick for me.

Best Regards from Munich,

Andreas Tremel

Modified on Thursday 07 January 2016 10:47:23 am by Andreas Tremel

Thursday 07 January 2016 10:46:58 am

Brian,

Did you manage to get it up and running?

After applying the patch, I ran into another error on the login page: http://share.ez.no/forums/install-configuration/windows-iis-can-t-login-to-platform-ui

Does the login work on your end?

Best,

Andreas

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from