Stylesheets no longer work after upgrade to 0.8.1

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
majick

Stylesheets no longer work after upgrade to 0.8.1

Post 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.
majick

Also...

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Stylesheets no longer work after upgrade to 0.8.1

Post 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.
majick

Stylesheets no longer work after upgrade to 0.8.1

Post 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.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Stylesheets no longer work after upgrade to 0.8.1

Post by Ted »

Is the to stylesheet.php in the page that comes from index.php?
majick

Stylesheets no longer work after upgrade to 0.8.1

Post 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.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Stylesheets no longer work after upgrade to 0.8.1

Post by Ted »

You did shift-refresh, right? :)
majick

Stylesheets no longer work after upgrade to 0.8.1

Post by majick »

And cleared the cache. Old habits... :)

Is there anywhere else I should look?
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Stylesheets no longer work after upgrade to 0.8.1

Post by Ted »

I'm at such a loss. Is this site open to the public?
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Stylesheets no longer work after upgrade to 0.8.1

Post by Ted »

If you're feeling saucy, come by the irc channel. We might be able to debug it faster that way...
majick

Stylesheets no longer work after upgrade to 0.8.1

Post by majick »

Somewhat ashamedly, I've never quite figured out IRC... :oops:

As for public, I will send you private email with the details...

m
majick

Stylesheets no longer work after upgrade to 0.8.1

Post by majick »

Thanks Patricia,

I'll take another stab at it. :)

m
majick

Stylesheets no longer work after upgrade to 0.8.1

Post 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
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Stylesheets no longer work after upgrade to 0.8.1

Post 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.
Greg
majick

Stylesheets no longer work after upgrade to 0.8.1

Post 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
Locked

Return to “[locked] Installation, Setup and Upgrade”