Jump to content


Photo
- - - - -

Compiled CSS not found 404

css compiled 404 compiled css

Best Answer revoltoid , 13 February 2013 - 01:04 AM

That is fine, thank you.

 

And thank you for your quick help in the caching issue, it seems to be working nice and steady now.

 

Thanks again,

 

Istvan

Go to the full post


  • Please log in to reply
19 replies to this topic

#1 revoltoid

revoltoid

    Advanced Member

  • Members

  • 99 posts
  • Country: Country Flag

Posted 12 February 2013 - 07:10 PM

Hello,

 

Can you guys please help me with this problem,

 

The CSS file fails to load every third (or so) time. It occurs on any pages on my site randomly but consistently.

 

I have checked the source in Firebug and it is looking for the file in this line:

 

wp-content/uploads/pagelines/compiled-css-1360606434.css

 

You can see it in around the 60th line in the source.

 

 

However, the file that I have in that folder on the server is named differently, so no CSS loads resulting in the usual plain html look when there is no CSS file.

If I stay on the page and refresh it, the correct CSS file appears in the script and it loads fine.

 

What to do?

 

Thank you,

 

Istvan

 

site:

Please Login or Register to see this Hidden Content



#2 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 12 February 2013 - 07:29 PM

You are using a 3rd party cache plugin, disable that 1st and see if the problem persists.



#3 revoltoid

revoltoid

    Advanced Member

  • Members

  • 99 posts
  • Country: Country Flag

Posted 12 February 2013 - 07:33 PM

Hi Simon,

 

I think I have tried it with cache plugin off and the error occurred, but I try it again, just to make sure I am right. Back with the results soon. 



#4 revoltoid

revoltoid

    Advanced Member

  • Members

  • 99 posts
  • Country: Country Flag

Posted 12 February 2013 - 07:46 PM

Hmm, it seems that without the cache plugin, it looks up the correct CSS file and loads fine.

 

Strange, because I have been using this cache plugin for quite a long time and it's been working fine.

 

Should I try to uninstall and install the plugin again?



#5 revoltoid

revoltoid

    Advanced Member

  • Members

  • 99 posts
  • Country: Country Flag

Posted 12 February 2013 - 07:56 PM

Wait, Simon,

I have just seen it loading without CSS again.

I have been loading pages for about 5 minutes without problems, then I tried on an iPad as well.

The 5th time I tried it loaded a page without CSS. I immediately checked on the desktop computer and the same page came html only!

All I did in between was, that I have changed a setting in the Pagelines Global Settings (arrows on dropdown).

The very next page came without CSS.



#6 revoltoid

revoltoid

    Advanced Member

  • Members

  • 99 posts
  • Country: Country Flag

Posted 12 February 2013 - 08:04 PM

I observed it.

Every time I save settings in the Pagelines panels, the CSS file name changes (which is normal I guess) and/but the script is looking for the recent one with the old name and because that is no more, no CSS loads. If I refresh the page, the correct file loads. If I change and save a setting on the Pagelines panels, file name changes, CSS not found and doesn't load, till I refresh the page when the correct CSS loads.

 

Cache plugin is off.



#7 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 12 February 2013 - 08:15 PM

Its showing some kind of mutex lock error now.

 

When you click save in the pagelines options it should create a new css file.



#8 revoltoid

revoltoid

    Advanced Member

  • Members

  • 99 posts
  • Country: Country Flag

Posted 12 February 2013 - 08:19 PM

Is 'mutex lock error' something that indicates what the problem is and how to solve it? :)



#9 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 12 February 2013 - 08:20 PM

Is 'mutex lock error' something that indicates what the problem is and how to solve it? :)

No its an error produced from your cache plugin.

 

<!-- Quick Cache: failed to write cache, unable to obtain a mutex lock at the moment. Quick Cache will try again later. -->



#10 revoltoid

revoltoid

    Advanced Member

  • Members

  • 99 posts
  • Country: Country Flag

Posted 12 February 2013 - 08:25 PM

The plugin is inactive.

Is that line somewhere in the source that I can see in Firebug?

Have just checked it and there is no mention of 'cache', or 'quick cache'.

 

And by the way Simon, it doesn't save (or doesn't apply saved) settings, for example, I want the arrows on the dropdown menu to go, but regardless to the box ticked or not, the arrows are there. (global settings/header and footer/enable arrows)



#11 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 12 February 2013 - 08:27 PM

The line was in the page source. Its gone now anyway. I just refreshed the page 15 times and saw no errors.



#12 revoltoid

revoltoid

    Advanced Member

  • Members

  • 99 posts
  • Country: Country Flag

Posted 12 February 2013 - 08:37 PM

I changed and saved settings just now, can you please check again? There are only 7 pages on the site, can you please check them all, thank you. (I mean except the blog posts, no need to check those, just the main ones in the menu)



#13 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 12 February 2013 - 08:51 PM

Got this sussed, your server is sending a cache control header, so the browser always tries to cache the html, so you click save and the css url changes slightly but to the end the keep looking at the cached browser version.

 

Please Login or Register to see this Hidden Content

Your page, notice the cache length

 

This forum

Please Login or Register to see this Hidden Content

 

Notice no cache, its already expired, that tells the browser do not ever cache the page. 


  • revoltoid likes this

#14 revoltoid

revoltoid

    Advanced Member

  • Members

  • 99 posts
  • Country: Country Flag

Posted 12 February 2013 - 09:13 PM

Oh. Hmm, I see.

Based on this I checked my .htaccess file and saw these lines:

 

 

ExpiresActive On
ExpiresDefault "access plus 10 days"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/plain "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType application/x-icon "access plus 1 year"
 
I guess this is the reason? (because the cache plugin is inactive, so these lines are all that can control caching, right?
 
So options and questions;
 
 
1. If I activate the cache plugin and set browser-side cache off, should it work?
2. Does 'access plus one week' for css files mean that ANYONE who visits the page within a shorter period then one week and I HAVE made changes in this period, they will see the no CSS phenomenon?
3. I am not sure that my cache plugin has written these lines into my .htaccess file, as in that case the lines would have disappeared when I deactivated it wouldn't they? So can I just delete these lines and rely on whatever the cache plugin writes into the .htaccess file?


#15 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 12 February 2013 - 09:16 PM

OK those lines tell the user browser how long to cache files, images, icons whatever.. So your html page is cached for 10 days.

 

The cache plugin stores a cached version on the server. Two completely different things.

 

Remove this line ExpiresDefault "access plus 10 days"



#16 revoltoid

revoltoid

    Advanced Member

  • Members

  • 99 posts
  • Country: Country Flag

Posted 12 February 2013 - 09:43 PM

Excellent,

Thank you very much Simon,

I have deleted the line and now it works with and without the cache plugin. Great!

 

Now, if you don't mind, can you please advise me on the other thing I mentioned; the dropdown arrows don't disappear if I set them off in the global settings/header and footer/enable arrows option. What can be the reason? I have checked/unchecked that option many times with or without the cache plugin.



#17 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 12 February 2013 - 09:45 PM

That setting is for the 'Nav Classic & BrandNav Section - Drop Down Handling'



#18 revoltoid

revoltoid

    Advanced Member

  • Members

  • 99 posts
  • Country: Country Flag

Posted 12 February 2013 - 09:53 PM

Oops I missed that detail.

Does that mean that no option exist for the arrows for the fixed navbar?



#19 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 12 February 2013 - 11:43 PM

Yes there is no option, you'd have to use a bit of css.



#20 revoltoid

revoltoid

    Advanced Member

  • Members

  • 99 posts
  • Country: Country Flag

Posted 13 February 2013 - 01:04 AM   Best Answer

That is fine, thank you.

 

And thank you for your quick help in the caching issue, it seems to be working nice and steady now.

 

Thanks again,

 

Istvan







Also tagged with one or more of these keywords: css, compiled, 404, compiled css