Unable to use Diazo (plone.app.theming) in Centos

I made webportal on my mac using plone4.1 and Diazo.

Now I'm trying to deploy it on my server (CentOs), where there is another site with plone4.0.5 + collectxdv.

When I start the site (in a new composition) with my diazotema, I get these lines through the shell (fg instance):

2011-09-27 09:32:10 ERROR plone.transformchain Unexpected error whilst trying to apply transform chain Traceback (most recent call last): File "/home/plone/.buildout/eggs/plone.transformchain-1.0-py2.6.egg/plone/transformchain/transformer.py", line 42, in __call__ newResult = handler.transformIterable(result, encoding) File "/home/plone/.buildout/eggs/plone.app.theming-1.0b8-py2.6.egg/plone/app/theming/transform.py", line 205, in transformIterable transform = self.setupTransform() File "/home/plone/.buildout/eggs/plone.app.theming-1.0b8-py2.6.egg/plone/app/theming/transform.py", line 150, in setupTransform xsl_params=xslParams, File "/home/plone/.buildout/eggs/diazo-1.0rc3-py2.6.egg/diazo/compiler.py", line 106, in compile_theme read_network=read_network, File "/home/plone/.buildout/eggs/diazo-1.0rc3-py2.6.egg/diazo/rules.py", line 160, in process_rules rules_doc = fixup_themes(rules_doc) File "/home/plone/.buildout/eggs/diazo-1.0rc3-py2.6.egg/diazo/utils.py", line 49, in __call__ result = self.xslt(*args, **kw) File "xslt.pxi", line 568, in lxml.etree.XSLT.__call__ (src/lxml/lxml.etree.c:120289) XSLTApplyError: xsltValueOf: text copy failed 

What's the matter?

+4
source share
4 answers

I had the same problem, and because of the old libxml2 / libxslt. Add these lines to your structure:

 [buildout] parts = lxml # keep lxml as the first one! ... instance [lxml] recipe = z3c.recipe.staticlxml egg = lxml libxml2-url = ftp://xmlsoft.org/libxml2/libxml2-2.7.8.tar.gz libxslt-url = ftp://xmlsoft.org/libxml2/libxslt-1.1.26.tar.gz static-build = true force = false 
+6
source

See Plone - XSLTApplyError: xsltValueOf: text copy failed . You probably have an outdated libxml, as is always the case with an old distribution, such as CentOS.

Use z3c.recipe.staticlxml.

+5
source

It looks like you may have too old versions of libxml2 and / or libxslt. I ran into identical problems with libxml2 2.6.26 and libxslt 1.1.17. After upgrading to 2.7.8 and 1.2.26 (respectively), the problems disappeared.

If you cannot update libraries locally, you can quickly move forward using the recipe "z3c.recipe.staticlxml" in your creation:

 [lxml] recipe = z3c.recipe.staticlxml egg = lxml 

Remember to delete any existing lxml egg in the eggs directory (or perhaps in the ~ / .buildout / eggs cache, depending on how you configured it in ~ / .buildout / default.cfg).

+3
source

I just got this to work with Plone 4.2.1 on OS X 10.8 Server, but only once did I use the unified installer. I encountered libxml2 before version 2.8.0. At the time I tried this, libxml2 version 2.9.0 was broken for OS X 10.8.

+3
source

All Articles