In the xhtml code you have tpl parse error, but I guess this is only quick example. Do you have ForceVirtualHost parameter enabled? Have you tired to clear the cache manually after template compile is on? Works fine here.
I have installed "plain" 3.8.1 in the subdirectory of root folder in non-VH setup and ezurl() returns correct path with siteaccess and index.php. I can't reproduce yout error. Can you please try on the new clean installation and try to reproduce it?
Hm... Now that I look again at the site after two days it seems that it works OK...
I'm really puzzled, I didn't change anything in the config from the last time I checked the site...?????
It seems like there's some timeout after clearing the cache, even when the cache directory is deleted manually. This thing occured to me a few other times... I cleared the cache, and also deleted it manually but the changes started to work only when I looked at the site after a day or two... It happened only a few times and I couldn't catch what induced such behaviour.
Is there a reasonable explanation for this or is my site having ghosts?
--
Nothing is impossible. Not if you can imagine it!
When I enable TemplateCompile and clear the cache everything is working OK. But if I call bin/php/eztc.php after clearing the cache and before I look my site in the browser, then the problem I described in the first post occurs.
When I think about this it seems natural, because the eztc.php script is run from the shell so it cannot guess how my site is accesed from the outside. So I tried using --access-path argument when executing eztc.php. First I executed it with:
--access-path=mysite
but then all the links were generated without index.php. After that I executed it with:
--access-path=mysite/index.php
and it worked OK. Is this normal behaviour? Since eztc.php and --access-path aren't documented anywhere I can't tell.
--
Nothing is impossible. Not if you can imagine it!
It seems that using --access-path is not thw right sollution. When I use it links (by using ezurl()) are generated OK but the images are not displayed correctly because their urls are generated with ezdesign() operator. So the right sollution is to use:
--www-dir=/mysite
With this argument it works OK. But also, when I use this argument the index.php disapeares from links. This is actually a nice thing but could someone tell me if this is expected behavour?
--
Nothing is impossible. Not if you can imagine it!
Hubert Farnsworth
You must be logged in to post messages in this topic!