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.

Jotcache and JCH - 404s for .css 20 Dec 2017 15:31 #2105

Thanks.

I updated to Joomla 3.8.3 and enabled URL filter in Jotcache plugin options. Then enabled Jotcache and waited for distorted pages to be cached. Now either J 3.8.3 or URL filter helped as the problem occurred only once and pages were less distorted than before. Enabling the Jotcache helped tracking in logs (cache creating date proved to be very useful).

The culprits were:
[20/Dec/2017:13:02:50 +0000] "GET /*** HTTP/1.1" 200 34678 "***" "Mozilla/5.0 (Linux; Android 7.0; SAMSUNG SM-G930F Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/6.2 Chrome/56.0.2924.87 Mobile Safari/537.36"

[20/Dec/2017:13:20:59 +0000] "GET /*** HTTP/1.1" 200 9907 "***" "Mozilla/5.0 (iPhone; CPU iPhone OS 11_1_2 like Mac OS X) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0 Mobile/15B202 Safari/604.1"

Please note I redacted IPs and URLs affected. One was Samsung Browser 6.2 the second Safari 11 on iOS 11.1.2 /iPhone if I'm not mistaken.

Don't see them having anything in common so a little help would be appreciated.

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

Jotcache and JCH - 404s for .css 21 Dec 2017 11:31 #2108

It seems to be non-correct page presentation when page is requested by specific mobile devices. It can be problem with applied css rules for given agents.

Look on template settings for mobile agents and used css files. Recognize which part of page elements are distorted - it helps for problem solution.
The administrator has disabled public write access.
Time to create page: 0.296 seconds
We have 65 guests and no members online
Copyright © 2015 JotComponents
We have 65 guests and no members online
Copyright © 2018 JotComponents