-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cookie notice? #1069
Comments
Hi, This might not help you much but I use Complianz | GDPR/CCPA Cookie Consent on a site with qTranslate-XT and I do not experience the banner being displayed on every page. |
What else could it be then :/ |
To anyone who want to add complianz compatibility with qTranslateXt you can use the standard string shortcode and then adding this in your theme function.php
|
Thank you for that. I have added the code and I still experience the problem. I have two languages. When in first language(default one), I get the notice once and that is it. |
to be clear, the code written above is for the multilingual compatibility, to be able to insert the message in two different language. It does nothing for the plugin that keep appearing |
I got that later on. Thank you anyway. |
Thanks @dbalconi for this code snippet, it works just fine! |
@LaMpiR I just got this bug but only on my production site, not on the dev version. This meant it was not a Qtranslate XT issue but a Complianz issue. I contacted Complianz support and they quickly advised me to :
|
@dbalconi The filter you hooked on has sadly been deprecated. Version 6.0 of the plugin is thus not translatable using this code snippet. |
Hi @dbalconi, |
Probably is the version 6.x of complianz , try to do a test with complianz 5.xInviato dal mio Galaxy
-------- Messaggio originale --------Da: renad ***@***.***> Data: 04/04/22 22:20 (GMT+01:00) A: qtranslate/qtranslate-xt ***@***.***> Cc: dbalconi ***@***.***>, Mention ***@***.***> Oggetto: Re: [qtranslate/qtranslate-xt] Cookie notice? (#1069)
Hi @dbalconi,
I tried your code for Complianz translation - I added it to into theme function.php
Unfortunately, it doesn't work - see attachment.
I use the The7 template – with child theme, I added the code to the child theme as usual.
Can you help me
?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Thanks for the advice, yes this is the Complianz version 6.1.2 |
I couldn't find Complianz v.5, and I don't even want to downgrade, I don't think that's the solution, I'd rather have a new code found :-) |
Would you be willing to update your code for version 6?
I will be happy to contribute financially …
Dusan
… Dňa 4. 4. 2022 o 22:36, dbalconi ***@***.***> napísal:
Probably is the version 6.x of complianz , try to do a test with complianz 5.xInviato dal mio Galaxy
-------- Messaggio originale --------Da: renad ***@***.***> Data: 04/04/22 22:20 (GMT+01:00) A: qtranslate/qtranslate-xt ***@***.***> Cc: dbalconi ***@***.***>, Mention ***@***.***> Oggetto: Re: [qtranslate/qtranslate-xt] Cookie notice? (#1069)
Hi @dbalconi,
I tried your code for Complianz translation - I added it to into theme function.php
Unfortunately, it doesn't work - see attachment.
I use the The7 template – with child theme, I added the code to the child theme as usual.
Can you help me
?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub <#1069 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAL3PYWXNUGKFLMSCR4TV5DVDNHEXANCNFSM5EMUIGUA>.
You are receiving this because you commented.
|
Sorry , I'm not interested at the moment . If for whatever reason I ll need this code for me il write it and post here . Probably the solution for V6 is very similar to mine with the hook name changed Inviato dal mio Galaxy
-------- Messaggio originale --------Da: renad ***@***.***> Data: 05/04/22 13:20 (GMT+01:00) A: qtranslate/qtranslate-xt ***@***.***> Cc: dbalconi ***@***.***>, Mention ***@***.***> Oggetto: Re: [qtranslate/qtranslate-xt] Cookie notice? (#1069)
Would you be willing to update your code for version 6?
I will be happy to contribute financially …
Dusan
Dňa 4. 4. 2022 o 22:36, dbalconi ***@***.***> napísal:
Probably is the version 6.x of complianz , try to do a test with complianz 5.xInviato dal mio Galaxy
-------- Messaggio originale --------Da: renad ***@***.***> Data: 04/04/22 22:20 (GMT+01:00) A: qtranslate/qtranslate-xt ***@***.***> Cc: dbalconi ***@***.***>, Mention ***@***.***> Oggetto: Re: [qtranslate/qtranslate-xt] Cookie notice? (#1069)
Hi @dbalconi,
I tried your code for Complianz translation - I added it to into theme function.php
Unfortunately, it doesn't work - see attachment.
I use the The7 template – with child theme, I added the code to the child theme as usual.
Can you help me
?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub <#1069 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAL3PYWXNUGKFLMSCR4TV5DVDNHEXANCNFSM5EMUIGUA>.
You are receiving this because you commented.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
OKI, thanks for now ...
… Dňa 5. 4. 2022 o 14:14, dbalconi ***@***.***> napísal:
Sorry , I'm not interested at the moment . If for whatever reason I ll need this code for me il write it and post here . Probably the solution for V6 is very similar to mine with the hook name changed Inviato dal mio Galaxy
-------- Messaggio originale --------Da: renad ***@***.***> Data: 05/04/22 13:20 (GMT+01:00) A: qtranslate/qtranslate-xt ***@***.***> Cc: dbalconi ***@***.***>, Mention ***@***.***> Oggetto: Re: [qtranslate/qtranslate-xt] Cookie notice? (#1069)
Would you be willing to update your code for version 6?
I will be happy to contribute financially …
Dusan
> Dňa 4. 4. 2022 o 22:36, dbalconi ***@***.***> napísal:
>
>
> Probably is the version 6.x of complianz , try to do a test with complianz 5.xInviato dal mio Galaxy
> -------- Messaggio originale --------Da: renad ***@***.***> Data: 04/04/22 22:20 (GMT+01:00) A: qtranslate/qtranslate-xt ***@***.***> Cc: dbalconi ***@***.***>, Mention ***@***.***> Oggetto: Re: [qtranslate/qtranslate-xt] Cookie notice? (#1069)
>
> Hi @dbalconi,
>
> I tried your code for Complianz translation - I added it to into theme function.php
>
> Unfortunately, it doesn't work - see attachment.
>
> I use the The7 template – with child theme, I added the code to the child theme as usual.
>
> Can you help me
>
>
>
> ?
>
>
>
> —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
>
> —
> Reply to this email directly, view it on GitHub <#1069 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAL3PYWXNUGKFLMSCR4TV5DVDNHEXANCNFSM5EMUIGUA>.
> You are receiving this because you commented.
>
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub <#1069 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAL3PYUVPPG4SI2ALJGL3LDVDQVCPANCNFSM5EMUIGUA>.
You are receiving this because you commented.
|
One more question:
Did you mean this hook names ?
… Dňa 5. 4. 2022 o 14:28, Dušan Beleščák ***@***.***> napísal:
OKI, thanks for now ...
> Dňa 5. 4. 2022 o 14:14, dbalconi ***@***.*** ***@***.***>> napísal:
>
>
> Sorry , I'm not interested at the moment . If for whatever reason I ll need this code for me il write it and post here . Probably the solution for V6 is very similar to mine with the hook name changed Inviato dal mio Galaxy
> -------- Messaggio originale --------Da: renad ***@***.***> Data: 05/04/22 13:20 (GMT+01:00) A: qtranslate/qtranslate-xt ***@***.***> Cc: dbalconi ***@***.***>, Mention ***@***.***> Oggetto: Re: [qtranslate/qtranslate-xt] Cookie notice? (#1069)
>
> Would you be willing to update your code for version 6?
>
> I will be happy to contribute financially …
>
>
>
> Dusan
>
>
>
> > Dňa 4. 4. 2022 o 22:36, dbalconi ***@***.***> napísal:
>
> >
>
> >
>
> > Probably is the version 6.x of complianz , try to do a test with complianz 5.xInviato dal mio Galaxy
>
> > -------- Messaggio originale --------Da: renad ***@***.***> Data: 04/04/22 22:20 (GMT+01:00) A: qtranslate/qtranslate-xt ***@***.***> Cc: dbalconi ***@***.***>, Mention ***@***.***> Oggetto: Re: [qtranslate/qtranslate-xt] Cookie notice? (#1069)
>
> >
>
> > Hi @dbalconi,
>
> >
>
> > I tried your code for Complianz translation - I added it to into theme function.php
>
> >
>
> > Unfortunately, it doesn't work - see attachment.
>
> >
>
> > I use the The7 template – with child theme, I added the code to the child theme as usual.
>
> >
>
> > Can you help me
>
> >
>
> >
>
> >
>
> > ?
>
> >
>
> >
>
> >
>
> > —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
>
> >
>
> > —
>
> > Reply to this email directly, view it on GitHub <#1069 (comment) <#1069 (comment)>>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAL3PYWXNUGKFLMSCR4TV5DVDNHEXANCNFSM5EMUIGUA <https://github.com/notifications/unsubscribe-auth/AAL3PYWXNUGKFLMSCR4TV5DVDNHEXANCNFSM5EMUIGUA>>.
>
> > You are receiving this because you commented.
>
> >
>
>
>
>
>
>
>
> —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
>
> —
> Reply to this email directly, view it on GitHub <#1069 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAL3PYUVPPG4SI2ALJGL3LDVDQVCPANCNFSM5EMUIGUA>.
> You are receiving this because you commented.
>
|
Hi, add_filter('cmplz_cookiebanner_settings','filter_data_complianz',10,1); |
Thanks @renad |
Actually I've just noted there are a bunch of PHP warings when using your code: Warning: Illegal offset type in isset or empty in wp-includes\pomo\translations.php on line 91 |
Try this code: |
function cmplz_qtranslatex_options($options){
} |
Same as before unfortunately :( I noticed the warning are showing up only on the Italian version of the website (which is the default language), on the English version there are no warnings. If I switch to English as default language, same warnings appear only on the Italian side. Complianz v 6.1.5 |
As a temporary solution, I added these lines to wp-config.php:
|
I've just found out qTranslate-XT & Complianz do not work together on PHP 8.1. PHP Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in /wp-includes/pomo/translations.php:91 qTranslate-XT without Complianz works fine on PHP 8.1. |
I'm having the same problem using PHP 8.0.21 and PHP 8.1.9- as soon as I activate both Complianz and Qtranslate-XT it goes havoc - each on it's own is okay. The plugin works just fine (except this one error thrown): Warning: Undefined array key "pngfix_selectors" in /var/www/openmtbmap.org/htdocs/wp-content/themes/atahualpa/functions.php on line 858 These are the errors on 8.0 and 8.1: I get the following errors: With functions.php adapted - either it doesn't do anything or I get things like: --- Without functions.php many pictures do not load, the complianz popup doesn't load, the qtranslate languaage choser doesn't load and so on - plus I get on header: And Is there any other plugin that is free that works out of the box for GDPR compliance like Complianz? I tried through a bunch and none of them is really working in the free version.. Complianz is - but messes with qtranslate-xt |
I can solve most problems by disabling the custom css in all fields of Complianz - it still havocs my payement processor (Stripe) credit card field inserted by s2member, so I am back to 7.4 PHP if I want to activate Complianz for right now - will look if there is something more to debug/circumvent so that it is possible to activate PHP 8.x Helps to activate/deactivate these settings: |
regarding php 8 compatibility, in the integration, please replace
with
See |
Excellent thanks @rlankhorst |
I still have a lot of problems if enabling 8.0 or 8.1 with both qtranslate xt and complianz. The change just made the page not crash - but still behave problematic (broken layout mainly, some other plugins going crazy). |
Complianz is tested with php 8 & 8.1. It sounds as if your other plugins, including qtranslate, are not ready for php 8/8.1 Looking at the logs, Wordpress core also isn't. |
|
My code doesn't work with compianz 6.x
-------- Messaggio originale --------Da: sviluppomania ***@***.***> Data: 13/09/22 18:18 (GMT+01:00) A: qtranslate/qtranslate-xt ***@***.***> Cc: dbalconi ***@***.***>, Mention ***@***.***> Oggetto: Re: [qtranslate/qtranslate-xt] Cookie notice? (#1069)
Hi @dbalconi, I tried your code for Complianz translation - I added it to into theme function.php Unfortunately, it doesn't work - see attachment. I use the The7 template – with child theme, I added the code to the child theme as usual.
Can you help me ?
@rlankhorst
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
wordpress seems fine with 8.0 - but yes thowring some errors in console in 8.1 - but my site is fine. It's only if I actiave BOTH Complianz and Q-Translate XT at the same time that I get problems. Either plugin alone and I*m fine. And yes I did change the code in the integration. Actually no difference between 8.0 and 8.1 in real life (in console 8.1 looks more problematic). |
Sorry - actually I think the bug is solved for me too. However Complianz on PHP 8.0 or later does not work with my theme. I just completely removed the qtranslate.php plugin of complianz then noticed this problem. |
Made some adjustments, this branch seems to work for all fields |
Another fatal error when running Complianz wizard (after adding Google Maps service): Fatal error: Uncaught TypeError: Argument 1 passed to qtranxf_useRawTitle() must be of the type string, null given, called in \wp-includes\class-wp-hook.php on line 308 and defined in \wp-content\plugins\qtranslate-xt\src\hooks.php:79 Stack trace: qTranslate-XT 3.15.2 |
Hi.
Can somebody recommend me some plugin for the Cookie Notice, since I am using Complianz and they are awesome, but they do not support QTranslate-xt at the moment, since the plugin is not in the wordpress directory.
I have issue with them that cookie banner jumps out on every page.
The text was updated successfully, but these errors were encountered: