SyntaxError: expected expression, got ')'
Starting from today 25/02/2020 we are having issues with all our production sites
Cookiebot has stopped to work !! One every page loading we see a javascript error <<SyntaxError: expected expression, got ')'>> and at the same time the ACCEPT button doesn’t work !!!
The solution: After adding and removing a test site to test domain alias the problem was fixed!!!
-
Official comment
Hi Thanassis,
Thank you for bringing this to our attention. We'll investigate and see if we can reproduce the error.
-
We had this same issue just now and traced it to one of the window.eval calls in cc.js. It looked like some of our config values had gotten "forgotten" somehow but they were still there in manage.cookiebot.com. Saving a change in manage.cookiebot.com seems to have fixed the issue for us.
Good luck 🙏
1 -
We had this same issue this morning on a clients wordpress site. Having resaved it in manage.cookiebot.com the banner is working.
However it seems not to be displaying some content now if its not accepted.
0 -
I got the same issue.
VM491:1 Uncaught SyntaxError: Unexpected token ')'
at eval (<anonymous>)
at CookieControl.Dialog.hide (cc.js?renew=false&referer=<<<MyWebSite>>>&dnt=false&forceshow=false&cbid=<<<MYID>>>&whitelabel=false&brandid=CookieConsent&framework=:1)
at CookieControl.Dialog.submitConsent (cc.js?renew=false&referer=<<<MyWebSite>>>&dnt=false&forceshow=false&cbid=<<<MYID>>>&whitelabel=false&brandid=CookieConsent&framework=:1)
at <anonymous>:1:18
when we call : Cookiebot.dialog.submitConsent()0 -
Hi guys,
I believe the issues you're experiencing are related to an attempt to factor out the use of the eval method in cc.js. Shortly after release we noticed this had an undesirable effect on those users that utilize a custom banner.
We've rolled back the change and are attempting to find a solution.
Those of you affected by this have probably a cached version that updated while the alternative solution was live. As some of you have already mentioned, making a small change and saving will renew the cache and resolve the issue.
We're also preparing to flush the cache on our end for all domain groups using a custom banner, to ensure that only the newest updated version is cached.0
Please sign in to leave a comment.
Comments
5 comments