Installed, but styles and links fail

D'oh! No body. How abstract of me.

So, continuing where I left off... New install. Generally working. But the default theme is bombing, no style is showing up and a couple of links are hosed.

I've narrowed it down to the `zen/functions.php` and the following code:
`if (strstr(basename(dirname($_SERVER['SCRIPT_NAME'])), "zen")) {

define('WEBPATH', dirname(dirname($_SERVER['SCRIPT_NAME'])));

} else {

define('WEBPATH', dirname($_SERVER['SCRIPT_NAME']));

}`

WTF does this do? Basically, it is returning a WEBPATH of `/` and this results in <link ... /> href attribute of `//themes/default/zen.css`. No good. So, what if anything should I be looking at to fix this branch? Or is something on my end broken? If I break down the boolean part I get the correct value, `/zenphoto`, but when the branch executes in context, I get `/`. That dog won't run. So... is this my problem, and if so how do I fix it, or something that sneaked in the release that should be corrected?

Comments

  • I see Bug #6094 may cover this very problem. I thinks this is "something that sneaked into the release that needs to be corrected."
  • trisweb Administrator
    Yes, you probably need to comment out those lines and just define your own webpath like so:

    `define('WEBPATH', '/zenphoto');`

    Sorry about that. :-/
Sign In or Register to comment.