Error in accessing site

AttributeError('__contains__',) (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: __contains__)

Occurs when I try to access my website

Provide the full traceback.

thats all i get in the whole page

Look at your error_log in the ZMI. Or check the traceback on the console.

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 Products.Five.browser.metaconfigure, line 485, 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, line 93, in call
Module, 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, line 246, in render
Module, line 951, in render_master
Module, line 80, in have_portlets
Module plone.portlets.manager, line 48, in visible
Module plone.portlets.manager, line 67, in portletsToShow
Module plone.portlets.manager, line 70, in allPortlets
Module plone.memoize.view, line 47, in memogetter
Module plone.portlets.manager, line 107, in _lazyLoadPortlets
Module plone.portlets.retriever, line 62, in getPortlets
Module, line 43, in globalPortletCategories
Module, line 55, in _getUserId
Module Products.CMFCore.MembershipTool, line 116, in getAuthenticatedMember
Module Products.CMFCore.MembershipTool, line 141, in wrapUser
AttributeError: contains

  • Expression: "python:plone_layout.have_portlets('plone.leftcolumn', view)"
  • Filename: ... egg/Products/CMFPlone/browser/templates/
  • Location: (line 43: col 22)
  • Source: ...
  • Arguments: repeat: {...} (0)
    template: <ViewPageTemplateFile - at 0x7fbe7d004250>
    views: <ViewMapper - at 0x7fbe7c2cf050>
    modules: <instance - at 0x7fbe868a87e8>
    args: <tuple - at 0x7fbe8f1ba050>
    here: <ImplicitAcquisitionWrapper front-page at 0x7fbe7e5143c0>
    user: <ImplicitAcquisitionWrapper - at 0x7fbe7e514b40>
    nothing: <NoneType - at 0x55c9344a0560>
    container: <ImplicitAcquisitionWrapper front-page at 0x7fbe7e5143c0>
    request: <instance - at 0x7fbe7e0bd6c8>
    wrapped_repeat: <SafeMapping - at 0x7fbe7e1d6100>
    traverse_subpath: <list - at 0x7fbe7e30a368>
    default: <object - at 0x7fbe8f0d9540>
    loop: {...} (0)
    context: <ImplicitAcquisitionWrapper front-page at 0x7fbe7e5143c0>
    view: <SimpleViewClass from /home/ananth/Plone/buildout-cache/eggs/ document_view at 0x7fbe7e497e50>
    translate: <function translate at 0x7fbe7c11bf50>
    root: <ImplicitAcquisitionWrapper Zope at 0x7fbe7e995640>
    options: {...} (0)
    target_language: <NoneType - at 0x55c9344a0560>
    2018-06-20 13:07:43 ERROR root Exception while rendering an error message

It seems that you are using an unsupported Plone version, in recent versions this expression is at line number 46. From the line numbers in your trace it may be 5.0.0, a four year old release with dozen of bugs fixed since this time.

if you are using an unsupported Plone version try to reproduce the problem in a test instance setup with the last version for this branch (that is, 5.0.8)