Closed thorewi closed 1 year ago
Hi,
According to the stack of your error, it fails in orestbida/cookieconsent
on this line.
It looks like the language code from <html lang="...">
is not among the translations, which is strange.
If the dictionary for the given translation does not exist, then the dictionary for en
is used. If the dictionary en
does not exist, the first one defined is used.
If there is no dictionary then it ends up with the error you sent.
So it looks like the CookieConsentWrapper doesn't have any translations set even though they are provided to it, according to your settings.
Can you check in the console on the website if there are any dictionaries?
totally empty :(
Do you have the latest template imported into GTM that is compatible with the version 0.4.5
? isn't there an older version?
Great, it helped. I thought I imported it but maybe I forgot to press Save. Sorry for bothering you.
I'm getting this same error. I haven't yet installed GTM, I'm just adding this:
<html lang="fi">
<script src="https://cdn.jsdelivr.net/npm/68publishers-cookie-consent@0.4.8/dist/cookie-consent.min.js"></script>
No other JS code, just the script tag.
Error raised:
Uncaught TypeError: Cannot read properties of undefined (reading 'consent_modal')
@Ciantic Hi, just adding the script won't work, you need to set up the bar. The GTM tag will ensure the correct settings and also add the script automatically to the page (no need to define it manually on the page). Theoretically it is possible to use the bar without GTM, but I recommend rather to use GTM.
Hi,
when I try to use this plugin on www.nutriadapt.cz, I get this error:
settings:
In
html
tag inlang
attribute iscs
.Any advice what can be wrong? Thank you.