Cannot read property at null - Javascript exception
Hello there!
I have updated to version 4.4.5 under TYPO3 11.5.10, because I wanted to use the new "Subdomain support" (#192 (closed)).
After update, I've got a Javascript error in function insertUserUuid, line hashContainerParent.style.display = 'none';
:
insertUserUuid: function(wrapper) {
var hashContainer = wrapper.querySelector('.sg-cookie-optin-box-footer-user-hash');
var hashContainerParent = wrapper.querySelector('.sg-cookie-optin-box-footer-user-hash-container');
if (SgCookieOptin.jsonData.settings.disable_usage_statistics) {
hashContainerParent.style.display = 'none';
return;
}
var uuid = SgCookieOptin.getUserUuid(false);
if (typeof hashContainer.innerText === 'string') {
if (uuid) {
hashContainer.innerText = uuid;
} else {
hashContainerParent.style.display = 'none';
}
}
},
I removed the generated files from fileadmin, killed all caches and saved the consent record again - but the exception is still there.
Is this a real bug or maybe I combined some features in a wrong way?!