TOPIC: Jotcache and JCH - 404s for .css

Jotcache and JCH - 404s for .css 01 Dec 2017 09:26 #2081

Hi

I have been getting the following errors reported recently by New Relic app monitoring:

E_WARNING: file_get_contents(www.citizencard.com/media/plg_jchoptimiz...6244fb7088e1439b.css): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found

Stack trace
in file_get_contents called at ? (?)
…ts called at /var/www/citizencard.com/web/plugins/system/jotcache/
jotcache.php (170)
…ck called at /var/www/citizencard.com/web/plugins/system/jotcache/
jotcache.php (213)
in plgSystemJotCache::onAfterRoute called at ? (?)
…_array called at /var/www/citizencard.com/web/libraries/joomla/event/
event.php (70)
…e called at /var/www/citizencard.com/web/libraries/joomla/event/
dispatcher.php (160)
… at /var/www/citizencard.com/web/libraries/src/Application/
BaseApplication.php (108)
…d at /var/www/citizencard.com/web/libraries/src/Application/
CMSApplication.php (1156)
… at /var/www/citizencard.com/web/libraries/src/Application/
SiteApplication.php (798)
… at /var/www/citizencard.com/web/libraries/src/Application/
SiteApplication.php (218)
…d at /var/www/citizencard.com/web/libraries/src/Application/
CMSApplication.php (267)
…ation\CMSApplication::execute called at /var/www/citizencard.com/web/
index.php (49)

This happened 2nd day in a row around 10am. The problem stops after clearing Joomla cache and jotcache cache (did that yesterday around 10am too).

The Joomla version is 3.8.2. The jotcache cache lifetime is 360 minutes, Cache Auto Clean to 340 minutes, JS & CSS Integration to JCH. Joomla conservative cache is ON and set to 360 minutes.

Everything used to work perfectly. Recently I updated Joomla from 3.8.1 to 3.8.2 and JCH Pro from 5.2.1 to 5.2.2. I contacted JCH developer but he stated:

"This seems more like a jotcache issue. I don't know why jotcache would be trying to open that file. Can you get a feedback from jotcache developers? I'm willing to assist in any way but we would need their input to get to the bottom of this."

Joomla version : 3.8
JotCache version : 6.1.1
site template:
system plugins : JCH Pro 5.2.2
The administrator has disabled public write access.

Jotcache and JCH - 404s for .css 03 Dec 2017 18:20 #2082

Please use new JotCache version 6.1.3 which has updated integration with JCH Optimize v.5+
The administrator has disabled public write access.

Jotcache and JCH - 404s for .css 08 Dec 2017 13:09 #2090

Have tried 6.1.3 and unfortunately I still get 404s for css.



Joomla version : 3.8
JotCache version : 6.1.3
site template: JCH Pro 5.2.2
system plugins :
The administrator has disabled public write access.

Jotcache and JCH - 404s for .css 08 Dec 2017 13:36 #2091

Did you clear Global cache and JotCache cache (delete All)?

Which errors you get after upgrade to JotCache 6.1.3?
The administrator has disabled public write access.

Jotcache and JCH - 404s for .css 08 Dec 2017 14:02 #2092

I did clear global cache and jotcache cache.

Don't get any errors in site monitoring tool. Just distorted pages with 404s for widgetkit.js, widgetkit.css, cw-default.css and cwsl_style.css (both for CoalaWeb Social Links) and JCH css.
The administrator has disabled public write access.

Jotcache and JCH - 404s for .css 11 Dec 2017 11:07 #2093

I think it was my mistake. I have been under the weather and I forgot to exclude IE9 from caching (need this for my template) after I upgraded to 6.1.3. After excluding IE9 from caching all seems to work very well.
The administrator has disabled public write access.

Jotcache and JCH - 404s for .css 11 Dec 2017 16:54 #2094

Excluding IE9 from caching solves other 404s issues but I still get distorted content.

It looks like this happens randomly as for 3 days there were no issues whatsoever. Some pages are affected, others are not (no 404s; nothing in error.log). The affected pages look like they don't have any CSS loaded - the output is identical to the issues with Joomla cache from earlier this year (J3.7 caching issues) which required Joomla system cache to be disabled completely.

At this point I'm not sure what's causing it. I have disabled JotCache for now and plan to keep it disabled for couple of days to see if any problem occurs. Wouldn't be surprised if the problem was with J3.8.2 though. Will provide an update in a few days.

Joomla version : 3.8
JotCache version : 6.1.3
site template: Yootheme Infinite
system plugins : JCH Pro 5.2.2
The administrator has disabled public write access.

Jotcache and JCH - 404s for .css 11 Dec 2017 17:54 #2095

Try to look in web server access log to find request where the css files are not loaded. It can be also feed or print or some crawler request which can cause the problem.
The administrator has disabled public write access.
Time to create page: 1.615 seconds
We have 49 guests and no members online
Copyright © 2015 JotComponents
We have 49 guests and no members online
Copyright © 2017 JotComponents