Ticket #1211 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

Content Portlet has no body content

Reported by: mihamina Owned by: jmorliaguet
Priority: P2 Milestone: CPS 3.4.0
Component: CPSPortlets Version: TRUNK
Severity: major Keywords: !!! content portlet open office
Cc: mihamina.rakotomandimby@…

Description

I switched to [30770]. A content portlet listing all Oo documents on the website and present before the update has been broken: it just displays "!!!". Trying to create a new one gives the same results. I dont know if CPSPortlet or CPSSkins.

Change History

comment:1 Changed 14 years ago by mihamina

I mentionned OO documents, but it's general: whatever type of document I try to search.

comment:2 Changed 14 years ago by jmorliaguet

can you turn off the crash shield in portal_themes > options and send the traceback?

comment:3 Changed 14 years ago by mihamina

I turned it off. I tried to add a content portlet, listing Forum Posts. Just after clicking the "Close" button of the pop-up:

Site Error

An error was encountered while publishing this resource.

TypeError
Sorry, a site error occurred.

Traceback (innermost last):

    * Module ZPublisher.Publish, line 187, in publish_module_standard
    * Module Products.Localizer, line 60, in new_publish
    * Module ZPublisher.Publish, line 144, in publish
    * Module Products.CPSCompat.PatchPublisherConflictErrors, line 100, in zpublisher_exception_hook
    * Module ZPublisher.Publish, line 113, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Shared.DC.Scripts.Bindings, line 311, in __call__
    * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
    * Module Products.CMFCore.FSPageTemplate, line 195, in _exec
    * Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
    * Module Products.PageTemplates.PageTemplate, line 104, in pt_render
      <FSPageTemplate at /rktmb/cpsskins_portlet_manage_form>
    * Module TAL.TALInterpreter, line 206, in __call__
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 677, in do_condition
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 426, in do_optTag_tal
    * Module TAL.TALInterpreter, line 411, in do_optTag
    * Module TAL.TALInterpreter, line 406, in no_tag
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 711, in do_useMacro
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 426, in do_optTag_tal
    * Module TAL.TALInterpreter, line 411, in do_optTag
    * Module TAL.TALInterpreter, line 406, in no_tag
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 653, in do_loop_tal
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 426, in do_optTag_tal
    * Module TAL.TALInterpreter, line 411, in do_optTag
    * Module TAL.TALInterpreter, line 406, in no_tag
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 653, in do_loop_tal
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 426, in do_optTag_tal
    * Module TAL.TALInterpreter, line 411, in do_optTag
    * Module TAL.TALInterpreter, line 406, in no_tag
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 677, in do_condition
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 426, in do_optTag_tal
    * Module TAL.TALInterpreter, line 411, in do_optTag
    * Module TAL.TALInterpreter, line 406, in no_tag
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 653, in do_loop_tal
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 426, in do_optTag_tal
    * Module TAL.TALInterpreter, line 411, in do_optTag
    * Module TAL.TALInterpreter, line 406, in no_tag
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 477, in do_setLocal_tal
    * Module Products.PageTemplates.TALES, line 221, in evaluate
      URL: file:CPSSkins/skins/cpsskins_cmf/cpsskins_main_template_portlet_edit.pt
      Line 44, Column 16
      Expression: <PythonExpr isRenderable and content.render_cache(shield=shield, context_obj=context_obj, enable_esi=enable_esi, boxedit=boxedit, override=override, visibility_check=1, guard_check=0)>
      Names:

      {'container': <CPSDefaultSite at /rktmb>,
       'context': <CPSDefaultSite at /rktmb>,
       'default': <Products.PageTemplates.TALES.Default instance at 0xb76ebc4c>,
       'here': <CPSDefaultSite at /rktmb>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb10054ac>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb76efcac>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xb10054ac>,
       'request': <HTTPRequest, URL=http://www.rktmb.org/cpsskins_portlet_manage_form>,
       'root': <Application at >,
       'template': <FSPageTemplate at /rktmb/cpsskins_portlet_manage_form>,
       'traverse_subpath': [],
       'user': mihamina}

    * Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
      __traceback_info__: isRenderable and content.render_cache(shield=shield, context_obj=context_obj, enable_esi=enable_esi, boxedit=boxedit, override=override, visibility_check=1, guard_check=0)
    * Module Python expression "isRenderable and content.render_cache(shield=shield, context_obj=context_obj, enable_esi=enable_esi, boxedit=boxedit, override=override, visibility_check=1, guard_check=0)", line 1, in <expression>
    * Module Products.CPSSkins.PortalBoxGroup, line 313, in render_cache
    * Module Products.CPSSkins.PortalBoxGroup, line 258, in render
    * Module Products.CPSPortlets.CPSPortlet, line 533, in render_cache
    * Module Products.CPSDocument.CPSDocument, line 63, in render
    * Module Products.CPSDocument.FlexibleTypeInformation, line 869, in renderObject
    * Module Products.CPSDocument.FlexibleTypeInformation, line 840, in _renderLayouts
    * Module Products.CPSSchemas.Layout, line 387, in renderLayoutStructure
    * Module Products.CPSPortlets.CPSPortletWidget, line 78, in render
    * Module Shared.DC.Scripts.Bindings, line 311, in __call__
    * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
    * Module Products.CMFCore.FSPageTemplate, line 195, in _exec
    * Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
    * Module Products.PageTemplates.PageTemplate, line 104, in pt_render
      <FSPageTemplate at /rktmb/widget_portlet_content used for /rktmb/portal_layouts/content_portlet/w__portlet>
    * Module TAL.TALInterpreter, line 206, in __call__
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 477, in do_setLocal_tal
    * Module Products.PageTemplates.TALES, line 221, in evaluate
      URL: file:CPSPortlets/skins/cpsportlets_widgets/widget_portlet_content.pt
      Line 1, Column 0
      Expression: <PythonExpr here.getContentItems(obj=context, get_metadata=get_metadata, **dict(ds))>
      Names:

      {'container': <CPSDefaultSite at /rktmb>,
       'context': <CPSPortletWidget at /rktmb/portal_layouts/content_portlet/w__portlet>,
       'default': <Products.PageTemplates.TALES.Default instance at 0xb76ebc4c>,
       'here': <CPSPortletWidget at /rktmb/portal_layouts/content_portlet/w__portlet>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb1009bcc>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb76efcac>,
       'nothing': None,
       'options': {'args': (),
                   'boxedit': 1,
                   'context_obj': <CPSDefaultSite at /rktmb>,
                   'datastructure': {'query_title': '', 'folder_path': '', 'Title': 'Messages Forum', 'cluster_id': '', 'max_items': '5', 'Description': '', 'show_icons': False, 'sort_on': 'Date', 'display_description': True, 'visibility_range': [0, 1], 'syndication_formats': [], 'portlet': '', 'short_syndication_formats': False, 'link_string': '&gt;&gt;', 'render_items': False, 'render_method': '', 'searchable_types': ['ForumPost'], 'contextual': False, 'disable_override': False, 'slot_override': False, 'search_type': 'all', 'sort_reverse': True, 'max_words': '0'},
                   'folder_editable': 1,
                   'folder_rurl': '',
                   'guard_check': 0,
                   'layout_mode': 'view',
                   'mode': 'view',
                   'override': 1,
                   'portlet': <CPSPortlet at /rktmb/.cps_portlets/portlet_506569967>,
                   'visibility_check': 1,
                   'widget_infos': {'cluster_id': {'widget': <CPSStringWidget at /rktmb/portal_layouts/content_portlet/w__cluster_id>,
                                                   'widget_css_class': '',
                                                   'widget_input_area_id': 'widget__cluster_id',
                                                   'widget_javascript': '',
                                                   'widget_mode': 'hidden'},
                                    'contextual': {'widget': <CPSBooleanWidget at /rktmb/portal_layouts/content_portlet/w__contextual>,
                                                   'widget_css_class': '',
                                                   'widget_input_area_id': None,
                                                   'widget_javascript': '',
                                                   'widget_mode': 'hidden'},
                                    'display_description': {'widget': <CPSBooleanWidget at /rktmb/portal_layouts/content_portlet/w__display_description>,
                                                            'widget_css_class': '',
                                                            'widget_input_area_id': None,
                                                            'widget_javascript': '',
                                                            'widget_mode': 'hidden'},
                                    'folder_path': {'widget': <CPSStringWidget at /rktmb/portal_layouts/content_portlet/w__folder_path>,
                                                    'widget_css_class': '',
                                                    'widget_input_area_id': 'widget__folder_path',
                                                    'widget_javascript': '',
                                                    'widget_mode': 'hidden'},
                                    'link_string': {'widget': <CPSStringWidget at /rktmb/portal_layouts/content_portlet/w__link_string>,
                                                    'widget_css_class': '',
                                                    'widget_input_area_id': 'widget__link_string',
                                                    'widget_javascript': '',
                                                    'widget_mode': 'hidden'},
                                    'max_items': {'widget': <CPSIntWidget at /rktmb/portal_layouts/content_portlet/w__max_items>,
                                                  'widget_css_class': '',
                                                  'widget_input_area_id': None,
                                                  'widget_javascript': '',
                                                  'widget_mode': 'hidden'},
                                    'max_words': {'widget': <CPSIntWidget at /rktmb/portal_layouts/content_portlet/w__max_words>,
                                                  'widget_css_class': '',
                                                  'widget_input_area_id': None,
                                                  'widget_javascript': '',
                                                  'widget_mode': 'hidden'},
                                    'portlet': {'widget': <CPSPortletWidget at /rktmb/portal_layouts/content_portlet/w__portlet>,
                                                'widget_css_class': '',
                                                'widget_input_area_id': None,
                                                'widget_javascript': '',
                                                'widget_mode': 'view'},
                                    'query_title': {'widget': <CPSStringWidget at /rktmb/portal_layouts/content_portlet/w__query_title>,
                                                    'widget_css_class': '',
                                                    'widget_input_area_id': 'widget__query_title',
                                                    'widget_javascript': '',
                                                    'widget_mode': 'hidden'},
                                    'render_items': {'widget': <CPSBooleanWidget at /rktmb/portal_layouts/content_portlet/w__render_items>,
                                                     'widget_css_class': '',
                                                     'widget_input_area_id': None,
                                                     'widget_javascript': '',
                                                     'widget_mode': 'hidden'},
                                    'render_method': {'widget': <CPSStringWidget at /rktmb/portal_layouts/content_portlet/w__render_method>,
                                                      'widget_css_class': '',
                                                      'widget_input_area_id': 'widget__render_method',
                                                      'widget_javascript': '',
                                                      'widget_mode': 'hidden'},
                                    'search_type': {'widget': <CPSSelectWidget at /rktmb/portal_layouts/content_portlet/w__search_type>,
                                                    'widget_css_class': '',
                                                    'widget_input_area_id': 'widget__search_type',
                                                    'widget_javascript': '',
                                                    'widget_mode': 'hidden'},
                                    'searchable_types': {'widget': <CPSMultiSelectWidget at /rktmb/portal_layouts/content_portlet/w__searchable_types>,
                                                         'widget_css_class': '',
                                                         'widget_input_area_id': 'widget__searchable_types',
                                                         'widget_javascript': '',
                                                         'widget_mode': 'hidden'},
                                    'short_syndication_formats': {'widget': <CPSCheckBoxWidget at /rktmb/portal_layouts/content_portlet/w__short_syndication_formats>,
                                                                  'widget_css_class': '',
                                                                  'widget_input_area_id': None,
                                                                  'widget_javascript': '',
                                                                  'widget_mode': 'hidden'},
                                    'show_icons': {'widget': <CPSBooleanWidget at /rktmb/portal_layouts/content_portlet/w__show_icons>,
                                                   'widget_css_class': '',
                                                   'widget_input_area_id': None,
                                                   'widget_javascript': '',
                                                   'widget_mode': 'hidden'},
                                    'sort_on': {'widget': <CPSSelectWidget at /rktmb/portal_layouts/content_portlet/w__sort_on>,
                                                'widget_css_class': '',
                                                'widget_input_area_id': 'widget__sort_on',
                                                'widget_javascript': '',
                                                'widget_mode': 'hidden'},
                                    'sort_reverse': {'widget': <CPSBooleanWidget at /rktmb/portal_layouts/content_portlet/w__sort_reverse>,
                                                     'widget_css_class': '',
                                                     'widget_input_area_id': None,
                                                     'widget_javascript': '',
                                                     'widget_mode': 'hidden'},
                                    'syndication_formats': {'widget': <CPSMultiSelectWidget at /rktmb/portal_layouts/content_portlet/w__syndication_formats>,
                                                            'widget_css_class': '',
                                                            'widget_input_area_id': 'widget__syndication_formats',
                                                            'widget_javascript': '',
                                                            'widget_mode': 'hidden'}}},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xb1009bcc>,
       'request': <HTTPRequest, URL=http://www.rktmb.org/cpsskins_portlet_manage_form>,
       'root': <Application at >,
       'template': <FSPageTemplate at /rktmb/widget_portlet_content used for /rktmb/portal_layouts/content_portlet/w__portlet>,
       'traverse_subpath': [],
       'user': mihamina}

    * Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
      __traceback_info__: here.getContentItems(obj=context, get_metadata=get_metadata, **dict(ds))
    * Module Python expression "here.getContentItems(obj=context, get_metadata=get_metadata, **dict(ds))", line 1, in <expression>
    * Module AccessControl.ZopeGuards, line 341, in guarded_apply
    * Module AccessControl.ZopeGuards, line 363, in builtin_guarded_apply
    * Module Products.CMFCore.FSPythonScript, line 108, in __call__
    * Module Shared.DC.Scripts.Bindings, line 311, in __call__
    * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
    * Module Products.CMFCore.FSPythonScript, line 163, in _exec
    * Module None, line 170, in getContentItems
      <FSPythonScript at /rktmb/getContentItems used for /rktmb/portal_layouts/content_portlet/w__portlet>
      Line 170

TypeError: int() can't convert non-string with explicit base (Also, an error occurred while attempting to render the standard error message.)

comment:4 Changed 14 years ago by mihamina

But if I re-turn off the crash shiel, then the "!!!" reappears in the portlet (the portlet has been added, anyway). I had a llok at the Traceback, it is still a bit difficult for me...

comment:5 Changed 14 years ago by jmorliaguet

  • Status changed from new to closed
  • Resolution set to fixed

fixed in [30789].

the bug seems to have been here for a long time, but it wasn't triggered until recently.

Note: See TracTickets for help on using tickets.