Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to add content to new Plone site: ValueError: Unable to find update_version_before_edit exception

Tags:

plone

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

I get the following error:

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 

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

like image 667
user1686000 Avatar asked Sep 20 '12 12:09

user1686000


1 Answers

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

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

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.

like image 174
Giacomo Spettoli Avatar answered Oct 20 '22 09:10

Giacomo Spettoli