tripinsider
Forum Replies Created
-
Forum: Plugins
In reply to: [Amazon Link] Location not recognisedHi Paul,
I just saw you actually added it. I think you need the following correction:
strtolower($_SERVER[“HTTP_CF_IPCOUNTRY”]);
Cheers
Forum: Plugins
In reply to: [Amazon Link] Location not recognisedHi Paul,
I just upgraded the plugin and I lost the fix for cloudflare. Are you planning to include it?
Cheers
Forum: Plugins
In reply to: [Amazon Link] Location not recognisedI think a simple configuration such as “Use Cloudflare GeoLocation HTTP header” would do it. You then use ip2n->get_cc() or $_SERVER[“HTTP_CF_IPCOUNTRY”] accordingly
Forum: Plugins
In reply to: [Amazon Link] Location not recognisedSo yes I found that Cloudflare was the problem, as ip2n->get_cc() was returning ‘eu’. As a quick fix, I enabled GeoLocation on Cloudflare and I changed amazon.php to use $_SERVER[“HTTP_CF_IPCOUNTRY”] (set by Cloudflare) instead of ip2n.
Forum: Plugins
In reply to: [Amazon Link] Location not recognisedI am using cloudflare. Could this be the root cause of the problem?
Forum: Plugins
In reply to: [Amazon Link] Location not recognisedHi Paul,
Could you please let me know the file and/o function where the country is detected and the default link rendered so I can debug it?
Cheers
Forum: Plugins
In reply to: [Amazon Link] Location not recognisedHi Paul,
Yes, I can see that ip2nation is detecting the country with no problem. Why would the plugin use all the time the link to US? I have tried from different countries (using proxies and remote desktop) and there is no change at all. It was working ok some time ago so I suspect it was an update.
Can you give a hint of where to debug or try to find the problem?
Cheers