无法将内容添加到新的Plone网站:ValueError:无法找到update_version_before_edit异常 [英] Unable to add content to new Plone site: ValueError: Unable to find update_version_before_edit exception

查看:63
本文介绍了无法将内容添加到新的Plone网站:ValueError:无法找到update_version_before_edit异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仅使用统一安装程序成功在CentO上成功安装了Plone 4.2.1.登录后,我无法添加任何内容.

Just finished a successful install of Plone 4.2.1 on CentOs using the unified installer. Once logged in I cannot add any content.

我收到以下错误:

Traceback (innermost last):

    Module ZPublisher.Publish, line 126, in publish
    Module ZPublisher.mapply, line 77, in mapply
    Module ZPublisher.Publish, line 46, in call_object
    Module Products.CMFPlone.FactoryTool, line 453, in __call__
    Module ZPublisher.mapply, line 77, in mapply
    Module ZPublisher.Publish, line 46, in call_object
    Module Products.CMFFormController.FSControllerPageTemplate, line 91, in __call__
    Module Products.CMFFormController.BaseControllerPageTemplate, line 28, in _call
    Module Products.CMFFormController.ControllerBase, line 231, in getNext
    Module Products.CMFFormController.Actions.TraverseTo, line 35, in __call__
ValueError: Unable to find update_version_before_edit 

我已经运行过bin/buildout -n来更新组件.预先感谢您的帮助.

I've already run bin/buildout -n to update components. Thanks in advance for any help.

推荐答案

我今天在使用Plone 4.1.6时遇到了同样的问题.解决方法:

I had the same issue today with a Plone 4.1.6. Here's a workaround:

转到zmi-> portal_setup->选项卡导入"->在下拉菜单中选择"CMFEditions"->然后单击导入所有步骤"按钮.

Go to zmi -> portal_setup -> tab "import" -> select "CMFEditions" in the dropdown menu -> than hit the "import all steps" button.

问题是由于某种原因,我无法找到Product.CMFEditions的皮肤层未在portal_skins中注册,因此当您尝试创建处于版本控制之下的内容类型时,由于以下原因而失败这.我将对其进行更深入的研究,但与此同时,此技巧也能发挥作用.

The problem is that for some reason, that I couldn't find yet, the skin layer of Product.CMFEditions is not registered in the portal_skins and so when you try to create a content type that is under versioning it fails because of this. I'll investigate it more deeply but in the meanwhile this trick does its job.

这篇关于无法将内容添加到新的Plone网站:ValueError:无法找到update_version_before_edit异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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