issue: $templatesuri, js link is broken for non-standard web ports
beat at chruetertee.ch
Wed Oct 26 13:06:53 EDT 2011
On Oct 26, 2011, at 8:10 AM, John Marino wrote:
> This problem should be easy enough to replicate -
> Set the web server hosting tinderbox to serve on a different port or
> just use port forwarding, say port 10080.
I'm not able to reproduce this problem with HEAD and TINDERBOX_3_X. Looking
at inc_tinderbox.php.dist there is already a check who adds the port in
case of a non-default port:
if ( $_SERVER['SERVER_PORT'] != 80 )
$wwwrooturi .= ':' . $_SERVER['SERVER_PORT'];
$templatesuri = $wwwrooturi.'/templates/'.$template_dir;
Could you please compare your inc_tinderbox.php.dist and inc_tinderbox.php.
Maybe you were using an old version of inc_tinderbox.php.
> Now visit http://<myserver>:10080/tb/
> The page loads, but the css doesn't.
> Looking at the html source:
> <link href="http://<myserver>/tb/templates/paefchen/tinderstyle.css"
> rel="stylesheet" type="text/css" />
> In the paefchen template, this is echoed by the variable $templateuri.
> Whatever is generating $templateuri is not building this absolute path
> with the port component, so ":10080" is missing from the css uri.
> More serious is that tinderstyle.js uri is also broken on paefchen for
> non-standard ports.
> It should be an easy fix for 3.4.
> tinderbox-list at marcuscom.com mailing list
> To unsubscribe, send any mail to "tinderbox-list-unsubscribe at marcuscom.com"
More information about the tinderbox-list