{# Copyright (C) 2006-2014 Edgewall Software This software is licensed as described in the file COPYING, which you should have received as part of this distribution. The terms are also available at https://trac.edgewall.org/wiki/TracLicense. This software consists of voluntary contributions made by many individuals. For the exact contribution history, see the revision history and logs, available at https://trac.edgewall.org/. #} # extends 'layout.html' # block title ${title or _('Error')} ${ super() } # endblock title # block head ${ super() } # if frames: # endif # endblock head
# macro create_ticket(url=none) # if url == trac.homepage.strip('/'): # endif # for arg, value in tracker_args.iteritems(): # endfor # endmacro
# block content
# if type == 'TracError':

${title}

# if not find_element(message, tag='p') and not find_element(message, tag='div'):

${message}

# else: ${message} # endif # elif type == 'internal':

${_("Oops…")}

${_("Trac detected an internal error:")}
${message}
# if trac_error_rendering is undefined and 'TRAC_ADMIN' not in perm:

# set trac_admin = _("Trac administrator") # set project_admin # if project.admin: ${trac_admin} # else: ${trac_admin} # endif # endset # trans project_admin There was an internal error in Trac. It is recommended that you notify your local ${project_admin} with the information needed to reproduce the issue. # endtrans

# if project.admin_href:

# trans create_a_ticket = create_ticket() To that end, you could ${create_a_ticket} a ticket. # endtrans

# endif

${_("The action that triggered the error was:")}

${req.method}: ${req.path_info}
# else: # if not project.admin_href or project.admin_trac_url == '.':

${_("This is probably a local installation issue.")}

# else:

# trans create_a_ticket = create_ticket() This is probably a local installation issue. You should ${create_a_ticket} a ticket at the admin Trac to report the issue. # endtrans

# endif

${_("Found a bug in Trac?")}

# trans If you think this should work and you can reproduce the problem, you should consider creating a bug report. # endtrans

# if faulty_plugins:

# if len(faulty_plugins) == 1: # trans name = faulty_plugins[0].name Note that the ${name} plugin seems to be involved. # endtrans # else: # trans Note that the following plugins seem to be involved: # endtrans ${faulty_plugins|map(attribute='name')|join(', ')} # endif ${_("Please report this issue to the plugin maintainer.")}

# endif # with q = quote_plus(message[:80])

# set search_href = "/search?ticket=yes&noquickjump=1&q=" # set searching ${_("searching")} # endset # set searching_for_similar_issues ${tag_("%(searching)s for similar issues", searching=searching)} # endset # set mailing_list ${_("mailing list")} # endset # trans searching_for_similar_issues, mailing_list Before you do that, though, please first try ${searching_for_similar_issues}, as it is quite likely that this problem has been reported before. For questions about installation and configuration of Trac or its plugins, please try the ${mailing_list} instead of creating a ticket. # endtrans

# endwith

# trans create = create_ticket(tracker) Otherwise, please ${create} a new bug report describing the problem and explain how to reproduce it. # endtrans

# if traceback:

${_("Python Traceback")}

${_("Most recent call last:")} # if frames: # endif
          #   for frame in frames:
          #     set file = frame.filename
          #     set line = frame.lineno + 1
          #     set function = frame.function
          #     trans file, line, function

          File "${file}", line ${line}, in ${function}

          #     endtrans
          #     if frame.line:
          ${'\n  ' + frame.line.lstrip()}
          #     endif
          #   endfor
          #   if not frames:
          ${traceback}
          #   endif
        

# endif # with system_info = env.system_info # include 'environment_info.html' # endwith # endif # endif

# set trac_guide TracGuide # endset # trans trac_guide ${trac_guide} — The Trac User and Administration Guide # endtrans

${ super() } # endblock content