Edgewall Software
Modify

Opened 8 years ago

Closed 7 years ago

Last modified 6 years ago

#12335 closed defect (cantfix)

TemplateNotFound: Template "macros.html" not found

Reported by: admin Owned by:
Priority: normal Milestone:
Component: general Version: 1.2
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by bram.decoene@…)

How to Reproduce

While doing a GET operation on /billing, Trac issued an internal error.

User agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36

System Information

Trac 1.2dev
Babel 0.9.6
Docutils 0.8.1
Genshi 0.6 (with speedups)
Mercurial 2.0.2
mod_python 3.3.1
MySQL server: "5.5.46-0ubuntu0.12.04.2", client: "5.5.46", thread-safe: 1
MySQLdb 1.2.3
Pygments 1.4
Python 2.7.3 (default, Jun 22 2015, 19:59:27)
[GCC 4.6.3]
setuptools 18.7
jQuery 1.11.3
jQuery UI 1.11.4
jQuery Timepicker 1.5.5

Enabled Plugins

timingandestimationplugin 1.4.8b0
TracAccountManager 0.4.3
TracMercurial 1.0.0.7.dev0

Interface Customization

shared-htdocs
shared-templates
site-htdocs logo.png
site-templates

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.2dev-py2.7.egg/trac/web/main.py", line 594, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.2dev-py2.7.egg/trac/web/main.py", line 271, in dispatch
    iterable=chrome.use_chunked_encoding)
  File "/usr/local/lib/python2.7/dist-packages/Trac-1.2dev-py2.7.egg/trac/web/chrome.py", line 1113, in render_template
    stream = template.generate(**data)
  File "/usr/lib/python2.7/dist-packages/genshi/template/base.py", line 532, in generate
    stream = self.stream
  File "/usr/lib/python2.7/dist-packages/genshi/template/base.py", line 442, in stream
    self._stream = list(self._prepare(self._stream))
  File "/usr/lib/python2.7/dist-packages/genshi/template/base.py", line 492, in _prepare
    cls=cls or self.__class__)
  File "/usr/lib/python2.7/dist-packages/genshi/template/loader.py", line 246, in load
    raise TemplateNotFound(filename, search_path)
TemplateNotFound: Template "macros.html" not found

Attachments (0)

Change History (5)

comment:1 by Ryan J Ollos, 8 years ago

Resolution: cantfix
Status: newclosed

comment:2 by bram.decoene@…, 7 years ago

Description: modified (diff)
Resolution: cantfix
Status: closedreopened
Version: 1.2dev1.2

issue still present in version 1.2 could this be taken up again?

comment:3 by anonymous, 7 years ago

indeed, removing the reference to inexisting file macros.html in …/eggs/timingandestimationplugin-….egg-tmp/timingandestimationplugin/templates/billing.html solves the problem. solution found here, refencing this issue

comment:4 by Jun Omae, 7 years ago

Resolution: cantfix
Status: reopenedclosed

That's a plugin issue, not a Trac issue. TimingAndEstimationPlugin should be fixed.

comment:5 by peter.lelie@…, 6 years ago

As a quick fix you can create a dummy file <trac environment>/templates/macros.html with the following content:

<html>
</html>

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.