kero
Forum Replies Created
-
+1
Forum: Plugins
In reply to: [Flow-Flow Social Feed Stream] GDPR compliance?Hello, sorry for the late reply.
Basically what we did is wrap all the JS code inside views/public.php in a JS
method calledinitFlowFlow. Also I deregistered some of your scripts from loading and load those dynamically as well via\wp_localize_script('main.js', 'externals', [ 'flowflow' => [ 'plugin' => '/wp-content/plugins/flow-flow-social-streams/js/require-utils.js', ], ]);Then we do our checks like so
if ( window.BorlabsCookie.checkCookieConsent('instagram') && window.BorlabsCookie.checkCookieConsent('facebook') ) { if (typeof window.initFlowFlow === 'function') { await asyncLoadScript(window.externals.flowflow.plugin) window.initFlowFlow() } }- This reply was modified 6 years, 1 month ago by kero.
Forum: Plugins
In reply to: [Flow-Flow Social Feed Stream] GDPR compliance?Yes and no. You’re correct that the plugin itself may not add any trackers, it enables the website creators to invite third party tools that do exactly that.
The specific problem I have with a client’s site is: we can’t “lazy activate” the plugin.
The GDPR compliance tool we use (https://borlabs.io/borlabs-cookie/) gives a visitor the possibility to accept social networks. But since the plugin inlines its relevant code (without a callback), I cannot do a JS check “if social is allowed, now load this ressource”.
My workaround was to directly edit plugin files (add a simple callback to the inlined code – that callback gets called when the visitor has given permission). But of course, this is far from a perfect solution (and not update safe).
Forum: Fixing WordPress
In reply to: Fixing fatal error after 5.30 updateFor me, this was not due to incomplete update. The problem came from having the Gutenberg plugin installed.
Plugin “Gutenberg” version 6.3.0
WP version 5.3Raised this fatal error:
[02-Dec-2019 10:19:24 UTC] PHP Fatal error: Cannot declare class WP_Block_Styles_Registry, because the name is already in use in /var/www/html/wp-content/plugins/gutenberg/lib/class-wp-block-styles-registry.php on line 14
Solution:
- Log into WP in recovery mode (you should have gotten a mail when the fatal error was experienced with a link to recovery mode), deactivate the “Gutenberg” plugin.
- Leave recovery mode
- Update the “Gutenberg” plugin (currently version 7.0.0)
- Activate the “Gutenberg” plugin again
- This reply was modified 6 years, 4 months ago by kero. Reason: add error log
Forum: Plugins
In reply to: [Polylang] Wrong 302, can’t access any postsMy bad, was actually another plugin “Restrict User Access”
Works like a charm, thanks! Shortcode Builder does not suggest this, even if “0” is written in max pages input
- This reply was modified 9 years, 4 months ago by kero.