cookieControl-8.0.min.js:1 Uncaught TypeError: Cannot read property 'append' of null

51 views
Skip to first unread message

Matt Worthington

unread,
Apr 12, 2018, 7:57:48 AM4/12/18
to Cookie Control Support
Just tried installing the community version of V8 on my site for testing, and it's not loading. Chrome shows the following error:

cookieControl-8.0.min.js:1 Uncaught TypeError: Cannot read property 'append' of null
    at cookieControl-8.0.min.js:1
    at XMLHttpRequest.n.onload (cookieControl-8.0.min.js:1)

Gerasimos Tzoganis

unread,
Apr 12, 2018, 8:52:00 AM4/12/18
to Cookie Control Support
Hi Matt,

We cannot reproduce this on our end. Please let us know of the URL of your website so that we can take a better look.

Thanks,
Gerasimos

Matt Worthington

unread,
Apr 12, 2018, 9:02:17 AM4/12/18
to Cookie Control Support
Thanks for checking. I've been able to fix it now by moving the code around in the header (this is going into a XenForo 2 forum).
Message has been deleted

Iain Clucas

unread,
Apr 19, 2018, 4:01:12 AM4/19/18
to Cookie Control Support
I am getting exactly the same issue c.append falling over c looks to be set via a document.body call which does exist prior to the call to the script.

I have moved stuff around in the head and body as other poster but to no avail.

I am testing this on localhost so unble to to share link.

Gerasimos Tzoganis

unread,
Apr 19, 2018, 4:17:16 AM4/19/18
to Cookie Control Support
Hi Iain,

This can happen if you put Cookie Control inside <head>. The reason is that Cookie Control needs <body> to exist before it can render it's banner (otherwise there is nothing to append it to). So please put Cookie Control before the closing of the </body> element and it should work.

If you still have problems and can't share the URL can you at least send us your configuration?

Thanks,
Gerasimos
Reply all
Reply to author
Forward
0 new messages