无法在 Centos 上使用 Diazo (plone.app.theming)

发布于 2024-12-07 02:06:54 字数 1423 浏览 1 评论 0原文

我使用 plone4.1 和 Diazo 在我的 mac 上制作了一个门户网站。

现在,我正在尝试将其部署在我的服务器(CentOs)上,其中还有另一个带有 plone4.0.5 + Collectivexdv 的站点。

当我使用我的重氮主题运行该网站(在全新的构建中)时,我通过 shell(实例 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

这是怎么回事?

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

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

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

What's the matter?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

爱要勇敢去追 2024-12-14 02:06:55

请参阅 Plone - XSLTApplyError:xsltValueOf:文本复制失败。可能您有一个过时的 libxml,因为像 CentOS 这样的旧发行版总是如此。

使用 z3c.recipe.staticlxml。

See Plone - XSLTApplyError: xsltValueOf: text copy failed. Probably you have an outdated libxml, as it is always the case with an old distribution like CentOS.

Use z3c.recipe.staticlxml.

剩一世无双 2024-12-14 02:06:55

听起来您可能拥有过于旧版本的 libxml2 和/或 libxslt。我在 libxml2 2.6.26 和 libxslt 1.1.17 中遇到了相同的问题。分别升级到 2.7.8 和 1.2.26 后,问题就消失了。

如果您无法在本地升级库,您可以使用构建中的“z3c.recipe.staticlxml”配方快速前进:

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

只需记住删除 Eggs 目录中(或者可能在 ~/. buildout/eggs 缓存,具体取决于您的 ~/.buildout/default.cfg 它的设置方式)。

It sounds like you might have overly old versions of libxml2 and/or libxslt. I encountered 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 went away.

If you can't upgrade the libraries locally, you can move forward quite quickly using the "z3c.recipe.staticlxml" recipe in your buildout:

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

Just remember to delete any existing lxml egg in the eggs directory (or possibly in your ~/.buildout/eggs cache, depending on how your ~/.buildout/default.cfg it set up) first.

败给现实 2024-12-14 02:06:55

我刚刚在 OS X 10.8 Server 上使用 Plone 4.2.1 让它工作,但只有一次我使用了统一安装程序。我将 libxml2 升级到了 2.8.0 版本。当我尝试此操作时,libxml2 版本 2.9.0 对于 OS X 10.8 来说已损坏。

I just got this to work using Plone 4.2.1 on OS X 10.8 Server but only once I used the unified installer. I bumped up the libxml2 to version 2.8.0. At the time I tried this, libxml2 version 2.9.0 was broken for OS X 10.8.

故乡的云 2024-12-14 02:06:54

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

[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

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文