ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Complete emergency - site just lost style sheet?????

September 26, 2010 8:36pm

Subscribe [3]
  • #1 / Sep 26, 2010 8:36pm

    DonnaLilly

    25 posts

    Help! I have posted on here plenty this weekend with very little results. After FINALLY getting the Wygwam module installed and also making a logon work for a members only section I just managed to break the whole site!!!

    All style sheets are not showing. Site is total toast, I have been working hours and thought I had finally made progress. PLEASE somebody tell me what to look for.

    Here is my syntax:

    <link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
    <style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>
  • #2 / Sep 26, 2010 9:19pm

    DonnaLilly

    25 posts

    OK I had to run through all the templates and hard code a path to a stylesheet I put in an includes folder at the site root. What is happening here? My menu won’t work now either.

    The menu paths are like this>> ><a href=”{path=BalletSanAntonio/About}“path=‘template_group/template’

  • #3 / Sep 26, 2010 9:27pm

    DonnaLilly

    25 posts

    So turning User Session Type to Cookies and Session ID breaks the “path” attribute??
    Seems like maybe making that an optional setting is not such a hot idea? Or, maybe it would be good to add a note that says WARNING if you change this all your PATH global variables are going to break!”

  • #4 / Sep 26, 2010 11:13pm

    brankin

    150 posts

    DonnaLilly,
    Looking at your rendered source code it appears that you have an extra ‘.’ before the ‘.com’.  This is probably in your ADMIN>GENERAL CONFIG>URL ROOT.  That may fix your style sheet linking (as well as the background image issues that are occurring in the rendered stylesheet).  Also I don’t think it is necessary to @import the stylesheet when linking.

    Hope that helps with the stylesheet issue.

    Also weekends tend to be quieter around the forums just so you know. Hope you are progressing well on the site.

    Later,
    Bryan

  • #5 / Sep 26, 2010 11:21pm

    DonnaLilly

    25 posts

    I REALLY appreciate the reply, I will look at this right away. Thanks for the encouragement too. :-D

  • #6 / Sep 27, 2010 1:06am

    DonnaLilly

    25 posts

    Hmmm, I am looking at my source code and don’t find the double “..” that you mention, and have looked carefully at the general configuration entries, they all look OK. I wonder if you can tell me exactly where you caught that at?

  • #7 / Sep 27, 2010 2:30am

    Cheif

    626 posts

    I detest using the EE css mechanism, I use on all installs a proper CSS file located at the root of the site in a “css” folder and reference it as per normal “/css/mystylesheet.css”.

    At the very least it doesn’t rely on the system to control it and when you run into noodle scratcher like this one, you can exclude the system/css relationship from the equation.

    Not really a fix but something to lock away for future reference 😊

  • #8 / Sep 27, 2010 10:58am

    brankin

    150 posts

    Hmmm, I am looking at my source code and don’t find the double “..” that you mention, and have looked carefully at the general configuration entries, they all look OK. I wonder if you can tell me exactly where you caught that at?

    Its in the rendered source code for http://www.gruenesheet.com/, not in the template code.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    <html > 
    <head> 
     
    <title>Ballet San Antonio</title> 
     
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
     
    <link rel='stylesheet' type='text/css' media='all' href='http://www.gruenesheet..com/index.php?css=BalletSanAntonio/site_css.v.1271191695' /> 
    <style type='text/css' media='screen'>@import "http://www.gruenesheet..com/index.php?css=BalletSanAntonio/site_css.v.1271191695";</style> 
    </head> 
    <body>

    Also if you view the source of your site and then go to the direct URL minus the extra ‘.’ you will see the background image url issues as well. Here are some cuts from your stylesheet.

    .bar-homepage {
    background: url("http://www.gruenesheet..com/images/page-toppers/homepage.jpg") top left no-repeat;
    height: 284px;
    margin: 0 0 15px 0;
    padding: 0;
    
    }
    
    .bar-about {
    background: url("http://www.gruenesheet..com/images/page-toppers/mission3.jpg") top left no-repeat;
    height: 284px;
    margin: 0 0 15px 0;
    padding: 0;
    }

    As far as linking directly to css file vs using EE it’s personal pref.  I haven’t found speed benefits to direct linking and like as many of my items to be in one place as possible.  However, direct linking may help get your stylesheet to load but I think you will still have some issues with the double period when using path or other tags.

    Later,
    Bryan

  • #9 / Sep 27, 2010 11:19am

    DonnaLilly

    25 posts

    I agree those double .. might be a real issue, lol. I see what happened. gruenesheet.com is my dev site I set up to “practice” on the license upgrade etc. since working on a live site with unknowns is pretty iffy… The REAL site is balletsanantonio.org. So I think I had two distinct problems zapping me to add to the confusion.
    1) double .. in the dev site affecting images and style sheets etc.
    2) I changed User Session Type under Security and Session Preferences from it’s default “Cookies” to “Cookies and Session ID” as I understood in reading documentation about the logon form that the only way the “stay logged on” feature would work was with this setting change. BUT, that ends up breaking the global variable PATH in a big way. Humph. Guess I won’t do that again. I ended up just removing the “stay logged in” option from my logon form. Ha!

    Thanks so much for taking the time to explain some of this stuff to me, I struggled mightily ALL weekend with this site, and had thought the license upgrade and plug in would take me like, 2 hrs. tops. OOPS!

    :-D Ces’t la gosh darn vie!

  • #10 / Sep 27, 2010 3:48pm

    Ingmar

    29245 posts

    I agree those double .. might be a real issue, lol.

    Yes, definitely. You need to fix them.

    I changed User Session Type under Security and Session Preferences from it’s default “Cookies” to “Cookies and Session ID” as I understood in reading documentation about the logon form that the only way the “stay logged on” feature would work was with this setting change.

    Actually, if you want to stay logged in your need to use “Cookies only”, no session ids as those expires after a while.

    BUT, that ends up breaking the global variable PATH in a big way.

    It really shouldn’t; unless you were using some mod_rewrite, perhaps?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases