This may be an issue with my server and not MODx, but I want to get some other opinions before I rip my hair out re-building my server.
I have a seemingly un-predictable bug that I cannot duplicate, but it happens frequently:
My links on the my MODx site every once in a while will not write the site_url at the beginning of it so I end up with links like this at in my site: [tt]http:///staff/[/tt]. I’m using the [tt]<base href="[(site_url)]"/>[/tt] method in my templates. Since [( .. )] settings are cached with pages I waited until the issue came up, then checked the site cache and my template looked like this: [tt]<base href="http://" />[/tt]
I can only come to the conclusion that, since [tt]$site_url[/tt] is automatically generated from $_SERVER vars (like HTTP_HOST), when a request comes in, the $_SERVER array is not completely populated. However, every scenario I’ve tried passes, and this issue only came up when I made the site live (all my production tests didn’t have this issue).
I disabled SEO Strict Urls and the issue still comes up.
Anyone else have an idea? Need more information?
Apache 1.3.33
PHP 4.4.1
Mac OS X 10.4.8
This is somewhat of an emergency, though I’ve temporarily fixed the issue by hardcoding the <base href=""/> url, but now I can’t switch between production and live site as easily :-/