Hi @aahulsebos since I updated my plugin has stopped showing my cookie popup box, and cannot understand why. I’ve run the assistant several times and tried different options but the consent box is not working.
* Now with your comment, I realized that only works with the debug code active. Do I have to leave the debug code active for the consent popup to show?
-
This reply was modified 5 years ago by
harlyqks.
-
This reply was modified 5 years ago by
harlyqks.
NEW COMMENT As I cannot edit my original comment (don’t know why)
Hi @aahulsebos since I updated my plugin has stopped showing my cookie popup box, ads are also not showing as the plugin is stopping them until the consent, but as the consent box never shows, any cookie apart from functionals is not working. Cannot understand why, I’ve run the assistant several times and tried different options, cleaned caché, etc, but the consent box is not working.
* Now with your comment, I realized that only works with the debug code active. Do I have to leave the debug code active for the consent popup to show? (I would prefer not to leave it active)
I’ll wait for your response, many thanks in advance.
Hi @harlyqks,
“SCRIPT_DEBUG” only has to run once, you can disable it afterwards and everything should still work as expected.
Kind regards,
Jarno
@jarnovos Many thanks for answering.
I have assumed that, but when I deactivate the debug code, the consent box is no longer displayed.
Everything is the same, the only thing I’ve done is updating the plugin.
@jarnovos @aahulsebos
It only works with Debug active or deactivating “Serve and automatically minify JavaScript files with CDN (wp-content folder only)” on my CDN configuration.
My Chrome console:
jQuery.Deferred exception: Cannot read property '0' of undefined TypeError: Cannot read property '0' of undefined
at getHoverColour (https://cdn.io/js/www.----.com/wp-content/plugins/complianz-gdpr/assets/js/complianz.min.js?ver=5.0.3:1:37898)
at cmplz_cookie_warning (https://cdn.io/js/www.----.com/wp-content/plugins/complianz-gdpr/assets/js/complianz.min.js?ver=5.0.3:1:15911)
at conditionally_show_warning (https://cdn.io/js/www.----.com/wp-content/plugins/complianz-gdpr/assets/js/complianz.min.js?ver=5.0.3:1:14425)
at HTMLDocument.<anonymous> (https://cdn.io/js/www.----.com/wp-content/plugins/complianz-gdpr/assets/js/complianz.min.js?ver=5.0.3:1:12252)
at e (https://cdn.io/wp/c/5.7.2/wp-includes/js/jquery/jquery.min.js:2:30005)
at t (https://cdn.io/wp/c/5.7.2/wp-includes/js/jquery/jquery.min.js:2:30307) undefined
Uncaught TypeError: Cannot read property '0' of undefined
at getHoverColour (complianz.min.js?ver=5.0.3:1)
at cmplz_cookie_warning (complianz.min.js?ver=5.0.3:1)
at conditionally_show_warning (complianz.min.js?ver=5.0.3:1)
at HTMLDocument.<anonymous> (complianz.min.js?ver=5.0.3:1)
at e (jquery.min.js:2)
at t (jquery.min.js:2)