• 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.

  • You must be logged in to reply to this topic.