Closed (fixed)
Project:
Cookiebot - Cookie consent, Cookie monitoring and Cookie control
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Aug 2018 at 09:36 UTC
Updated:
23 Apr 2019 at 12:43 UTC
Jump to comment: Most recent
Comments
Comment #2
dmsmidtThanks for filing an issue.
I quickly tried on a D7 website with jQuery 1.7 and I can't reproduce the error.
Could you try with jQuery 1.10 for example?
What is the version of the browsers you used? Are you sure no browser plugin is interfering? Ad blockers are know to break things.
Note that when the console is open that JS line might not execute correctly due to timing errors.
Did you try this in production? Otherwise, did you setup a matching domain or domain alias in the Cookiebot manager?
Comment #3
alexberendei commentedNow I've changed the jQuery to version 1.10.2 and I get same errors (browsers: Firefox 61.0.1 (with AdBlocker disabled) and Chromium (without any AdBlocker) 68.0.3440).
The site uses AdvAgg but I've tried even with
?advagg=0to bypass the adv aggregation. All the code is in production.Comment #4
dmsmidtThanks for your PM, I checked your site.
It seems you have a parsing error because we have a closing
</script>tag.We haven't seen that before, but seems legit in certain scenarios.
Could you try if removing that closing script tag on line 94 of the module source code works for you?
See: https://cgit.drupalcode.org/cookiebot/tree/cookiebot.module?h=7.x-1.x#n94
Comment #5
alexberendei commentedThank you, indeed it worked without the closing script tag. Can be normal behavior ?
Comment #6
dmsmidtCool, we will see if this gives any regression, and if not we will add it to the next release.
Comment #7
dmsmidtComment #9
firewaller commentedThis fix is not in latest dev version for me. Still getting same error.
Comment #10
dmsmidtMy bad, seems this never got commited. I've rolled a new release.