Account created on 9 March 2022, over 3 years ago
#

Merge Requests

More

Recent comments

🇳🇿New Zealand atowl

Didn't have it enabled and those extra bits both made it work.

Closing the issue

🇳🇿New Zealand atowl

Hi @moshe weitzman,

Well that's good to know.

Is there any other config options with this? or just install and it works?

🇳🇿New Zealand atowl

Thanks @adamps for the update

Closing this as won't fix, as i don't think there's anything work here to do presently.

🇳🇿New Zealand atowl

Hi @lucky723,

Glad you have found a solution. Our site just has a link we put on a template with the correct features. eg if you scroll to the bottom of our page and look at the "Privacy settings" link. This is just defined as
<span class=.... eu-cookie-withdraw-tab ....">Privacy settings</span>
Which is picked up by the main JS of the eu cookie complaince.

Happy to have helped you out, and I'll close this issue off now.

🇳🇿New Zealand atowl

Hi @lucky723,

Thanks for the description update, i see what you mean now.

This isn't something i've done before so i had to dig dow a little to find it, but apparently in the drupal under structure->menu->tools there's a menu item it adds in there for cookie settings.

You can then place this block in a region to your liking.

🇳🇿New Zealand atowl

Hi @lucky723,

So you can try in the settings under the "Withdraw consent" for the option "Enable floating privacy settings tab and withdraw consent banner". When saved, this will bring up a button at the bottom of the page that the user can click on and reopen the cookie selection.
Alternatively, place a link on your page somewhere with the class name "eu-cookie-withdraw-tab", this will have the same effect.

🇳🇿New Zealand atowl

HI Jberg1,

Is still an issue?

Thanks

🇳🇿New Zealand atowl

Both versions of php have been out for for while now and we haven't seen any other reports.
So i will assume that this issue is outdated, and therefor can be closed.

If that's not the case, feel free to reopen.

🇳🇿New Zealand atowl

Hi @lucky723,

Is this still an issue? Otherwise i'll close it.

Thanks!

🇳🇿New Zealand atowl

Hi @john_b,

Is this still an issue? Otherwise i'll close it.

Thanks

🇳🇿New Zealand atowl

Hi @adamps,

Is this still an issue? There has been no reply for a while.

🇳🇿New Zealand atowl

Hi @taote,

Since there's been no reply in a long time i am assuming this issue to be closed

Feel free to reopen if thats not the case

🇳🇿New Zealand atowl

Hi @deepakkm,

Appreciate the request. I am always on the look out for some help maintaining this module, but would appreciate some help in the issue queue first.
Thanks

🇳🇿New Zealand atowl

I've re-rolled the MR160 to be up to date with the main branch,
also attached a patch for those following.

if this is acceptable we can look at merging this into the next release

🇳🇿New Zealand atowl

Hi All,

Could i get an update for this with someone using 1.28? and if it's still a potential issue?

🇳🇿New Zealand atowl

With no further information, i'm closing this.

Please feel free to reopen if its still an issue

🇳🇿New Zealand atowl

With no further information, i'm closing this.

Please feel free to reopen if its still an issue

🇳🇿New Zealand atowl

With no further information, i'm closing this.

Please feel free to reopen if its still an issue

🇳🇿New Zealand atowl

With no further information, i'm closing this.

Please feel free to reopen if its still an issue

🇳🇿New Zealand atowl

With no further information, i'm closing this.

Please feel free to reopen if its still an issue

🇳🇿New Zealand atowl

Updated the module information.

🇳🇿New Zealand atowl

Hi @John_b,

I see this as a potentially nice feature for some.

Could i get you do a basic reproduction so i could test your patch? Thanks

🇳🇿New Zealand atowl

atowl changed the visibility of the branch 3527482-category-scripts-fix to hidden.

🇳🇿New Zealand atowl

Hi @jamesoakley,

I probably should document this in a better place than in the release note
To use the migration tool you should be able to do
drush en klaro_migrator
This will enable the migrator tab.

As a good precaution, do this on a non-production environment first to make sure the results are as you expect.

I'll leave this as need more information, if it works for you then please feel free to close this as fixed.

🇳🇿New Zealand atowl

Hi @berdir,

Could you be a bit more specific? So i could look further?

The only test it seems to be failing is the phpunit, and thats currently failing on 8.x-1.x branch as well.

Thanks

🇳🇿New Zealand atowl

Thanks for all the work, merging this, and it'll be in the next release shortly.

🇳🇿New Zealand atowl

Hi @eueco

Thanks for the very detailed report! I like how much information you supplied!!

I feel however, that this is probably more to do with the google_analytics module? The EUCC module isn't responsible for cleaning up the analytics cookies left behind, and if we do, that's just for the analytics cookies, what about other sites cookies?

We do provide notifiers inside the JS for other modules to hook into to see the state of categories accepted? maybe thats what you're after instead?

Very happy to discuss this further if you think we need to look into it

thanks!

🇳🇿New Zealand atowl

Hi @guillaumeg,

I've attached a patch of the MR, if you could just confirm that works i'll look to merge it for the next release.

Thanks!

🇳🇿New Zealand atowl

Many thanks @irafah for getting back to me on that, will closed this as fixed.

🇳🇿New Zealand atowl

Hi @irafah

Is this still an issue for you on the later versions?

🇳🇿New Zealand atowl

Hi @wotts,

If you modify the libraries file to look like

eu_cookie_compliance:
  js:
    js/eu_cookie_compliance.js: { minified: false }

you can debug/change your tab index, then execute `npm run uglify` to get the minified output.
Or just add your change to the issue fork, and i can take care of the minification

🇳🇿New Zealand atowl

Hi @malirezaei

Are you still seeing this error at all with the later version of the EUCC?

If you need to debug it a bit better, you could change the eu_cookie_compliance.libraries.yml to look like:

eu_cookie_compliance:
  js:
    js/eu_cookie_compliance.js: { minified: false }

then perform a Cache clear, and it should pinpoint a better line for your error.

🇳🇿New Zealand atowl

Hi All,
Merged and closed as fixed.

Thanks for help on this issue.

🇳🇿New Zealand atowl

For a reproduction so far i have tried
- install drupal/google_tag^1.8
- set up a new container (my_first_container), all fake-ish data and defaults.
- changed to opt-in with categories
- created 2 categories, one for my testing, and one for analytics (both unchecked by default).
- added my disabled javascripts

test_module:modules/custom/test_module/js/console_log.js|test_module
analytics:https://www.googletagmanager.com/gtag.js
analytics:sites/default/files/google_tag/my_first_container/google_tag.script.js

Now accepting the analytics category i don't see either of the two scripts pop up, however ever, applying @guillaumeg's patch, i see the both appear.

I think this is the reproduction that i'm looking for.

🇳🇿New Zealand atowl

Hi @pianomansam,

All merged, thanks for your time on this issue!

🇳🇿New Zealand atowl

Hi @guillaumeg, and @elaman,

I've started a new issue about this 🐛 Javascript libraries attached in HEAD not loaded Active , and also attached @guillaumeg's patch to it.
We can discuss it further over there.

🇳🇿New Zealand atowl

Uploading the patch that was supplied in the previous issue 🐛 disabled scripts not being included after consent Active from @guillaumeg. It is the same file, just renamed to suit this issue so it can be discussed here.

🇳🇿New Zealand atowl

Hi @joachim,

Think we need more information, and possibly a good reproduction to see whats going on here.

🇳🇿New Zealand atowl

Hi @pianomansam

So i've spent some time going over this, and i think i've tested enough to make sure this works, just making sure since this will affect performance if we do get it wrong :)

In my ddev env turned on enough caching to get the X-Drupal-Cache to have a 'HIT' on a 2nd page refresh.
(For those playing along at home i had to use

$settings['cache']['bins']['render'] = 'cache.backend.database';
$settings['cache']['bins']['page'] = 'cache.backend.database';
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.database';

)

I then took your patch, and placed a log message after it, cleared the caches (drush cr), and refreshed the page.
First page load after cache clearing, i saw X-Drupal-Cache: MISS, and the log message.
Every then every subsequent page load was a X-Drupal-Cache: HIT, and no log message, as it's obviously coming from the cache.

Is that what you were expecting/tested?

🇳🇿New Zealand atowl

So just to continue on the conversation that @berdir has kicked off, if headers:DNT is now deprecated, what do we put there instead?

While I don't see an issue in continuing with this patch at present, but just wondered if there was something else to put in? at the same time, or maybe we create a new issue and deal with it there.

🇳🇿New Zealand atowl

OK thanks for the information @pianomansam,

I'll (re) close this as fixed, and i'll look at merging #3480626, and any further disucussion in that thread.

🇳🇿New Zealand atowl

Hi @jino matthew,

From my brief search, to meet CCPA requirements, you may need to:

-Include a “Do Not Sell My Personal Information” link.
-Provide clear disclosures about data collection and usage.
-Allow users to opt out of data sharing/selling.
-Ensure data access and deletion mechanisms are in place.

The EUCC by default goes for the opt-in strategy, where as CCPA is more opt-out from what i read.

Hope this helps.

🇳🇿New Zealand atowl

Hi @brtamas,

With the recent releases, could i get you to check this again to see if it's still the case?

Thanks!

🇳🇿New Zealand atowl

Hi @saarlandtoday,

Would like to help you out on this one, can you give me more information about how you're doing this? I'd like to setup a reproduction if possible.

thanks!

🇳🇿New Zealand atowl

Hey Dan,

I'm probably not going to merge #3408084 until the whole thing is ready, as it will turn all the pipelines red. Would rather have it all working and merge it across.

I'll merge the parent into this one.

🇳🇿New Zealand atowl

Thanks everyone for your help on this issue,

I've merged this in, will be available in the next release shortly

🇳🇿New Zealand atowl

Hi @adriancid,
Have merged this in, thanks for your work on the issue.

🇳🇿New Zealand atowl

Hi @guillaumeg,

Yes, all the testing i did for this issue i used drupal/google_tag^2.0.8 (to be specific).

So you are using the 1.8 version? I can try again with that.

🇳🇿New Zealand atowl

As there's no real information here, i'll close this, please feel free to reopen the issue with more information, or join us in #eu_cookie_compliance on slack for more help.

🇳🇿New Zealand atowl

Hi @adriancid,

I've switched this across to 8.x-1.x.

🇳🇿New Zealand atowl

Hi All,

Is the MR138 good to go? or are we still missing something?
It looks fine to me.

🇳🇿New Zealand atowl

Hi,

Is this still an issue? i tried unsuccessfully to reproduce this and it didn't work.
Are you still able to reproduce it?

🇳🇿New Zealand atowl

Hi All,

As a new maintainer of this module, i've copied svenryen's spreadsheet, and struck out anything that has been fixed so far.
https://docs.google.com/spreadsheets/d/e/2PACX-1vRHj1rtlZ3Jxp6v4S0wz__eC...

There's a channel i also have created on slack #eu_cookie_compliance, where we can chat about things.
@rajeshreeputra I have been attempting to contact you, but seems you're not available on slack or email?

If others are interested in joining in as maintainers, i'd appreciate some action in some issues first. I am slowly wading through these. but would appreciate the help.

That being said, i'll leave this issue along for a little while longer before closing it.

🇳🇿New Zealand atowl

Hi @joe_carvajal,

That defer is for the disabled scripts loader, so only gets enabled if there's something in the disabled scripts.

After doing some reading, i'm not totally convinced yet that it would make much of a difference? Are you seeing any significant improvements by doing this?

It could be an issue with drupal.behaviors, as the async wouldn't wait (fired straight after first file download), so its possible that if a disabled script is trying to enable a behavior then it might not work.

Would be keen to hear more if anyone else has opinions before making the change, OR we could make it a configuration to be set?

🇳🇿New Zealand atowl

Closing this issue as i feel we have enough advertisement around the possible migration to klaro now.

🇳🇿New Zealand atowl

Closing this as a duplicate, feel free to reopen if not.

🇳🇿New Zealand atowl

Hi @guillaumeg,

Sorry to hear it's still not working for you.

I've installed *just* the project_gtm module (added a GTM number), and added your patch, but it never steps into the
if (!empty($library[0]['#attributes']['src']) && $library[0]['#tag'] === 'script') { part of your patch.
Admittely they do add their script into the head, so maybe we do actually need to look at html_head for scripts that might get loaded.

In the mean time, I'm going to mark this issue as being fixed, but could i get you to please start a new issue with the reproduction and the patch (more preferrably an issue fork) so i can start work on your issue.

thanks!

🇳🇿New Zealand atowl

Actually i think FileExists class not available in Drupal 10.3, causes compatibility issue 🐛 FileExists class not available in Drupal 10.3, causes compatibility issue Active actually ended up being a duplicate of this. Apologies for that.

If that's the case could you mark it as duplicate?

🇳🇿New Zealand atowl

Hi @antonio.lepore,

Thanks for making that change. I've merged that into the main branch.

🇳🇿New Zealand atowl

Hi @newaytech!

Glad to hear that's all working, i've merged the changes into the main branch, will release a new version shortly.

Thanks so much for yours and everyones help on this issue.

🇳🇿New Zealand atowl

Hi - going to close this as being fixed, a lot more of the discussion was made in #3528439.
If it wasn't fixed, feel free to reopen.

🇳🇿New Zealand atowl

Hi Alexander,

Apologies for that, lets try that again shall we? I have re-rolled the patch and tested it against the 1.26 release.

Should be all good to go now!

🇳🇿New Zealand atowl

Thanks @newaytech for that

So i've removed the unverified script checks from hook_page_attachments() and left it in the _alter() hook instead, as you pointed out.

Hopefully this resolves it for everyone, if so i'll get a new release out.

🇳🇿New Zealand atowl

Looks like saveData has support right back to 8.9.x
So you could just replace the 2 lines with the `< 10.3` and it should be fine.
oh - if you could also just remove my TODO comment that'd be cool too.

🇳🇿New Zealand atowl

Hi - shouldn't be using MR161, that just disables the javascript.
I've attached a patch from my branch of 3527482-category-scripts-fix. If you could try that please.

🇳🇿New Zealand atowl

Hi,

After implementing MR161, did you happent to resave the settings? this would write out a changed eu_cookie_compliance.script.js file with the updated unverified script list in it.

You're correct in saying that Alex's patch undoes the purpose of the unverified script variable, so we need to find a better solution.

My next question is (as i've seen this, but unsure if its a problem), could i get you to put a little debug into public://eu_cookie_compliance/eu_cookie_compliance.script.js to print the category variable (console.log(catagory)). This should be the same as your category machine name i believe. But it obviously has to match options.categoryName in the script otherwise it won't execute.

Thanks for your help in solving this issue.

🇳🇿New Zealand atowl

Hi @newaytech,

I've linked the issue to another that is similar. If you could take a look and test that would be great thanks.

🇳🇿New Zealand atowl

Hi @codebymikey,

I've pushed a change to a new issue fork here, could i get you to test it and let me know how it goes?

As much as i would like to change to what you have suggested, i can't do it just yet. I'd like to just get the module a bit more cleaned up first.
BUT! lets create a feature request, and get it done as i do think that's a good idea!

🇳🇿New Zealand atowl

Thanks @techmantejas

i'll get onto review this shortly.

I was thinking we could merge all these into the gitlab-resolve branch, so that #3408084 would resolve?

🇳🇿New Zealand atowl

Hi @codebymikey,

Can't delete that bit of code, thats responsible for weeding out any scripts that won't be loaded on the page.

I'm working on a solution at the js script end presently to fix it.

🇳🇿New Zealand atowl

Hi there,
so i take it the gtag.js isn't being included into the page? The purpose of the unverified scripts is to make sure that the script that EUCC has been tasked to run will actually be on the page. So in some way the gtag.js script isn't being included on your page.

i'll install that module and see if i can come with the same issue.

🇳🇿New Zealand atowl

Hi @deepakkm

I'm going to close this issue and raise another for each of the validation issues.
I think this is wise since the phpcs is going to be a big change, and i'd rather have that as a separate commit.

Production build 0.71.5 2024