-
Notifications
You must be signed in to change notification settings - Fork 17
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
Uncaught TypeError: Cannot read property 'show' of undefined #153
Comments
Hi Markus, I reckon that you have not defined any tracking objects. Does this happen in a default install after you have included the static TypoScript templates (including the examples)? Maybe you want to post your Tracking Object TypoScript. |
|
my cookieman-inject.js:
|
Can you confirm with the Template Analyzer that your TypoScript setup is actually loaded? And is your TypoScript setup output into HTML in |
the typoscript is loaded. The setup:
|
in the root ts template i include the static template "cookieman" is there a problem with the order of the ts? |
i removed the empty space: Matomo":{"inject":"\u003Cscript data-what="Matomo" what is: |
Empty space is just empty string. It looks like good JSON to me. Can you please try with the default static TypoScript, just included in the site template? We run the exact same configuration (TYPO3 9.5.20, cookieman 2.5.1) on https://cookieman.d-mind.de/, too |
with the static template it works btw: i know another user who has exactly the same problem |
I see the problem now. It is in your configuration. You defined the Tracking Object |
You're welcome. I am sure you can solve that yourself. |
TYPO3 9.5.20
cookieman 2.5.1
When clicking the accept or deny button, i get the error above in the chrome console. See attached screen.
In Firefox i get the error:
Uncaught TypeError: t is undefined
Hint:
If i exchange the <div id="cookieman-modal"
data-cookieman-showonce="1"
data-cookieman-settings...
part with the code from your demos, it works.
The text was updated successfully, but these errors were encountered: