Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#5579 closed defect (bug) (fixed)

TemplateNotFound: Template "macros.html" not found

Reported by: hareesh-pillai's profile Hareesh Pillai Owned by: dd32's profile dd32
Milestone: Priority: low
Component: Trac Keywords:


There's a link to API at the right top of the page. Clicking on the link throws Not Found error.


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

User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36

Change History (3)

#1 @dd32
4 years ago

  • Component changed from General to Trac
  • Owner set to dd32
  • Priority changed from normal to low
  • Status changed from new to accepted

Disabling that menu item globally seems reasonable (It's disabled on core.trac and build.trac).

I'll see if I can find the macros.html template that should be there too, for completeness, but I suspect it's not going to be of much benefit.

#2 @dd32
4 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 10590:

Trac: Disable the rpc (API) menu item globally for all trac instances, rather than just on core.trac.

Fixes #5579.

#3 @dd32
4 years ago

Just noting that macros.html was removed from Trac 1.2, 1.0 was the last version with it, I'm not sure why the templates we're using is referencing it, as I can't find any refs to it.

It's probably got something to do with us using the old Trac templating library, something I don't have an urgent want to touch, and I don't think adding macros.html into our custom theme is a good idea (There's probably others that are missing anyway).

Removing the link is good enough for me.

Note: See TracTickets for help on using tickets.