Closed (fixed)
Project:
EU Cookie Compliance (GDPR Compliance)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2022 at 16:46 UTC
Updated:
26 Apr 2022 at 08:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
svenryen commentedHi Martijn! Thanks for the report.
Do you keep seeing this notice after the update has completed?
It seems that the function got some unexpected input, but it's not clear from the report what was the input.
Comment #3
summit commentedHi,
I see this after the update in my admin screen. But when I clear caches the notice is gone.
any time I update a module, this notice appears again.
Latest notice:
greetings, Martijn
Comment #4
svenryen commentedThanks, that was helpful information. I'll take a look at this in the weekend.
Comment #5
poker10 commentedWe have experiencing this issue too.
To workaround this I think that update.php needs to be considered as an admin page by default. So we need to change this to fix the problem:
To something like this (devel has the same strstr() condition):
After this the notices are gone.
Comment #6
summit commentedHi, Could you make a patch of this, as such, with new updates it can be considered?
Thanks!
greetings, Martijn
Comment #7
poker10 commentedWell it seems like that this problems does not only affect update.php, but also other "system" calls like system/ajax and similar, which gives this undefined error. So my propsal to add update.php to that condition was not enough.
We are now using this patch.
The function
_eu_cookie_compliance_get_script_key()will return FALSE if the script is not found, but this was not taken into account while calling_eu_cookie_compliance_remove_script_from_loader()function. The patch will ensure that the function will not be called if the script was not found (so no script can be modified anyway).Can you test this patch if it will work for you?
Comment #8
svenryen commentedComment #10
svenryen commented