I'm using the GDPR module (8.x-1.9) in conjunction with the Smart IP module (8.x-4.0) I'm using the Lite db that resolves IP addresses correctly in the smart IP module using the manual check.

Doing some debugging in the eu_cookie_compliance.module file on line 591, visiting the site from a valid IP UK ip address the result from the call $location_service->get() is an empty array.

A few lines up from this call I can see that the IP address is being found correctly.

I'm currently doing further debugging but can anyone confirm if this is a known issue?

CommentFileSizeAuthor
#2 3157983-2.patch745 bytesdarrenwh

Comments

darrenwh created an issue. See original summary.

darrenwh’s picture

StatusFileSize
new745 bytes

Have found the issue, calling the get parameter specifying the the country code as a parameter returns NULL or the country code, attaching patch

darrenwh’s picture

Status: Active » Needs review
darrenwh’s picture

I think I have found the issue, I did not have 'Roles to Geolocate' ticked for anon users, patch still stands though.

  • svenryen committed 6db6fb8 on 8.x-1.x authored by darrenwh
    Issue #3157983 by darrenwh, svenryen: Smart IP (smart_ip) does not...
svenryen’s picture

Status: Needs review » Fixed

Thanks! That improves the code a little bit, even though I think the end result would have been the same.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.