Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • sharpdome Friend
    #164029

    I’m running a live site now with JA Social which worked just fine in development but now under load after a few hours the entire CSS breaks. I’ve used Firebug and in viewing the joined CSS there are huge chunks of it that are missing. It looks like some of the CSS files are not being included when things break.

    The problem seems to happen when I’ve left a browser window open on a page for some time and then reload it after an hour or so. Navigating to other pages in the site works fine. It only seems to be an issue on that one page that was left open. I’ve seen the issue occur using both Firefox and IE. It looks like the default JAT3 template is used and the JA Social template I’ve customized is missing.

    Only clearing the cache in the backend makes the site render correctly again. This is a major bug. Please help!

    I’ve attached a zip containing the broken and working version of the css.

    http://2cg8axvm.esljobsworld.com/


    1. css.zip
    sharpdome Friend
    #391645

    Any update?

    thangnn1510 Friend
    #391703

    Hi Sharpdome!

    I don’t understand your bug clearly. I have checked your site and it works well now. Have you enabled cache?

    sharpdome Friend
    #391832

    Both Joomla cache and JA Social cache are enabled.

    The problem with the template not rendering correctly is not there when Optimize CSS is No or Linked Files. The problem only happens when Optimize CSS is Join & Minify or Join and Minify and Compress.

    Also, when CSS is Join and Minify and Compress the backgrounds of JATypo buttons disappear.

    I’ve attached a screenshot.


    1. css-button-backgrounds
    sharpdome Friend
    #392513

    Can someone please help?

    Phill Moderator
    #392518

    I cannot replicate your problem. I am guessing that there may be 2 components interacting. I doubt it is because you have left a browser window open.

    It is going to be almost impossible for us to diagnose intermittant problems especially when we cannot replicate it. Maybe we can narrow it down though.

    Does this only occur on one specific page or on pages where a specific component is loaded?

    If that is the case try adding exceptions to the css optimization just or that component.

    sharpdome Friend
    #392576

    Hi Phil,

    1. The only other thing I’m running is your Job Board extension, which has its own cache. Is it possible that it’s conflicting with the JAT3 cache? I also saw this today in the error logs of my web server when the problem was happening:

    [Mon May 23 11:30:53 2011] File does not exist: /home/esljw/public_html/2Cg8aXvM/t3-assets/css3d11b.css

    That seems to link up with it being some sort of cache bug, where some part of the system thinks a .css is cached, but in fact it’s no longer there.

    2. You should be able to replicate the missing button backgrounds. That happens every time when Optimize CSS is Join & Minify or Join and Minify and Compress.

    Thanks for your help!

    -David

    Phill Moderator
    #392593

    It is possible. Try adding that to the exceptions list.

    sharpdome Friend
    #392682

    Hi Phil, just to be clear, are you saying to add the JoomlArt Job Board extension to the exceptions list?

    Phill Moderator
    #392717

    Yes, just the css files from that extension. If they are cached elsewhere it may be the cause of your problems.

    sharpdome Friend
    #392723

    So put the Job Board css files into the Optimize Exclude box under Css & Javascript Compress? And leave Cache Exclude under System Settings empty?

    Also, when I enable all the CSS/JS Join/Minify/Compress options, both Yahoo’s YSlow and Google’ Page Speed show a single css and a single js files but also report that are not getting gzip compressed. How do you get the gzip compression to work?

    Phill Moderator
    #392728

    The gzip compression is enabled in the Joomla global settings but it will only work if your server supports it.

    And yes to your first question.

    sharpdome Friend
    #392918

    OK, I’ve got the following css files now in the optimize exclude filter:

    ja.jobboard.css
    ja.job_filter.css
    style.css
    mod_jajobs_counter.css
    ja.job_filter.css
    ja.list_employers.css
    ja.list_jobs.css

    I’m also noticing 2 compressed css files in Firebug, one of which has a ?v=2 at the end of it. I’ve also seen it where it’s ?v=6. Should there be more than one compressed css file?

    The template also still breaks. Looking in Firebug I can see two of the excluded .css files are missing which is causing the page to render incorrectly. These two css files are the ones that are being dropped:

    <blockquote><link rel=”stylesheet” href=”/components/com_jajobboard/views/jaresumes/tmpl/themes/inline-light/style.css” type=”text/css” />
    <link rel=”stylesheet” href=”/components/com_jajobboard/views/japrofiles/tmpl/themes/inline-light/style.css” type=”text/css” /></blockquote>

    And they definitely relate to the visual problems on the page. The rest of the page looks fine. It’s only these areas that rely on these css files that break.

    Welcome your advice about how to move forward.

    sharpdome Friend
    #392921

    Did some digging in the Job Board files that call those css files. They’re both modules and had the css link directly in the code which put it in the middle of the BODY tag. I changed it to use JHTML::stylesheet to put it in the HEAD. Will let you know what happens.

    sharpdome Friend
    #392932

    The template still breaks on those two css files. What do you suggest? 🙂

Viewing 15 posts - 1 through 15 (of 20 total)

This topic contains 20 replies, has 3 voices, and was last updated by  Phill 13 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum