Hi, i need help with fatal error caused by plugin:
PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 20480 bytes) in /home/customer/www/bouzaglo.com/public_html/wp-content/plugins/ip2location-tags/ip2location-tags.php on line 76
code looks good and CSV file too.
]]>Such a mistake
Warning: unpack(): Type C: not enough input, need 1, have 0 in /var/www/kr—-982/data/www/—–/wp-content/plugins/ip2location-tags/vendor/ip2location/ip2location-php/IP2Location.php on line 1676
]]>Hi, awesome plugin. But I can’t use my own PHP?
I’m trying this:
$UserCountry = do_shortcode(“{ip:countryCode}”);
if ($UserCountry === “GB”){echo “Hello UK Visitor!<br />”;}
But $UserCountry never seems to be a normal string in that example. It’s not an array but outputs as “GB” in my tests.
Is there any options for coding in PHP and not using shortcodes which could be the issue?
]]>Hello, I just installed IP2Location Tags plugin (2.10.6) but can’t get past “Get Started” popup when I enter the plugin settings. I click the Get Started button and nothing happens. Can’t exit the popup either.
]]>Hello, I have set up an account at lite.ip2location.com, and after logging in, there is no token available, not in the “Profile” section. When I tried to go to “Database Download”, it leads to me an error page. How to resolve this?
]]>I have registered on lite.ip2location.com but I can’t find the download token.
]]>After its auto-update into 2.10.2, it doesn’t work.
When I try to open the setup page in wp-admin, it shows a setup wizard for me to input the IP2Location LITE download token.
However, after I input the token, it shows “success” and I can’t click “Next”.
]]>Plugin was working until update to version 2.10.1. Updated database to DB3LITEBIN. Using the following shortcode to show content to users outside of California:
[ip:*,-US:CA]This content displays to users outside of the state of California.[/ip]
The content still displays to California users.
Shortcode to display content to California users does display to California users, and the code:
You are in {ip:countryName}, {ip:regionName}, {ip:cityName}
displays correctly.
]]>When i install the plugin on my localhost Webpage, i get the error unpack(): Type V: not enough input, need 4, have 0 on on line 1561, 62, 63 an 64 of the ip2location.php. And: Shortcode is ot working, just displaying [ip:xx]… on the website. How can i fix this?
]]>Hi
Is it possible to exclude all EU countries with a single code? (the current Brexit agreement makes it very hard for small UK companies to sell into the EU because of VAT bureaucracy)
thanks
I use code {ip:countryCode} and currently it runs well. I wonder if it detects an IP that does not belong to any countries, what would {ip:countryCode} be?
Will it be an empty string? or some error information?
]]>Can I use Cloudflare CDN for my website? Any conflict cause ip2location tag?
]]>Hi, Can I know what is the code for United Kingdom because I didn’t find the UK in code list
]]>Hi,
I did a SAST for PHP 7.3 and the report logged this error for the current plugin version 2.9.0. Can you have a look, please?
Nom: IP2Location Tags
FILE: /wp-content/plugins/ip2location-tags/ip2location-tags.php
————————————————————————————————–
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————–
800 | ERROR | preg_replace() – /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
————————————————————————————————–
Hello,
Are bots excluded from this geo-targeting? Or all type of visitors are counted?
Thanks,
Didier.
]]>Hi
If I use a cache plugin – eg wp-rocket – will the plugin still work to show content based on location or do I need to turn off cache for pages where I use it?
thanks
]]>Hello,
Together with this plugin, I also use your Redirection plugin. The paths for the IP database are not the same, so I cannot use the same database for both plugin. A bit stupid in fact.
Can you set the file path for this plugin to the /wp-content/uploads/ip2location folder?
Thanks,
Didier.
]]>Hi I was looking for any solution where instead of asking user to enter their Country/State/City we use IP to get the locations and use as hidden value for the contact form?
If this is possible it will be really great as we don’t have to put too many fields about location and can still know their location.
]]>The shortcode in main nav does not work.
Have you got an idea how to make it works?
Thank you
]]>My website will not load once I have installed and activated the plugin. I get the following error displayed on the home page and my site won’t load. I am using the latest release of wordpress and the plugin.
Parse error: syntax error, unexpected ‘[‘ in /home3/nwalker/public_html/liveeuropeanroulette.com/wp-content/plugins/ip2location-tags/class.IP2Location.php on line 400
]]>Hello
[ip:US,CA]Only visitors from United States or Canada can view this line.[/ip]
Above tag is right?
It doesn’t work on post.
I’d be grate if someone help this.
Hi,
Is there any way to show all countries content and hide only one ?
Thanks
]]>Hi,
Is there any way to add the shortcode into a wp-nav menu ?
Thanks
]]>I just installed this plugin but I don’t know how to get ip address or region name on my custom template page. In other words how to echo ip address using this plugin in my php file.
]]>Can you please add this to the next version?
If behind a proxy where the client port is set in the $_SERVER[‘HTTP_X_FORWARDED_FOR’] like XX.XX.XX.XX:1234 the parse_content does not resolve the correct ip, see this as a fix:
function parse_content( $content ) {
$ipAddress = $_SERVER[‘REMOTE_ADDR’];
#FIXXXXXX START
$_SERVER[‘HTTP_X_FORWARDED_FOR’] = explode(‘:’,$_SERVER[‘HTTP_X_FORWARDED_FOR’])[0];
#FIXXXXXX END
if ( isset( $_SERVER[‘HTTP_X_FORWARDED_FOR’] ) && filter_var($_SERVER[‘HTTP_X_FORWARDED_FOR’], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_IPV6 ) ) {
$ipAddress = $_SERVER[‘HTTP_X_FORWARDED_FOR’];
}
Hi – sinece the latest upgrade all my pages have flipped and my UK customers now see the US entries. Is their a fix please?
Example of page that showed UK now showing US entries: https://thebookawards.com/awards/winners/printed-winner/
]]>I want to test to make sure a users in at least close to our territory before we ask them a lot of questions a build them a quote.
Our Territory is only 4 counties, and I can get a list of supported “zip codes” pretty easily.
What would I need to do to do a simple test of “In territory” yes/no? so I can stop giving people quotes for services they can’t have?
If they in our territory they will never know we did the test, if they aren’t I can put up a text box warning them….
]]>I’ve just installed the plugin, and placed this:
[ip2loc:country]
in both a page and a post; it displays only
a dash character.
Firstly thanks for an amazing plugin!
Quick question, how can I use the code in my template files, ie a raw php. It can use it within wordpress posts, but how could I use it outside of that in the surrounding template php code?
]]>