Error while rendering plone.contentviews and app.iterate.checkout_info

I am getting erros while rendering plone.contentviews and plone.app.itereate.checkout_info. Also i got some errors while checking the portal_drafts. How to resolve the errors.

Home
portal_drafts
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 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module plone.app.drafts.browser.view, line 48, 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 132, in pt_render
Module five.pt.engine, line 93, in call
Module z3c.pt.pagetemplate, line 163, in render
Module chameleon.zpt.template, line 261, in render
Module chameleon.template, line 191, in render
Module chameleon.template, line 171, in render
Module df0b569efd9cae8d3517936fb74070fd.py, line 436, in render
Module plone.app.drafts.browser.view, line 64, in targetInfo
Module plone.app.uuid.utils, line 35, in uuidToObject
Module Products.ZCatalog.CatalogBrains, line 108, in getObject
Module OFS.Traversable, line 317, in restrictedTraverse
Module OFS.Traversable, line 300, in unrestrictedTraverse
traceback_info: (, 'the_right_cocktail')
KeyError: 'the_right_cocktail'

  • Expression: "python:view.targetInfo(targetKey)"
  • Filename: ... drafts-1.0-py2.7.egg/plone/app/drafts/browser/targets.pt
  • Location: (line 37: col 42)
  • Source: ... e="targetInfo python:view.targetInfo(targetKey); quotedKey p ...
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • Arguments: repeat: {...} (0)
    template: <ViewPageTemplateFile - at 0x7f4495818f50>
    views: <ViewMapper - at 0x7f44932ea790>
    modules: <instance - at 0x7f449d800e60>
    args: <tuple - at 0x7f44a4fad050>
    userId: sudhanshupani
    here: <ImplicitAcquisitionWrapper portal_drafts at 0x7f4491ad5370>
    user: <ImplicitAcquisitionWrapper - at 0x7f4491ad5e60>
    nothing: <NoneType - at 0x91a870>
    targets: <OOBTree - at 0x7f4493b39450>
    container: <ImplicitAcquisitionWrapper portal_drafts at 0x7f4491ad5370>
    request: <instance - at 0x7f4493a1aea8>
    wrapped_repeat: <SafeMapping - at 0x7f4492526ec0>
    traverse_subpath: <list - at 0x7f4491aed3b0>
    default: <object - at 0x7f44a4ec9520>
    loop: {...} (1)
    context: <ImplicitAcquisitionWrapper portal_drafts at 0x7f4491ad5370>
    view: <SimpleViewClass from /opt/plone/buildout-cache/eggs/plone.app.drafts-1.0-py2.7.egg/plone/app/drafts/browser/targets.pt targets at 0x7f44932eaf50>
    targetKey: f07b4514b61a47ceb7c6bacedd86d2fd
    translate: <function translate at 0x7f4492ad6b18>
    root: <ImplicitAcquisitionWrapper Zope at 0x7f449262af50>
    options: {...} (0)
    target_language: <NoneType - at 0x91a870>

Site Map

we discovered that issue yesterday and @rodfersou is already working on a solution for it.

1 Like

Our problem is different, our problem is with Plone 4.3.x and your problem is with Plone 5.x.

The way this view is implemented in both versions are different, so my solution will not help with this problem.

This is my fix for Plone 4.3 I mentioned before https://github.com/plone/plone.app.iterate/pull/26/files

error contentview

I get this error in Plone 5.2.10 when using a cloned content type (page), any help will be appreciated :slightly_smiling_face: