After pulling recent changes (up to e36ec69) today, I've hit what appears to be a regression of issue #359: I get a blank page and a "Cannot redeclare geoip_country_code_by_name()" (in includes/geo/geoip.inc on line 1602) error in my log.
I can work around the issue by checking out d5a5522, which is the last commit prior to "Update GeoIP" (96a159b).
Thanks for this clear issue.
Indeed, in latest geoip.inc they blindly declare functions while in previous version they declared it only if not existent
God, what an awful lib :) Simple to use, nice overall results, but so badly written :)
I'll revert this update. Again, thanks for the report.
they declared it only if not existent
Ha ha, no, they never, it's _your_ own added declarations! 馃槈
In my last update, all these function checks are re-applied with your previous patch.
Ah, this explains why I couldn't find on their repo when they removed these checks :) Anyway, this lib is quite a mess, they introduce a class but don't completely use it, the code is not pretty. We'll switch to geoip2 one of these days (or another easy to use lib)
Most helpful comment
Ah, this explains why I couldn't find on their repo when they removed these checks :) Anyway, this lib is quite a mess, they introduce a class but don't completely use it, the code is not pretty. We'll switch to geoip2 one of these days (or another easy to use lib)