Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miscellaneous tracebacks from the Pleiades logs #517

Open
jessesnyder opened this issue Jul 17, 2024 · 0 comments
Open

Miscellaneous tracebacks from the Pleiades logs #517

jessesnyder opened this issue Jul 17, 2024 · 0 comments
Assignees
Labels

Comments

@jessesnyder
Copy link

jessesnyder commented Jul 17, 2024

@paregorios It can be nice to minimize errors in advance of an upgrade, so you don't wonder if a problem is new. Surfacing these just in case...

[EDIT] Forgot we're not working on an upgrade for this site, but still 😊

   - URL: file:/srv/python27-apps/pleiades4/src/Products.PleiadesEntity/Products/PleiadesEntity/skins/PleiadesEntity/place_view.pt
   - Line 89, Column 4
   - Expression: <PathExpr standard:u'context/@@credit_utils/citation_authors'>
   - Names:
      {'container': <Place at /plone/places/846>,
       'context': <Place at /plone/places/846>,
       'default': <object object at 0xffff951ac820>,
       'here': <Place at /plone/places/846>,
       'loop': {},
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xffff44d026b0>,
       'request': <HTTPRequest, URL=https://pleiades.stoa.org/places/846/versions_history_form>,
       'root': <Application at >,
       'template': <FSPageTemplate at /plone/places/846/versions_history_form>,
       'traverse_subpath': [],
       'user': <SpecialUser 'Anonymous User'>}
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 155, in _eval
  Module Products.PageTemplates.Expressions, line 117, in render
  Module plone.memoize.view, line 47, in memogetter
  Module Products.PleiadesEntity.browser.credits, line 59, in citation_authors
IndexError: list index out of range
  - URL: file:/srv/python27-apps/pleiades4/eggs/Products.CMFPlone-4.3.20-py2.7.egg/Products/CMFPlone/skins/plone_content/discussionitem_view.pt
   - Line 12, Column 1
   - Expression: <PythonExpr context.redirectToDiscussable()>
   - Names:
      {'container': <plone.app.discussion.comment.Comment object at 0xffff8796fdd0>,
       'context': <plone.app.discussion.comment.Comment object at 0xffff8796fdd0>,
       'default': <object object at 0xffffb373e820>,
       'here': <plone.app.discussion.comment.Comment object at 0xffff8796fdd0>,
       'loop': {},
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xffff87afa8f0>,
       'request': <HTTPRequest, URL=https://pleiades.stoa.org/places/531093/++conversation++default/1707300096305099/discussionitem_view>,
       'root': <Application at >,
       'template': <FSPageTemplate at /plone/places/531093/++conversation++default/1707300096305099/discussionitem_view>,
       'traverse_subpath': [],
       'user': <SpecialUser 'Anonymous User'>}
  Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__
   - __traceback_info__: context.redirectToDiscussable()
  Module PythonExpr, line 1, in <expression>
  Module Products.CMFCore.FSPythonScript, line 127, in __call__
  Module Shared.DC.Scripts.Bindings, line 322, in __call__
  Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 344, in _exec
  Module script, line 8, in redirectToDiscussable
   - <FSPythonScript at /plone/places/531093/++conversation++default/1707300096305099/redirectToDiscussable>
   - Line 8
Unauthorized: You are not allowed to access 'id' in this context
2024-07-16T19:49:02 ERROR plone.app.viewletmanager Error while rendering viewlet-manager=plone.htmlhead, viewlet=pleiades.notredame.rich_meta
Traceback (most recent call last):
  File "/srv/python27-apps/pleiades4/eggs/plone.app.viewletmanager-2.0.12-py2.7.egg/plone/app/viewletmanager/manager.py", line 106, in render
    html.append(viewlet.render())
  File "/srv/python27-apps/pleiades4/eggs/plone.app.layout-2.3.20-py2.7.egg/plone/app/layout/viewlets/common.py", line 50, in render
    return self.index()
  File "/srv/python27-apps/pleiades4/eggs/Zope2-2.13.30-py2.7.egg/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.im_func(im_self, *args, **kw)
  File "/srv/python27-apps/pleiades4/eggs/Zope2-2.13.30-py2.7.egg/Products/Five/browser/pagetemplatefile.py", line 59, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/srv/python27-apps/pleiades4/eggs/zope.pagetemplate-3.6.3-py2.7.egg/zope/pagetemplate/pagetemplate.py", line 132, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/srv/python27-apps/pleiades4/eggs/zope.pagetemplate-3.6.3-py2.7.egg/zope/pagetemplate/pagetemplate.py", line 240, in __call__
    interpreter()
  File "/srv/python27-apps/pleiades4/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 271, in __call__
    self.interpret(self.program)
  File "/srv/python27-apps/pleiades4/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 343, in interpret
    handlers[opcode](self, args)
  File "/srv/python27-apps/pleiades4/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 533, in do_optTag_tal
    self.do_optTag(stuff)
  File "/srv/python27-apps/pleiades4/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 518, in do_optTag
    return self.no_tag(start, program)
  File "/srv/python27-apps/pleiades4/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 513, in no_tag
    self.interpret(program)
  File "/srv/python27-apps/pleiades4/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 343, in interpret
    handlers[opcode](self, args)
  File "/srv/python27-apps/pleiades4/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 620, in do_insertText_tal
    text = self.engine.evaluateText(stuff[0])
  File "/srv/python27-apps/pleiades4/eggs/Zope2-2.13.30-py2.7.egg/Products/PageTemplates/Expressions.py", line 225, in evaluateText
    text = self.evaluate(expr)
  File "/srv/python27-apps/pleiades4/eggs/zope.tales-3.5.3-py2.7.egg/zope/tales/tales.py", line 696, in evaluate
    return expression(self)
  File "/srv/python27-apps/pleiades4/eggs/zope.tales-3.5.3-py2.7.egg/zope/tales/pythonexpr.py", line 59, in __call__
    return eval(self._code, vars)
  File "<string>", line 1, in <module>
  File "/srv/python27-apps/pleiades4/src/Products.PleiadesEntity/Products/PleiadesEntity/browser/credits.py", line 72, in formatted_title
    return unicode(title, 'utf-8')
TypeError: decoding Unicode is not supported
  Module zope.tales.tales, line 696, in evaluate
   - URL: file:/srv/python27-apps/pleiades4/src/Products.PleiadesEntity/Products/PleiadesEntity/skins/PleiadesEntity/place_view.pt
   - Line 89, Column 4
   - Expression: <PathExpr standard:u'context/@@where'>
   - Names:
      {'container': <Place at /plone/places/677240335>,
       'context': <Place at /plone/places/677240335>,
       'default': <object object at 0xffff95195820>,
       'here': <Place at /plone/places/677240335>,
       'loop': {},
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xffff6bed4dd0>,
       'request': <HTTPRequest, URL=https://pleiades.stoa.org/places/677240335/versions_history_form>,
       'root': <Application at >,
       'template': <FSPageTemplate at /plone/places/677240335/versions_history_form>,
       'traverse_subpath': [],
       'user': <SpecialUser 'Anonymous User'>}
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 155, in _eval
  Module Products.PageTemplates.Expressions, line 117, in render
  Module pleiades.geographer.views, line 9, in __call__
  Module pleiades.geographer.geo, line 636, in coords
  Module plone.memoize.instance, line 51, in memogetter
  Module pleiades.geographer.geo, line 599, in reprPoint
  Module pleiades.geographer.geo, line 550, in centroid_by_connection_type
  Module pleiades.geographer.geo, line 550, in <lambda>
TypeError: unhashable type: 'list'
  Module zope.tales.tales, line 696, in evaluate
   - URL: file:/srv/python27-apps/pleiades4/src/Products.PleiadesEntity/Products/PleiadesEntity/skins/PleiadesEntity/place_view.pt
   - Line 154, Column 12
   - Expression: <PathExpr standard:u'context/@@locations-listing'>
   - Names:
      {'container': <Place at /plone/places/211425280>,
       'context': <Place at /plone/places/211425280>,
       'default': <object object at 0xffff95195820>,
       'here': <Place at /plone/places/211425280>,
       'loop': {},
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xffff516c5e90>,
       'request': <HTTPRequest, URL=https://pleiades.stoa.org/places/211425280/base_view>,
       'root': <Application at >,
       'template': <FSPageTemplate at /plone/places/211425280/base_view>,
       'traverse_subpath': [],
       'user': <SpecialUser 'Anonymous User'>}
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 155, in _eval
  Module Products.PageTemplates.Expressions, line 117, in render
  Module Products.PleiadesEntity.browser.attestations, line 125, in __call__
  Module Products.PleiadesEntity.browser.attestations, line 222, in rows
TypeError: int() argument must be a string or a number, not 'NoneType'
  Module zope.tales.tales, line 696, in evaluate
   - URL: /srv/python27-apps/pleiades4/src/pleiades.kml/pleiades/kml/kml_macros.pt
   - Line 17, Column 12
   - Expression: <PathExpr standard:u'folder/name'>
   - Names:
      {'args': (),
       'container': <ATTopic at /plone/indexes-old/batlas/79>,
       'context': <ATTopic at /plone/indexes-old/batlas/79>,
       'default': <object object at 0xffff99e76820>,
       'here': <ATTopic at /plone/indexes-old/batlas/79>,
       'loop': {},
       'nothing': None,
       'options': {},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xffff63c4f050>,
       'request': <HTTPRequest, URL=https://pleiades.stoa.org/indexes-old/batlas/79/@@kml>,
       'root': <Application at >,
       'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0xffff63f10c90>,
       'traverse_subpath': [],
       'user': <SpecialUser 'Anonymous User'>,
       'view': <Products.Five.metaclass.PleiadesTopicDocument object at 0xffff63f72e90>,
       'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0xffff63f10d10>}
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 147, in _eval
  Module zope.tales.expressions, line 118, in _eval
KeyError: 'folder'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants