DogHustler
Forum Replies Created
-
Forum: Plugins
In reply to: [Cookies and Content Security Policy] PRoblem with Litespeed cacheIs there anything to do about this ar is this something that only the developers of Litespeed can sort out?
I really like your plugin, so I only want to change it to another cookie solution if i absolutely have to! =)Thanks for your hard work, it is appreciated!
//Dan
This is what I have in the functions.php:
add_filter( 'um_template_tags_patterns_hook', 'custom_um_template_tags_patterns_hook' ); function custom_um_template_tags_patterns_hook( $search ) { $search[] = '{register_address}'; $search[] = '{register_zip}'; $search[] = '{register_city}'; $search[] = '{mobile_number}'; $search[] = '{register_family}'; $search[] = '{register_member-id}'; $search[] = '{register_confirm_family}'; return $search; } add_filter( 'um_template_tags_replaces_hook', 'custom_um_template_tags_replaces_hook' ); function custom_um_template_tags_replaces_hook( $replace ) { $replace[] = get_user_meta( um_user( 'ID' ), 'register_address', true ); $replace[] = get_user_meta( um_user( 'ID' ), 'register_zip', true ); $replace[] = get_user_meta( um_user( 'ID' ), 'register_city', true ); $replace[] = get_user_meta( um_user( 'ID' ), 'mobile_number', true ); $replace[] = get_user_meta( um_user( 'ID' ), 'register_family', true ); $replace[] = get_user_meta( um_user( 'ID' ), 'register_member-id', true ); if ( get_user_meta( um_user( 'ID' ), 'register_confirm_family', true ) ) { $replace[] = implode( ',', get_user_meta( um_user( 'ID' ), 'register_confirm_family', true ) ); } return $replace; }
Yes, I have both in the functions.php file.
//Dan
Ah, I didn’t know you needed that. I have used it on all our projects the last few years though, so it shouldn’t be a problem going forward!
Thanks for the excellent help, as always!
/Dan
I checked and the page ID is the in the select box and the front end page.
I also tried changing the Cookie Policy page to another page on the website, and had the same problem, the pop-up triggers.
Hmm, I don’t know.
I’ve tried it in 4 different browser (always clearing browser cache before) and in “incognito” tabs as well. No cache plugin active on the website while trying all this. Still triggers.
So it’s really strange. It doesn’t trigger for you?
Yes, I have checked Debug now.
That’s strange. The website I’m currently testing it on has the https://use.typekit.net/ link hard coded in the <head> of the website. But, the font is loaded even before the consent is given.
https://use.typekit.net/ is added in the “Experience” section of the “Domains settings”, so it shouldn’t load unless consent is given.
It’s on this website:
https://www.monivent.se/I think we can set this thread as “Solved”. A weird cache problem is the most likely, I feel.
And if, worst case scenario, it actually is a cookie that’s blocked, at least it is always blocked, which means that the website follows GDPR.
Thanks for the help!
Weird. I did some more testing and it only seems to happen in Google Chrome for me. Could it be a cache bug? The website don’t have a cache plugin currently though, and I have cleared the browser cache and tried via an incognito tab. Via incognito tab it works and the problem disappears.
Maybe it’s not directly related to the website, but something that only Chrome does? This url is related to it somehow, but I’m not sure what it means…
https://www.youtube.com/s/player/041a7965/www-embed-player.vflset/www-embed-player.js
And it’s not visible in the Console at all when I don’t allow any cookies in the settings. Only after I accept the cookies and the page loads fully.
No, the “Always allow” is empty. I’ve added the https://use.typekit.net/ under “Experience”.
Does it matter how the font is added to the website? For instance should it be added as an enqueued script in functions.php or hard coded into the <head> section or another way or does it now matter?
Thanks for the quick reply!
I’m not entirely sure what you mean? The font is loaded from Adobe, https://use.typekit.net/
However, when the cookie settings pop up is shown and I select my cookie settings, I can see through the transparent lightbox that the font already is loaded. Even if I make sure to clear all cache etc.
//Dan
I’m sorry for the late reply. I haven’t heard back from the person that had the problem, so let’s consider this solved! =) Thanks for the help!
//Dan
Yeah, that’s why I’m so confused. We built this theme from the ground up, so there are no functions that delete or alter any classes (unless they come from the core WordPress installation or one of the plugins used).
I don’t think I will be able to figure this one out with my knowledge level, unfortunately. I will have to change to another cookie plugin…
I think your plugin is the best one I’ve tried, though, so I’ll continue using it in the future! =)
Thanks for the help and directions!
//Dan
Thanks for the replies and help!
I’m starting to get really confused now, this is super strange… =)
The website gets the .modal-cacsp-open class, so that one is now overwritten, but for some reason .modal-cacsp-do-not-show-cookie-modal is.
I have tried deactivating all plugins but still not working.
I have also tried manually removing all scripts in the source code and everything in the functions.php without getting it to work.
I must be missing something, but can’t figure out what it is that is breaking the plugin.
When I change to a standard theme it works, so you must be correct in thinking it has something to do with the theme…
//Dan