ZenphotoCMS Forum
Installed, but styles and links fail - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Installed, but styles and links fail (/thread-297.html)



Installed, but styles and links fail - javafueled - 2006-02-14

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 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?




Installed, but styles and links fail - javafueled - 2006-02-14

I see Bug #6094 may cover this very problem. I thinks this is "something that sneaked into the release that needs to be corrected."




Installed, but styles and links fail - trisweb - 2006-02-15

Yes, you probably need to comment out those lines and just define your own webpath like so:

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

Sorry about that.