Ticket #13753 (new Bug)

Opened 3 years ago

Last modified 20 months ago

Customizing search results template in Plone 4.3

Reported by: feesh Owned by: vangheem
Priority: major Milestone: 4.x
Component: Templates/CSS Version: 4.3
Keywords: templates, search, collection Cc:

Description

I'm trying to make just basic structural changes to the search.pt template (under portal_view_customizations — plone.app.search/search.pt). I load this up from portal_view_customizations, hit "customize" at the bottom, and make any sort of changes*. If I do a search on the page after altering the template, it prompts for a username and password.

I'm not getting any errors and can't quite figure out what might be the issue. Is there some workflow or publishing process I'm missing for within /portal_view_customizations? I've been able to edit other things within there like portlet templates without this issue popping up.

Thanks a lot. Non-urgent, but I'm perplexed. :)

*(by any change, I mean I went in and added just a class on the around the brief description — no dice. Tried changing just some of the template text "filed under" after that, still nothing.)

Change History

comment:1 Changed 2 years ago by feesh

  • Priority changed from minor to major
  • Keywords search, collection added; search removed
  • Component changed from Unknown to Templates/CSS
  • Owner set to vangheem

Hello again! Just found the same error for the template: plone.app.collection.interfaces.ICollection standard_view (zope.publisher.interfaces.browser.IDefaultBrowserLayer)

Even if you hit customize but don't change anything, this error shows up when you try to view anything using that template. Here's the 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 five.customerize.zpt, line 83, in __call__
    Module Products.PageTemplates.ZopePageTemplate, line 334, in _exec
    Module Products.PageTemplates.ZopePageTemplate, line 431, in pt_render
    Module Products.PageTemplates.PageTemplate, line 79, in pt_render
    Module zope.pagetemplate.pagetemplate, line 132, in pt_render
    Warning: Macro expansion failed
    Warning: <class 'zope.location.interfaces.LocationError'>: (<five.customerize.zpt.TTWViewTemplateRenderer object at 0x7f5394daf1d0>, 'macros')
    Module zope.pagetemplate.pagetemplate, line 240, in __call__
    Module zope.tal.talinterpreter, line 271, in __call__
    Module zope.tal.talinterpreter, line 343, in interpret
    Module zope.tal.talinterpreter, line 888, in do_useMacro
    Module zope.tal.talinterpreter, line 343, in interpret
    Module zope.tal.talinterpreter, line 533, in do_optTag_tal
    Module zope.tal.talinterpreter, line 518, in do_optTag
    Module zope.tal.talinterpreter, line 513, in no_tag
    Module zope.tal.talinterpreter, line 343, in interpret
    Module zope.tal.talinterpreter, line 954, in do_defineSlot
    Module zope.tal.talinterpreter, line 343, in interpret
    Module zope.tal.talinterpreter, line 533, in do_optTag_tal
    Module zope.tal.talinterpreter, line 518, in do_optTag
    Module zope.tal.talinterpreter, line 513, in no_tag
    Module zope.tal.talinterpreter, line 343, in interpret
    Module zope.tal.talinterpreter, line 858, in do_defineMacro
    Module zope.tal.talinterpreter, line 343, in interpret
    Module zope.tal.talinterpreter, line 954, in do_defineSlot
    Module zope.tal.talinterpreter, line 343, in interpret
    Module zope.tal.talinterpreter, line 533, in do_optTag_tal
    Module zope.tal.talinterpreter, line 518, in do_optTag
    Module zope.tal.talinterpreter, line 513, in no_tag
    Module zope.tal.talinterpreter, line 343, in interpret
    Module zope.tal.talinterpreter, line 954, in do_defineSlot
    Module zope.tal.talinterpreter, line 343, in interpret
    Module zope.tal.talinterpreter, line 533, in do_optTag_tal
    Module zope.tal.talinterpreter, line 518, in do_optTag
    Module zope.tal.talinterpreter, line 513, in no_tag
    Module zope.tal.talinterpreter, line 343, in interpret
    Module zope.tal.talinterpreter, line 946, in do_defineSlot
    Module zope.tal.talinterpreter, line 343, in interpret
    Module zope.tal.talinterpreter, line 533, in do_optTag_tal
    Module zope.tal.talinterpreter, line 518, in do_optTag
    Module zope.tal.talinterpreter, line 513, in no_tag
    Module zope.tal.talinterpreter, line 343, in interpret
    Module zope.tal.talinterpreter, line 867, in do_useMacro
    Module zope.tales.tales, line 696, in evaluate
    URL: /olive/news/news-events/plone.app.collection.interfaces.icollection-summary_view
    Line 12, Column 0
    Expression: <PathExpr standard:u'context/standard_view/macros/content-core'>
    Names:

    {'container': <Collection at /olive/news/news-events>,
     'context': <Collection at /olive/news/news-events>,
     'default': <object object at 0x14c34e0>,
     'here': <Collection at /olive/news/news-events>,
     'loop': {},
     'nothing': None,
     'options': {'args': ()},
     'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x7f539e7d2368>,
     'request': <HTTPRequest, URL=http://169.237.124.22:8081/olive/news/news-events/summary_view>,
     'root': <Application at >,
     'template': <TTWViewTemplate at /olive/news/news-events/plone.app.collection.interfaces.icollection-summary_view>,
     'user': <PropertiedUser 'admin'>,
     'view': <five.customerize.zpt.TTWView object at 0x7f539de74810>}

    Module zope.tales.expressions, line 217, in __call__
    Module Products.PageTemplates.Expressions, line 147, in _eval
    Module zope.tales.expressions, line 124, in _eval
    Module Products.PageTemplates.Expressions, line 77, in boboAwareZopeTraverse
    Module zope.traversing.adapters, line 136, in traversePathElement
    __traceback_info__: (<five.customerize.zpt.TTWViewTemplateRenderer object at 0x7f5394986c90>, 'macros')
    Module zope.traversing.adapters, line 50, in traverse
    __traceback_info__: (<five.customerize.zpt.TTWViewTemplateRenderer object at 0x7f5394986c90>, 'macros', ['content-core'])

LocationError: (<five.customerize.zpt.TTWViewTemplateRenderer object at 0x7f5394986c90>, 'macros') 

comment:2 Changed 20 months ago by cwainwright

might be a permissions issue, or bug in portal_view_customizations. I recommend making your changes on the filesystem, or try collective.jbot

Note: See TracTickets for help on using tickets.