无法在 Centos 上使用 Diazo (plone.app.theming) [英] Unable to use Diazo (plone.app.theming) on Centos

查看:29
本文介绍了无法在 Centos 上使用 Diazo (plone.app.theming)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 plone4.1 和 Diazo 在我的 Mac 上创建了一个门户网站.

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

现在,我正在尝试将它部署在我的服务器 (CentO) 上,那里还有另一个带有 plone4.0.5 +collectivexdv 的站点.

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

当我使用我的 diazotheme 运行站点(在全新的构建中)时,我通过 shell(实例 fg)获得了这些行:

When I run the site (in a brand new buildout) with my diazotheme I obtain this lines via shell (instance fg):

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

怎么了?

推荐答案

我遇到了完全相同的问题,这是由于旧的 libxml2/libxslt.在您的构建中添加这些行:

I had the exact same problem and it's due an old libxml2/libxslt. Add these lines on your buildout:

[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

这篇关于无法在 Centos 上使用 Diazo (plone.app.theming)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆