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.

CSS Flat File Not Saving

October 14, 2010 12:55pm

Subscribe [7]
  • #1 / Oct 14, 2010 12:55pm

    unleadedstudios

    1 posts

    Today when I started working on my local copy of a site the CSS files are not saving and being used. All other files are working fine. Here’s the workflow:

    Open style.css in textmate, save it, nothing until I synchronize the templates in the admin.

    All other files work when I open in TextMate, save the file, no need to synchronize.

    Any ideas. Seems to be just related to this one CSS file since all the others are saving and being used without the need to sync after each change.

  • #2 / Oct 14, 2010 4:34pm

    Ingmar

    29245 posts

    Are you on the latest version and build? Any extensions?

  • #3 / Jan 01, 2011 5:29pm

    Hoosteeno

    109 posts

    Howdy-

    Just thought I’d chime in, since I was having the same issue. I was using the path tag instead of the stylesheet tag; when I changed it to use the stylesheet tag, the issue went away.

    Justin

  • #4 / Jan 02, 2011 10:02am

    Greg Salt

    3988 posts

    Hi uncommercials,

    Welcome to the forums!

    As Ingmar asked, which version and build are you using?

    @Hoosteeno, thanks for the update. Are you using the latest version and build?

    Cheers

    Greg

  • #5 / Jan 02, 2011 10:05am

    Hoosteeno

    109 posts

    Greg, I’m on 20101220.

  • #6 / Jan 04, 2011 1:44am

    John Henry Donovan

    12339 posts

    Justin,

    Can you explain your issue in detail because what you describe using paths doesn’t seem related to editing a template offline and then having to sync afterwards. Are you working on a local site too? Using TextMate?

  • #7 / Jan 04, 2011 11:05am

    Hoosteeno

    109 posts

    Thanks John.

    I don’t consider this an issue for which I need support. But I did experience it, and I did resolve it, and I found no other description of the resolution in the forums, so I thought I’d add one here in case anyone else experiences the same issue.

    Detailed info:

    My EE instance (20101220) is set to the same timezone as the server, which is remote. My stylesheet template is being saved as a file. I have a secure shell session on the server and am editing the template in vi. Then…
    - If I’m using a path tag to create the href to my css file, then when I save the template file in vi, my browser doesn’t get the new css file. I have to reload the template in the control panel and save it there in order to see the changes in the browser.
    - If I’m using the stylesheet tag to create the href to my css file, then when I save the template file in vi, my browser immediately gets the new css file.

    I suspect the behavior just described…
    * is entirely normal and predictable
    * has nothing to do with what text editor you’re using, or where your web server is
    * is attributable to caching issues that the stylesheet tag is designed to workaround.

    But that’s just a guess. If it’s correct, I think the only concern for EE support at this point is whether the docs should be modified to mention this possibility, or whether this thread will suffice. 😊

  • #8 / Jan 05, 2011 4:21am

    John Henry Donovan

    12339 posts

    Justin,

    All good points. Thanks for the detailed reply. I am just going to narrow this down some more regarding uncommercials.

    uncommercials, how are you linking to your stylesheet? Via a path tag or a styleheet tag?

  • #9 / Jun 05, 2011 2:40pm

    koko.pelli

    176 posts

    I have exactly the same issue, I have set up the file structure so I can edit files in Coda. All are working fine, except my stylesheet file, when I save the flat file, I then need to go into the control panel > template file and re-save to update.

    I am linking to my stylesheet using:

    <link rel="stylesheet" type="text/css" href="{stylesheet=stylesheet/screen}" />

    Thank you

  • #10 / Jun 06, 2011 8:50am

    Sue Crocker

    26054 posts

    Hi, koko.pelli.

    Is this only happening with stylesheets? do you have the same issue with edited templates?

    If you look at the date/time stamp of the file you edited in Coda, is that file date/time in the future?

    So that I can see if I can replicate, can you tell us which version/build of EE you’re using?
    See EEWiki:// HowTo Determine My EE Version

  • #11 / Jun 06, 2011 8:55am

    koko.pelli

    176 posts

    Hi Sue,

    only happening with stylesheets, yes, working fine with other files.

    Regarding the time stamp… I save in Coda, I get the Mac Growl notification that the file has been uploaded. I have gone into my FTP program (Transmit), refreshed the ftp list, and the stylesheet is showing as updated, but when I refresh the page, no changes take effect until I go into the control panel, open the stylesheet template and re-submit.

    The version of EE is: ExpressionEngine Freelancer = Freelancer v2.1.3

    Many thanks

  • #12 / Jun 06, 2011 9:01am

    Sue Crocker

    26054 posts

    When you look at the file date and time inside your FTP program, is the date on it the same time as the server time? For instance, I’m in Central time zone, and one of my hosting accounts is in Pacific, so I’m two hours ahead. What about you?

  • #13 / Jun 06, 2011 10:17am

    koko.pelli

    176 posts

    Ahh.. well I am in the UK, so GMT, my hosting is with Media Temple so US based.

    Do you know what I can do to sync the times?

  • #14 / Jun 06, 2011 4:41pm

    Kevin Smith

    4784 posts

    Hey koko.pelli–

    Be on the lookout for an email from me.

    Kevin

  • #15 / Jun 06, 2011 6:24pm

    koko.pelli

    176 posts

    Got it, thanks Kevin

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

ExpressionEngine News!

#eecms, #events, #releases