• Resolved somePaulo

    (@finomeno)


    Hi! I’ve come across a fatal error that breaks the admin pages whenever Booster is activated. This is a production site, and everything was working just fine for ages. It rarely gets changed, it just sits there with automatic updates, so I rarely check in. Yesterday I did, and I found the admin area inaccessible until I disabled Booster.

    I’ve tried disabling all plugins (except WooCommerce and Flexible SSL for CloudFlare, which I need for the site to work) to no avail. Changing the theme to TwentyTwentyFour didn’t help either. Do you have any suggestions?

    Fatal error: Uncaught Error: Call to a member function get_base_country() on null in /wp-content/plugins/woocommerce-jetpack/includes/functions/wcj-functions-country.php:157
    Stack trace:
    #0 /wp-content/plugins/woocommerce-jetpack/includes/settings/wcj-settings-payment-gateways-by-country.php(89): wcj_get_states()
    #1 /wp-content/plugins/woocommerce-jetpack/includes/classes/class-wcj-module.php(453): require('/var/www/html…')
    #2 /wp-includes/class-wp-hook.php(324): WCJ_Module->add_settings_from_file(Array) 3 /wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
    #4 /wp-content/plugins/woocommerce-jetpack/includes/classes/class-wcj-module.php(597): apply_filters('wcj_payment_gat…', Array)
    #5 /wp-content/plugins/woocommerce-jetpack/includes/core/wcj-options.php(27): WCJ_Module->get_settings()
    #6 in /wp-content/plugins/woocommerce-jetpack/includes/functions/wcj-functions-country.php on line 157

    WP and all plugins are up to date. The server is quite capable (shared hosting with Apache and php 8.1 with OPChache).

    • This topic was modified 12 months ago by somePaulo. Reason: formatting
    • This topic was modified 12 months ago by somePaulo.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi! Same issue here,

    E_ERROR en la línea 157 del a/wp-content/plugins/booster-plus-for-woocommerce/includes/functions/wcj-functions-country.php. Uncaught Error: Call to a member function get_base_country() on null in

    /wp-content/plugins/booster-plus-for-woocommerce/includes/functions/wcj-functions-country.php:157

    #0 wp-content/plugins/booster-plus-for-woocommerce/includes/settings/wcj-settings-payment-gateways-by-country.php(89): wcj_get_states()

    #1 wp-content/plugins/booster-plus-for-woocommerce/includes/classes/class-wcj-module.php(453): require('...')

    #2 wp-includes/class-wp-hook.php(324): WCJ_Module->add_settings_from_file(Array)

    #3 wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)

    #4 wp-content/plugins/booster-plus-for-woocommerce/includes/classes/class-wcj-modul in /wp-content/plugins/booster-plus-for-woocommerce/includes/functions/wcj-functions-country.php on line 157

    any solutions? thanks!

    • This reply was modified 11 months, 3 weeks ago by wildflower24.
    Plugin Support David G

    (@gravid7)

    Hi @finomeno

    Can you please contact us from our website? So, we can take a deeper look and help you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error in wcj-functions-country.php:157’ is closed to new replies.