Edgewall Software

Ticket #7463 (reopened defect)

Opened 6 months ago

Last modified 7 days ago

theme.html not included when trac is at / URL.

Reported by: anonymous Owned by:
Priority: normal Milestone: 0.11.3
Component: general Version: 0.11-stable
Severity: normal Keywords:
Cc: ninuje@…, cmlenz@…

Description

It took me 4 hours to trace all things and make out this bug. I have simple setup nothing special. When I visit http://trac.host:8000/project/ all is ok (using tracd) But when I use apache + mod_wsgi to visit http://trac.host (without project) I do not see header, banner, menu, just content. When I looked into sources I noticed that trac did not generate divs. So I started to trace it. It finished with the solution:

snowflake templates # diff  layout.html layout.html-orig 
54c54
<   <xi:include href="$chrome.theme"></xi:include>
---
>   <xi:include href="$chrome.theme"><xi:fallback /></xi:include>
snowflake templates # 

I suppose that when fallback is ON Genshi does not search another template directories to include theme.html.

Attachments

Change History

  Changed 6 months ago by anonymous

Same with site.html. The file is in /path/to/project/templates, and when using tracd it's displayed. So I had to remove fallback and there. No the last 3 lines of layout.html look like:

  <xi:include href="$chrome.theme"></xi:include>                                                                             
  <xi:include href="site.html"></xi:include>                                                                                 
</html>                                                                                                                      
         

  Changed 6 months ago by cboos

Which version of Genshi are you using? Would be quite helpful to compare the results you get with the released Genshi 0.5 and latest development version (either genshi:source:branches/stable/0.5.x or genshi:source:trunk, they seem to have the same template loader code).

  Changed 3 months ago by rblank

  • status changed from new to closed
  • resolution set to worksforme

Information requested but not provided, closing as worksforme. Feel free to reopen if you can provide the requested information.

  Changed 2 months ago by ninuje@…

  • cc ninuje@… added
  • status changed from closed to reopened
  • resolution worksforme deleted

I'm having the exact same issue (using mod_wsgi with a single trac project).

This is on a fresh new x86 box, but for the record, I had the same problem with the old one ;).

Stripping the fallback tag in layout.html also 'fix' it for me.

Without this patch, I get the same behaviour with every Genshi version available (0.5.1 release, Genshi-0.5.2dev_r947, Genshi-0.6dev_r960).

It works fine with tracd.

(And it does seem to be the same issue as #7742, at least in my case).

  Changed 2 months ago by ninuje@…

Forgot to post the specs:

Gentoo ~x86, Python 2.5.2, Trac-0.11stable_r7655, Subversion 1.5.4.

Stock trac environment using SQLite.

  Changed 2 months ago by cboos

  • cc cmlenz@… added
  • milestone set to 0.11.3

Christopher, could you confirm the need for removing the <xi:include> fallback in order to force Genshi to look in other search directories, or is it another problem?

follow-up: ↓ 8   Changed 7 days ago by anonymous

Could reproduce this on an X86 - Debian/lenny Server.

  Python:   2.5.2
  Trac:     0.11.1
  Genshi:   0.5.1
  mod_wsgi: 2.3

However trac is here at /trac in an SSL subdomain

in reply to: ↑ 7   Changed 7 days ago by nkantrowitz

Replying to anonymous:

Could reproduce this on an X86 - Debian/lenny Server. {{{ Python: 2.5.2 Trac: 0.11.1 Genshi: 0.5.1 mod_wsgi: 2.3 }}} However trac is here at /trac in an SSL subdomain

I was helping this user troubleshoot in the IRC channel. Using tracd made the problem go away, but forcing mod_wsgi into daemon mode did not. Also the issue applied to all URLs, not just the base.

Add/Change #7463 (theme.html not included when trac is at / URL.)

Author



Change Properties
<Author field>
Action
as reopened
as The resolution will be set. Next status will be 'closed'
to The owner will change from (none). Next status will be 'new'
 
Note: See TracTickets for help on using tickets.