Uploaded image for project: 'LIMS'
  1. LIMS
  2. LIMS-1377

Error when trying to publish after updating branch hotfix/next or develop

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.1.4
    • Fix Version/s: 3.1.5
    • Component/s: None
    • Labels:
      None

      Description

      After updating to branch hotfix/next or develop an error when trying to publish appears.

      AA14-0020-R01 - Unable to load the template 'default.pt':
      Traceback (most recent call last):
      File "/opt/bika301/zinstance/src/bika.lims/bika/lims/browser/analysisrequest/publish.py", line 108, in getReportTemplate
      reptemplate = embed(self)
      File "/opt/bika301/buildout-cache/eggs/Zope2-2.13.21-py2.7.egg/Products/Five/browser/pagetemplatefile.py", line 59, in _call_
      sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
      File "/opt/bika301/buildout-cache/eggs/zope.pagetemplate-3.6.3-py2.7.egg/zope/pagetemplate/pagetemplate.py", line 132, in pt_render
      strictinsert=0, sourceAnnotations=sourceAnnotations
      File "/opt/bika301/buildout-cache/eggs/zope.pagetemplate-3.6.3-py2.7.egg/zope/pagetemplate/pagetemplate.py", line 240, in _call_
      interpreter()
      File "/opt/bika301/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 271, in _call_
      self.interpret(self.program)
      File "/opt/bika301/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 343, in interpret
      handlers[opcode](self, args)
      File "/opt/bika301/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 533, in do_optTag_tal
      self.do_optTag(stuff)
      File "/opt/bika301/buildout-cache/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 "/opt/bika301/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 513, in no_tag
      self.interpret(program)
      File "/opt/bika301/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 343, in interpret
      handlers[opcode](self, args)
      File "/opt/bika301/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 852, in do_condition
      self.interpret(block)
      File "/opt/bika301/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 343, in interpret
      handlers[opcode](self, args)
      File "/opt/bika301/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 852, in do_condition
      self.interpret(block)
      File "/opt/bika301/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 343, in interpret
      handlers[opcode](self, args)
      File "/opt/bika301/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 376, in do_startEndTag
      self.do_startTag(stuff, self.endsep, self.endlen)
      File "/opt/bika301/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 405, in do_startTag
      rendered = attrAction(self, item)
      File "/opt/bika301/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 482, in attrAction_tal
      evalue = self.engine.evaluateText(item[3])
      File "/opt/bika301/buildout-cache/eggs/Zope2-2.13.21-py2.7.egg/Products/PageTemplates/Expressions.py", line 225, in evaluateText
      text = self.evaluate(expr)
      File "/opt/bika301/buildout-cache/eggs/zope.tales-3.5.3-py2.7.egg/zope/tales/tales.py", line 696, in evaluate
      return expression(self)
      File "/opt/bika301/buildout-cache/eggs/Zope2-2.13.21-py2.7.egg/Products/PageTemplates/Expressions.py", line 383, in _call_
      v = evaluate(var)
      File "/opt/bika301/buildout-cache/eggs/Zope2-2.13.21-py2.7.egg/Products/PageTemplates/Expressions.py", line 225, in evaluateText
      text = self.evaluate(expr)
      File "/opt/bika301/buildout-cache/eggs/zope.tales-3.5.3-py2.7.egg/zope/tales/tales.py", line 696, in evaluate
      return expression(self)
      File "/opt/bika301/buildout-cache/eggs/zope.tales-3.5.3-py2.7.egg/zope/tales/expressions.py", line 217, in _call_
      return self._eval(econtext)
      File "/opt/bika301/buildout-cache/eggs/Zope2-2.13.21-py2.7.egg/Products/PageTemplates/Expressions.py", line 147, in _eval
      ob = self._subexprs[-1](econtext)
      File "/opt/bika301/buildout-cache/eggs/zope.tales-3.5.3-py2.7.egg/zope/tales/expressions.py", line 124, in _eval
      ob = self._traverser(ob, element, econtext)
      File "/opt/bika301/buildout-cache/eggs/Zope2-2.13.21-py2.7.egg/Products/PageTemplates/Expressions.py", line 97, in trustedBoboAwareZopeTraverse
      request=request)
      File "/opt/bika301/buildout-cache/eggs/zope.traversing-3.13.2-py2.7.egg/zope/traversing/adapters.py", line 136, in traversePathElement
      return traversable.traverse(nm, further_path)
      File "/opt/bika301/buildout-cache/eggs/zope.traversing-3.13.2-py2.7.egg/zope/traversing/adapters.py", line 50, in traverse
      raise LocationError(subject, name)
      LocationError: (

      {'url': 'http://192.168.2.13:8080/Evaluacion', 'obj': }

      , 'absolute_url')

        Issue Links

          Activity

          Hide
          leonardorojass Leo added a comment -

          I have the same contents in bika eggs folder and src/bika.lims, but the problem persists...

          Show
          leonardorojass Leo added a comment - I have the same contents in bika eggs folder and src/bika.lims, but the problem persists...
          Hide
          xispa Jordi (Inactive) added a comment -

          Same issue, different branches.
          Seems the template tries to retrieve the absolute_url from a null object.

          Show
          xispa Jordi (Inactive) added a comment - Same issue, different branches. Seems the template tries to retrieve the absolute_url from a null object.
          Hide
          xispa Jordi (Inactive) added a comment -

          Please, post here a screenshot of the default view from the AR you are trying to publish

          Show
          xispa Jordi (Inactive) added a comment - Please, post here a screenshot of the default view from the AR you are trying to publish
          Hide
          leonardorojass Leo added a comment -

          Let me know if you need for information.

          Show
          leonardorojass Leo added a comment - Let me know if you need for information.
          Hide
          xispa Jordi (Inactive) added a comment -

          Only happened when Accreditation Logo was set

          Show
          xispa Jordi (Inactive) added a comment - Only happened when Accreditation Logo was set
          Hide
          lemoene lemoene added a comment -

          no worries, just need to assign the fixed version to have it show up in the bar graphs

          Show
          lemoene lemoene added a comment - no worries, just need to assign the fixed version to have it show up in the bar graphs
          Hide
          leonardorojass Leo added a comment -

          This one was already fix!

          Show
          leonardorojass Leo added a comment - This one was already fix!

            People

            • Assignee:
              xispa Jordi (Inactive)
              Reporter:
              leonardorojass Leo
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: