- Issue created by @marianrk
- 🇩🇪Germany jan kellermann
Thank you for reporting!
I cannot reproduce and checked the code. The default config is an empty array and while saving always an array is saved.
Can you please send the current config value of
klaro.settings.deletable_cookie_domains
(e.g. via contact form to avoiding exposure your domain)?
Can you please tell us what steps you took before the error occurred?Thank you in advance!
Well I am n ot sure If you ever will be able to simulate that problem.
But I can provide as much info as I can.
1.) To answer your request:
ddev drush cget klaro.settings deletable_cookie_domains
[error] Config klaro.settings does not exist
Failed to run drush cget klaro.settings deletable_cookie_domains: exit status 1but at /admin/config/user-interface
it does exist link to Klaro config.So it has something to do with messed up install. That isnt ideal at all. I managed to have working config page somehow (I will note that later)
About project:
It is multidomain project, so it can be simulated on ddev enviroment.:
For example:
.ddev > config.yaml
additional_hostnames:
- en-www123
- es-www123And in drupal:
/admin/config/regional/language/detection/url
default lang: www123.ddev.site
en lang: en-www123.ddev.site
es lang: es-www123.ddev.site+ there was installed and configured: https://www.drupal.org/project/eu_cookie_compliance →
And all with version Drupal 11.1.72.) About error:
It probably somehow conflict with eu_cookie_compliance or eu_cookie_compliance didnt do clear uninstall.
I uninstalled eu_cookie_compliance and than installed Klaro.
I dont remember if I managed this only via drush console. But maybe with several reinstalls yes.3.) How I managed get working config page?
a)
ddev composer require 'drupal/klaro:^3.0'
ddev drush pm:enable drupal/klaro
In PmCommands.php line 342:Unable to install modules drupal/klaro due to missing modules drupal/klaro.
note: module is present
/modules/contrib/klarob)
enable from admin (when drush not capable) -->/admin/modules
Version: 3.0.6
Module Klaro Cookie & Consent Manager has been installed. Configure related permissions.
/admin/people/permissions/module/klaro
- Module Permissions - Use Klaro! UI
The changes have been saved.c)
attempt to access admin configuration page for klaro module/config/user-interface
Klaro - Configure the Klaro consent manager link is visible/admin/config/user-interface/klaro
- page is workingSo i skipped uninstall eu_cookie_compliance and I also deleted saved cookies in browser (maybe that is key part)
But general problem is that I was not able to install Klaro module via drush console.
- 🇩🇪Germany jan kellermann
To install via drush please use
ddev drush pm:enable klaro
instead of
ddev drush pm:enable drupal/klaro
Command: ddev drush pm:enable klaro
works.But problem is still there and I think it was caused with uninstall module: eu_cookie_compliance
Than install Klaro.If I install Klaro and than uninstall eu_cookie_compliance it work fine.
- 🇩🇪Germany jan kellermann
Do you have an idea, WHY your config set is empty? Did you used klaro_migrator from eu-cookie-compliance?