Stylesheets no longer work after upgrade to 0.8.1
Stylesheets no longer work after upgrade to 0.8.1
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.
Anybody else experience this?
Thanks,
m
BTW, thanks for the great CMS. Made putting the site together easy as pie.
Stylesheets no longer work after upgrade to 0.8.1
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
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.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.
Stylesheets no longer work after upgrade to 0.8.1
Is the to stylesheet.php in the page that comes from index.php?
Stylesheets no longer work after upgrade to 0.8.1
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.
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
You did shift-refresh, right? 

Stylesheets no longer work after upgrade to 0.8.1
And cleared the cache. Old habits... 
Is there anywhere else I should look?

Is there anywhere else I should look?
Stylesheets no longer work after upgrade to 0.8.1
I'm at such a loss. Is this site open to the public?
Stylesheets no longer work after upgrade to 0.8.1
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
Somewhat ashamedly, I've never quite figured out IRC...
As for public, I will send you private email with the details...
m

As for public, I will send you private email with the details...
m
Stylesheets no longer work after upgrade to 0.8.1
Thanks Patricia,
I'll take another stab at it.
m
I'll take another stab at it.

m
Stylesheets no longer work after upgrade to 0.8.1
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
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
Try adding margin-left: 130px; to your DIV.thebody selector in your CSS
Should be a bit wider than your DIV.leftsidebar width.
Should be a bit wider than your DIV.leftsidebar width.
Greg
Stylesheets no longer work after upgrade to 0.8.1
Well that's a start. Thanks. It certainly fixes things in IE, but now Firefox is funked up.
Any ideas? I'm tapped.
m
Any ideas? I'm tapped.
m