Hello and thanks for that amazing plugin.
It works great in my local environment, but when I tried use it on a live environment (a shared hosting), I’m seeing the following error:
Fri Nov 08 14:50:20.044265 2024] [-:error] FastCGI: server "/var/run/hcgi/103906" stderr: PHP Fatal error: Uncaught Error: Call to a member function get() on null in /wp-content/plugins/ip-locator/includes/system/class-l10n.php:366, referer https://REDACTED/wp-admin/admin.php?page=perfopsone-tools
[Fri Nov 08 14:50:20.044348 2024] [-:error] FastCGI: server "/var/run/hcgi/103906" stderr: Stack trace:, referer https://REDACTED/wp-admin/admin.php?page=perfopsone-tools
[Fri Nov 08 14:50:20.044356 2024] [-:error] FastCGI: server "/var/run/hcgi/103906" stderr: #0 /wp-content/plugins/ip-locator/includes/api/class-lang.php(49): IPLocator\System\L10n::get_main_lang_code('CH'), referer https://REDACTED/wp-admin/admin.php?page=perfopsone-tools
[Fri Nov 08 14:50:20.044364 2024] [-:error] FastCGI: server "/var/run/hcgi/103906" stderr: #1 /wp-content/plugins/ip-locator/includes/features/class-schema.php(113): IPLocator\API\Lang->code(), referer https://REDACTED/wp-admin/admin.php?page=perfopsone-tools
[Fri Nov 08 14:50:20.044370 2024] [-:error] FastCGI: server "/var/run/hcgi/103906" stderr: #2 /wp-content/plugins/ip-locator/includes/features/class-schema.php(89): IPLocator\Plugin\Feature\Schema::write_statistics(), referer https://REDACTED/wp-admin/admin.php?page=perfopsone-tools
[Fri Nov 08 14:50:20.044377 2024] [-:error] [FastCGI: server "/var/run/hcgi/103906" stderr: #3 /wp-includes/class-wp-hook.php(306): IPLocator\Plugin\Feature\Schema::write(), referer https://REDACTED/wp-admin/admin.php?page=perfopsone-tools
[Fri Nov 08 14:50:20.044382 2024] [-:error] [FastCGI: server "/var/run/hcgi/103906" stderr: #4 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array), referer https://REDACTED/wp-admin/admin.php?page=perfopsone-tools
[Fri Nov 08 14:50:20.044388 2024] [-:error] [FastCGI: server "/var/run/hcgi/103906" stderr: #5 /wp-includes/plugin.php(517): WP_Hook->do_action(Array), referer https://REDACTED/wp-admin/admin.php?page=perfopsone-tools
[Fri Nov 08 14:50:20.044394 2024] [-:error] [FastCGI: server "/var/run/hcgi/103906" stderr: #6 /wp-includes/load.php(1144): do_action('shutdown'), referer https://REDACTED/wp-admin/admin.php?page=perfopsone-tools
[Fri Nov 08 14:50:20.044400 2024] [-:error] [FastCGI: server "/var/run/hcgi/103906" stderr: #7 [internal function]: shutdown_action_hook(), referer https://REDACTED/wp-admin/admin.php?page=perfopsone-tools
[Fri Nov 08 14:50:20.044405 2024] [-:error] [FastCGI: server "/var/run/hcgi/103906" stderr: #8 {main}, referer https://REDACTED/wp-admin/admin.php?page=perfopsone-tools
[Fri Nov 08 14:50:20.044410 2024] [-:error] [FastCGI: server "/var/run/hcgi/103906" stderr: thrown in /wp-content/plugins/ip-locator/includes/system/class-l10n.php on line 366, referer https://REDACTED/wp-admin/admin.php?page=perfopsone-tools
It looks like ResourceBundle::create()
returns null
in my case and there’s no check to handle that case.
I checked and the PHP Intl extension is installed on the webhost.
Any chance there’s a way to fix this? I can try to provide more information if needed.
]]>How can I show user’s country name beside Main Menu ?
I used
[iplocator-code]
But I am not getting any output.
]]>Hi,
I’ve recognised recently that IP Locator gives back false results. For example, for 165.22.93.228 (Frankfurt, Germany) it says US, 87.249.133.109 (Austria) it says UK.
What could be the problem?
I’ve been having some performance issues on my site, and it looks like one of the offending queries that has shown up is for finding the IP range in the IP Locator plugin. I wonder if an index might help. It’s not every time, but it was taking up to 600ms.
]]>HI,
i use this plugin to show ads only for Russian Traffic but when i check the statistic on my ads, I am getting impression from other country as well, please check the screenshot bellow.
bellow is the shortcode in template files.
<?php echo do_shortcode('[iplocator-if country="RU" do="show"] [hfcm id="3"] [/iplocator-if]'); ?>
<?php echo do_shortcode('[iplocator-if not-country="RU" do="show"] [hfcm id="4"] [/iplocator-if]'); ?>
]]>
So after installing IP Locator, I noticed a certain IP address: 2.1.12.90
It’s generating a lot of REST API requests, lots of Cron Jobs, and lots of Other Requests. How can I check if it’s a good IP address or malicious?
]]>Hi,
I installed ip-locator but i have a message : [loopback]
What is the problem ?
warning : it’s an adult site
thks