Post by stef83136 » Sun Mar 29, 2020 4:01 pm

Hello, we were using Opencart 2 + LiteSpeed Cache it worked without problems.

Since we switched to the Opencart 3 version and we activate the LiteSpeed Web Server cache on our o2switch server - Activate the LSCache cache we lose the icons on the site. They are no longer loaded. As soon as we deactivate LiteSpeed Web Server the site works properly. We see this phenomenon on the native theme and on Journal3. (https://www.aquamagasin.com) There the site works with lscache disabled

Do you have an idea . Thanks for your help.
Last edited by stef83136 on Wed Apr 08, 2020 7:55 pm, edited 1 time in total.

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by thekrotek » Sun Mar 29, 2020 4:50 pm

Contact extension developer on the matter.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member
Online

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by letxobnav » Sun Mar 29, 2020 5:43 pm


Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by stef83136 » Sun Mar 29, 2020 7:04 pm

letxobnav wrote:
Sun Mar 29, 2020 5:43 pm
Failed to load resource: the server responded with a status of 404 ()
https://www.aquamagasin.com/image/cache ... W2vwZ.webp
https://www.aquamagasin.com/image/cache ... tcQ9j.webp
https://www.aquamagasin.com/image/cache ... RVGL1.webp
etc. etc. etc.
We also have Pagespeed installed (Rewrite images - Optimize images) whether it is activated or deactivated, this does not solve the problem with the LScache cache.

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by stef83136 » Sun Mar 29, 2020 7:07 pm

thekrotek wrote:
Sun Mar 29, 2020 4:50 pm
Contact extension developer on the matter.
Module enabled or disabled we have the problem. The phenomenon appears as soon as we activate LScache in Cpanel.

Here is what the host tells me:

In the development mode of my browser, console part, I have many CSP errors:

Content Security Policy: The source '' unsafe-inline '' present in script-src has been ignored: 'strict-dynamic' has been specified
Content Security Policy: The source "https:" present in script-src has been ignored: "strict-dynamic" has been specified
Content Security Policy: Source "http:" present in script-src has been ignored: "strict-dynamic" has been specified

Errors like this can block resources, including resources used to load icons.

It would be necessary to check the CSP policy of the site, to make it a little more flexible and to authorize more.

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by letxobnav » Sun Mar 29, 2020 10:23 pm

so this (https://www.aquamagasin.com) is the site that does not have the problem?
It does not set Content-Security-Policy: script-src headers.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by stef83136 » Sun Mar 29, 2020 11:45 pm

letxobnav wrote:
Sun Mar 29, 2020 10:23 pm
so this (https://www.aquamagasin.com) is the site that does not have the problem?
It does not set Content-Security-Policy: script-src headers.
No it's the right site but I removed from .htacess

Code: Select all

# <IfModule mod_headers.c>
#Header set X-XSS-Protection "1; mode = block"
#Header always append X-Frame-Options SAMEORIGIN
#Header set X-Content-Type-Options nosniff
#Header always set Strict-Transport-Security "max-age = 31536000"
# </IfModule>
If you view it there is no error and no image is missing.

If I activate LiteSpeed - LSCache then the icons disappear
Image

the site being in production I deactivated LiteSpeed - LSCache

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by victorj » Mon Mar 30, 2020 4:19 am

litespeed did give me a lot of problems to.
i did install engitron it also install memcache.
activated memcache in opencart
(system/config/default.php)

Code: Select all

// Cache
$_['cache_engine']         = 'file'; // apc, file, mem or memcached
$_['cache_expire']         = 3600;
change file to memcached

add memcache to both config.php files.

Code: Select all

// CACHE
define('CACHE_DRIVER', 'memcached');
define('CACHE_HOSTNAME', 'localhost');
define('CACHE_PORT', '11211');
define('CACHE_NAMESPACE', 'opencart');
define('CACHE_PREFIX', 'oc_');
did speed things up and server load has reduced significant

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by letxobnav » Mon Mar 30, 2020 11:38 am

icons not showing is most likely a cors issue, not a csp issue.
Those security headers are fine.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by stef83136 » Mon Mar 30, 2020 2:35 pm

letxobnav wrote:
Mon Mar 30, 2020 11:38 am
icons not showing is most likely a cors issue, not a csp issue.
Those security headers are fine.
How to resolve or work around this problem?

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by stef83136 » Mon Mar 30, 2020 2:37 pm

victorj wrote:
Mon Mar 30, 2020 4:19 am
litespeed did give me a lot of problems to.
i did install engitron it also install memcache.
activated memcache in opencart
(system/config/default.php)

Code: Select all

// Cache
$_['cache_engine']         = 'file'; // apc, file, mem or memcached
$_['cache_expire']         = 3600;
change file to memcached

add memcache to both config.php files.

Code: Select all

// CACHE
define('CACHE_DRIVER', 'memcached');
define('CACHE_HOSTNAME', 'localhost');
define('CACHE_PORT', '11211');
define('CACHE_NAMESPACE', 'opencart');
define('CACHE_PREFIX', 'oc_');
did speed things up and server load has reduced significant
Thank you I will study this but I admit that I would like much to find the solution all the same because I was fully satisfied with the operation under Opencart 2

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by paulfeakins » Mon Mar 30, 2020 6:54 pm

So you have LiteSpeed cache, PageSpeed cache, Journal cache plus all the built-in caches too? That's a recipe for disaster! Try using less caches.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by stef83136 » Mon Mar 30, 2020 9:41 pm

paulfeakins wrote:
Mon Mar 30, 2020 6:54 pm
So you have LiteSpeed cache, PageSpeed cache, Journal cache plus all the built-in caches too? That's a recipe for disaster! Try using less caches.
Hi paulfeakins, it is not necessary, it worked perfectly under OC2 and Journal2.

Beyond the number of cache used or not, there is a problem. It remains to be seen whether it comes from OC or Journal. I will look for the first because even with the native theme (which has no cache as a journal) the problem exists.

I tried disabling the caches the problem remains the same with LiteSpeed Cache.

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by letxobnav » Mon Mar 30, 2020 10:59 pm

no problem seeing those icons.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by stef83136 » Mon Mar 30, 2020 11:10 pm

letxobnav wrote:
Mon Mar 30, 2020 10:59 pm
no problem seeing those icons.
Hi letxobnav, it's because I disabled LiteSpeed Cache

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by letxobnav » Tue Mar 31, 2020 1:32 am

very difficult to check a page for errors which has no errors.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by stef83136 » Tue Mar 31, 2020 2:07 am

letxobnav wrote:
Tue Mar 31, 2020 1:32 am
very difficult to check a page for errors which has no errors.
letxobnav, The site is in production so it is actually difficult to leave it broken online. I just reactivated LiteSpeed Cache, deactivating the JOURNAL3 Query Strings cache all Minifiers and other modules related to performance in JOURNAL3. I also disabled PageSpeed, so only LiteSpeed Cache.

If you clear your cache you will see the effects.

Thanks for your return.

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by victorj » Tue Mar 31, 2020 2:35 am

console is telling:

Code: Select all

GET https://www.aquamagasin.com/catalog/view/theme/journal3/icons/fonts/icomoon.ttf?gzj9ot net::ERR_TOO_MANY_REDIRECTS
(index):4165 GET https://www.aquamagasin.com/catalog/view/javascript/font-awesome/fonts/fontawesome-webfont.woff2?v=4.7.0 net::ERR_TOO_MANY_REDIRECTS
3(index):1 GET https://www.aquamagasin.com/catalog/view/theme/journal3/icons/fonts/icomoon.woff?gzj9ot net::ERR_TOO_MANY_REDIRECTS
[Violation] Forced reflow while executing JavaScript took 69ms
did you clear journal cache ?

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by stef83136 » Tue Mar 31, 2020 1:05 pm

victorj wrote:
Tue Mar 31, 2020 2:35 am
console is telling:

Code: Select all

GET https://www.aquamagasin.com/catalog/view/theme/journal3/icons/fonts/icomoon.ttf?gzj9ot net::ERR_TOO_MANY_REDIRECTS
(index):4165 GET https://www.aquamagasin.com/catalog/view/javascript/font-awesome/fonts/fontawesome-webfont.woff2?v=4.7.0 net::ERR_TOO_MANY_REDIRECTS
3(index):1 GET https://www.aquamagasin.com/catalog/view/theme/journal3/icons/fonts/icomoon.woff?gzj9ot net::ERR_TOO_MANY_REDIRECTS
[Violation] Forced reflow while executing JavaScript took 69ms
did you clear journal cache ?
Hello. Yes the Journal cover has been cleaned. Do you think this was an error from the development of Journal? Could this be from a htaccess problem?

Opencart 3.0.3.2
Journal 3

Aquamagasin votre spécialiste du Traitement d'eau et des Adoucisseurs d'eau


Active Member

Posts

Joined
Tue Dec 09, 2014 3:29 am
Location - France

Post by letxobnav » Tue Mar 31, 2020 2:23 pm

https://www.aquamagasin.com/catalog/vie ... ff?v=4.7.0
redirects to itself
https://www.aquamagasin.com/catalog/vie ... off?gzj9ot
redirects to itself
without the parameters they redirect right back to the link with parameter

Just put those links in your browser and you will see the results, use web developer with disabled cache to see the redirects pile up.

So I would check your htaccess and/or journal stuff to see if you are redirecting/rewriting any static asset links that are font related or parameter related.

Oh and don't think that cache + cache + cache = 3 x speed, it generally means 1.3 x speed, 3 x trouble and 9 x resolution time.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan
Who is online

Users browsing this forum: No registered users and 29 guests