Wednesday 03 May 2006 6:01:11 am
That's a great spot, Kristof, thanks! I just checked my sites and the working one has the leading slash, while the problematic one doesn't. This has something to do with the preg_match on REQUEST_URI in that method you pointed out, which essentially means that ezPublish thinks that the problematic site isn't in virtual host mode (it is). I'll do some tests now. Will post here when I get the results. Edit: I got "/" for indexdir.
2006-05-03 23:36:15 : start path: /home/ [CS:currentSitePath]
2006-05-03 23:36:15 : eZSys::indexDir: / [CS:currentSitePath]
2006-05-03 23:36:15 : indexdir: home/ [CS:currentSitePath]
And I got it to work by commenting this part out in that method:
// Remove indexDir if used in non-virtualhost mode.
//if ( preg_match( "#^" . preg_quote( $indexDir ) . "(.+)$#", $path, $matches ) )
//{
// $path = $matches[1];
//}
Somehow my REQUEST_URI matches that pattern on this server, and it strips the leading slash off indexdir. It might have something to do with me running a replace script to change 'ezurl' to 'ezroot' on the templates of this site, but I can't find any template that this webdav server uses yet. Will look closer. Thanks again for the suggestion. :)
If I had more time, I would write less code.
|