Hi,

I often get a pair of watchdog messages "page not found" refering to a Panel page, with two "page not found" missing files, like :
files/ctools/css/50a8f260d739e1430d6ce45b68724051.css
files/ctools/css/23dabfa3b8885d021073f9af7573ca1a.css

I've just checked the panel page source and in the HTML it's coherent :
files/ctools/css/50a8f260d739e1430d6ce45b68724051.css?A
files/ctools/css/23dabfa3b8885d021073f9af7573ca1a.css?A

However I only have 1 CSS in files/ctools/css :
files/ctools/css/849e6991303e18708948e66fe88b23c9.css

Why do I have only 1 CSS in files/ctools/css ? And why does Ctools need 2 CSS files ? What can I do ?

Thanks a lot ! I'll be on your sessions @ Drupalcon :)

Comments

guillaumeduveau’s picture

Forgot to say I have panels simple cache activated on that panel page, with a lifetime of 1h and a granularity by argument.

Panel url is url/%tid and the %tid placeholder is converted into a context : taxonomy term TID.

At last the Drupal cache is on "normal" with a 1h lifetime and I agregate the CSS files.

Any idea ?

merlinofchaos’s picture

As for why you're getting not founds, I don't know.

Those CSS files are auto-generated on an as needed basis. Rounded corners styles generate them, as do all flexible layouts. You could have several of them. They are also cleaned up when no longer needed, so it's vaguely possible an older cached page might've referred to a file that is no longer there? It's alittle bit difficult to guess at that part.

katat’s picture

I have the similar problem. Does the ctools renew the css files as every panel page request, even there are not changes to the panel? I have this problem when the page cache is set to 1 day. The problem seems to be solved when the page cache set to 1 min. I guess the ctools css file generation doesn't work quite well with the drupal cache system.

ashley.maher@didymodesigns.com.au’s picture

I have been chasing a similar bug for a while.

Confirm the css file is created and removed as required. This css file appears to be loaded very early. Is it possible this file can be cleared from the cache, so the next call to a page calls the file before ctools-panels has the chance to create a new one?

In my case I have one css file missing in watchdog. Also one in the css cache directory. So it appears to be similar not identical to this bug. Hopefully what I am posting helps.

I have used panels with the flexible layout on the home page. So failure to find this css file is spectacular. I have not set minimum time for the Drupal Cache. Cache set to normal in Drupal.

Ideas hints suggestions great fully received.

Regards,

Ashley Maher (didymo)

ashley.maher@didymodesigns.com.au’s picture

Earl,

Mind explaining what "They are also cleaned up when no longer needed" means?

What is the trigger for "Auto-generated" please?

My error rate is about 1% so I need to understand the source of this so I can find it and submit a patch.

Thanks,

Ashley

merlinofchaos’s picture

There's a patch in http://drupal.org/node/504552 that might help with the caching problem.

merlinofchaos’s picture

Status: Active » Fixed

I think that the caching problems on .css files are all cleaned up with the latest -dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.