Interactions don't work "Uncaught TypeError: can't access property "addEventListener", c is null"

I got this in the console:

Uncaught TypeError: can’t access property “addEventListener”, c is null
cc_interactions https://lg2.webmaat.dev/wp-content/plugins/cwicly/assets/js/cc-interactions.min.js?ver=1.4:1
cc_interactions https://lg2.webmaat.dev/wp-content/plugins/cwicly/assets/js/cc-interactions.min.js?ver=1.4:1
https://lg2.webmaat.dev/wp-content/plugins/cwicly/assets/js/cc-interactions.min.js?ver=1.4:1
https://lg2.webmaat.dev/wp-content/plugins/cwicly/assets/js/cc-interactions.min.js?ver=1.4:1
EventListener.handleEvent* https://lg2.webmaat.dev/wp-content/plugins/cwicly/assets/js/cc-interactions.min.js?ver=1.4:1
cc-interactions.min.js:1:5887
cc_interactions https://lg2.webmaat.dev/wp-content/plugins/cwicly/assets/js/cc-interactions.min.js?ver=1.4:1
forEach self-hosted:203
cc_interactions https://lg2.webmaat.dev/wp-content/plugins/cwicly/assets/js/cc-interactions.min.js?ver=1.4:1
https://lg2.webmaat.dev/wp-content/plugins/cwicly/assets/js/cc-interactions.min.js?ver=1.4:1
forEach self-hosted:203
https://lg2.webmaat.dev/wp-content/plugins/cwicly/assets/js/cc-interactions.min.js?ver=1.4:1
(Async: EventListener.handleEvent)
https://lg2.webmaat.dev/wp-content/plugins/cwicly/assets/js/cc-interactions.min.js?ver=1.4:1

Hey @webmaat.

Hope that helps.

Thanks! !(where in de documentation is this? I just tested interactions on my own website and there it just works)

It depends on this setting:

On your other site, this is probably disabled.
I assume your other site is a bit older where this option wasn’t available yet or was disabled by default.

Your interaction needs a reference, so an ID (when you set “current” as an interaction selector) or a class is required.

1 Like

I created this tip a while ago to help with this: How to avoid click interaction errors when loading the page

1 Like