Page 1 of 2
Stylesheets no longer work after upgrade to 0.8.1
Posted: Sat Jan 08, 2005 1:14 am
by majick
I hope someone can help me fix this. Like the subject says, I upgraded and then nothing looked the same after that. Everything else is fine however. Blobs, etc. are all good. I just can't seem to access my style sheet.
Anybody else experience this?
Thanks,
m
BTW, thanks for the great CMS. Made putting the site together easy as pie.
Also...
Posted: Sat Jan 08, 2005 1:16 am
by majick
Forgot to mention that previews look fine. Just the main pages as viewed by the world don't seem to work.
Thanks.
m
Stylesheets no longer work after upgrade to 0.8.1
Posted: Sat Jan 08, 2005 1:22 am
by Ted
Are you able to get to stylesheet.php? CSS moved from being inline to being an external script. A user before didn't have everything get uploded right and all stylesheets weren't showing up.
Stylesheets no longer work after upgrade to 0.8.1
Posted: Sat Jan 08, 2005 1:28 am
by majick
wishy wrote:Are you able to get to stylesheet.php? CSS moved from being inline to being an external script. A user before didn't have everything get uploded right and all stylesheets weren't showing up.
You bet. Not only can I access it, but if I call it as it would be from within the scripts like
http://me/test/cms/stylesheet.php?templateid=5, it spits out all the correct CSS. Weird.
Stylesheets no longer work after upgrade to 0.8.1
Posted: Sat Jan 08, 2005 2:25 am
by Ted
Is the to stylesheet.php in the page that comes from index.php?
Stylesheets no longer work after upgrade to 0.8.1
Posted: Sat Jan 08, 2005 2:31 am
by majick
You mean this?
Yup.
Could it be the "/>" instead of a ">" to close the tag that could be the problem?
Or perhaps the non-absolute ref to the stylesheet location...
Scratch that. Just modified both items in both of,
lib/content.functions.php
lib/module.functions.php
Didn't change a thing.
Stylesheets no longer work after upgrade to 0.8.1
Posted: Sat Jan 08, 2005 3:02 am
by Ted
You did shift-refresh, right?

Stylesheets no longer work after upgrade to 0.8.1
Posted: Sat Jan 08, 2005 4:21 am
by majick
And cleared the cache. Old habits...
Is there anywhere else I should look?
Stylesheets no longer work after upgrade to 0.8.1
Posted: Sat Jan 08, 2005 5:47 am
by Ted
I'm at such a loss. Is this site open to the public?
Stylesheets no longer work after upgrade to 0.8.1
Posted: Sat Jan 08, 2005 6:01 am
by Ted
If you're feeling saucy, come by the irc channel. We might be able to debug it faster that way...
Stylesheets no longer work after upgrade to 0.8.1
Posted: Sat Jan 08, 2005 7:14 am
by majick
Somewhat ashamedly, I've never quite figured out IRC...
As for public, I will send you private email with the details...
m
Stylesheets no longer work after upgrade to 0.8.1
Posted: Sun Jan 09, 2005 11:40 am
by majick
Thanks Patricia,
I'll take another stab at it.
m
Stylesheets no longer work after upgrade to 0.8.1
Posted: Sun Jan 09, 2005 12:01 pm
by majick
Hey Wishy,
I finally got things rolling. Here's what I had to do...
History: I did the dev on my laptop, but when I uploaded everything to the server, nothing would display. Debug info like queries, etc. would show, but no content. Tres weird. I figured upgrading from 0.7.x to 0.8.1 would fix things, but it didn't. I don't know why, but the upgrade method worked fine on my laptop, but not on the server. I ended up blowing away the previous install and replacing it entirely, and then running the setup script. I still had problems with the CSS, but at least now I was getting output.
1. You were correct about the doctype. At least partially correct... I was still having issues with CSS after making that change, but it is required. I simply removed it from my templates. It doesn't validate properly, not that it did anyway, but I thought I'd mention it.
2. I edited the stylesheet.php to comment out the header line:
#header("Content-Type: text/css; charset=" . $result['encoding']);
Dunno why but it works without it but not with it. CSS validates correctly too (gotta love the WebDeveloper extension for Firefox)
3. Just in case, but I don't recall testing it, I modified the lines in lib/content.functions.php and lib/module.functions.php that write the stylesheet link like so...
$stylesheet .='';
This is just in case the full reference is required.
The site is at
http://www.ispetersen.com/ if you'd like to take a look. One warning though... IE butchers the CSS. In order to see it as it was meant to be viewed, use Firefox. I'm still trying to figure out the IE work-around (any suggestions would be hugely appreciated).
Thanks again for all your help.
m
Stylesheets no longer work after upgrade to 0.8.1
Posted: Sun Jan 09, 2005 1:10 pm
by Greg
Try adding margin-left: 130px; to your DIV.thebody selector in your CSS
Should be a bit wider than your DIV.leftsidebar width.
Stylesheets no longer work after upgrade to 0.8.1
Posted: Sun Jan 09, 2005 1:34 pm
by majick
Well that's a start. Thanks. It certainly fixes things in IE, but now Firefox is funked up.
Any ideas? I'm tapped.
m