【问题标题】:Warning: exceptions.KeyError: u'Undefined namespace prefix: i18.'警告:exceptions.KeyError:u'未定义的命名空间前缀:i18。'
【发布时间】:2014-09-23 00:12:42
【问题描述】:

我在我们的 Plone 4.3.2 实例上遇到了这个错误:

站点设置 > 敏捷内容类型 >(选择类型)> 字段选项卡 > 编辑 XML 模型

这是完整的错误:

We’re sorry, but there seems to be an error…

Here is the full error message:

Display traceback as text

Traceback (innermost last):

Module ZPublisher.Publish, line 70, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module Products.Five.browser.metaconfigure, line 479, in __call__
Module Products.Five.browser.pagetemplatefile, line 125, in __call__
Module Products.Five.browser.pagetemplatefile, line 59, in __call__
Module zope.pagetemplate.pagetemplate, line 126, in pt_render
Warning: Compilation failed
Warning: exceptions.KeyError: u'Undefined namespace prefix: i18.'
PTRuntimeError: ['Compilation failed', "exceptions.KeyError: u'Undefined namespace prefix: i18.'"] 

我无法在网上找到有关此错误的有用信息,但@eleddy 提到这是一个常见的 Plone 问题,我需要做的就是升级一些东西来修复它。有谁知道“某事某事”是什么?谢谢!

如果有用,下面是我们 Plone 实例上当前安装的内容:

  • 克隆 4.3.2 (4307)
  • CMF 2.2.7
  • Zope 2.13.21
  • Python 2.7.5(默认,2014 年 3 月 9 日,22:15:05)[GCC 4.2.1 兼容 Apple LLVM 5.0 (clang-500.0.68)]
  • PIL 1.7.8(枕头)

还有附加组件...

  • 内容 portlet 1.8.1
  • ContentWellPortlets 4.2.1
  • 灵巧内容类型 2.0.9
  • 重氮主题支持 1.1.1
  • 下拉菜单 2.3.1
  • FacultyStaffDirectory 3.1.3
  • HTTP 缓存支持 1.1.6
  • Membrane:基于内容的用户和组 2.1.11
  • 克隆经典主题1.3.2
  • Plone JQuery 集成 1.7.2
  • Plone JQuery 工具集成 1.5.6
  • 克隆关键字管理器 2.1
  • Plone 快速上传 1.6.5
  • PloneFormGen 1.7.15
  • 关系 0.9b1
  • Twitter portlet 0.10
  • jQuery UI 1.10.1.2
  • plone.app.collection 1.0.11

【问题讨论】:

    标签: plone dexterity


    【解决方案1】:

    这是 Dexterity 中的一个错误,已修复 (https://github.com/plone/plone.app.dexterity/commit/4e3d4f8fa029662a089c3f01cf6401d34b84336e)。升级到 plone.app.dexterity 2.0.11 应该可以修复它。

    【讨论】:

    • 完美,再次感谢大卫!我最终只是将整个实例升级到 Plone 4.3.3,因为我在versions.cfg 中将plone.app.dexterity 更改为= 2.0.11 时遇到了一堆兼容性问题。不过现在工作正常。 :)
    • 快速提问:按照这些升级说明 (plone.org/documentation/manual/upgrade-guide/…) 取消注释 dist.plone.org/release... 然后评论versions.cfg - 然后我需要下载该versions.cfg 并替换我的本地用versions.cfg 吗? (也就是说,如果我再次运行 buildout?)
    • 不——你注释掉了versions.cfg,所以buildout不会再使用它了。如果您不想在运行 buildout 时像依赖 plone.org 那样依赖于 plone.org,那么您可以这样做(并切换回取消注释 versions.cfg 并注释 dist.plone.org)。
    • 好的,明白了。再次感谢大卫!
    猜你喜欢
    • 2016-07-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-16
    • 1970-01-01
    • 2011-06-09
    • 1970-01-01
    相关资源
    最近更新 更多