Title: Get Country Function Error
Last modified: February 22, 2018

---

# Get Country Function Error

 *  Resolved [websharx](https://wordpress.org/support/users/websharx/)
 * (@websharx)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/get-country-function-error/)
 * Hi there,
 * We keep getting internal server errors and are thinking it’s because this keeps
   showing up in our server logs:
 * The WC_Customer::get_country function is deprecated since version 3.0. Replace
   with WC_Customer::get_billing_country.
 * Can you please advise what needs to be done?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fget-country-function-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 14 replies - 1 through 14 (of 14 total)

 *  [Michael Visser](https://wordpress.org/support/users/visser/)
 * (@visser)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/get-country-function-error/#post-10005087)
 * Hi [@websharx](https://wordpress.org/support/users/websharx/), thanks for raising
   this, I’ll look at the codebase now and see what I can find out about that change.
 *  [Michael Visser](https://wordpress.org/support/users/visser/)
 * (@visser)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/get-country-function-error/#post-10005126)
 * I’ve done a check of the Plugin codebase and neither direct functions or methods
   are in use. The closest related calls are:
 * – WC()->countries->get_shipping_countries()
    – WC()->countries->get_allowed_countries()
 * What version of WooCommerce are you using and WCM? Can you de-activate other 
   Plugins except WooCommerce and WCM to see if this deprecation notice persists?
 *  Thread Starter [websharx](https://wordpress.org/support/users/websharx/)
 * (@websharx)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/get-country-function-error/#post-10005580)
 * Hi Michael,
 * Can you please email me (my email is [bsaral@websharx.ca](https://wordpress.org/support/topic/get-country-function-error/bsaral@websharx.ca?output_format=md))?
   I keep getting the error. What’s happening is an internal server error on the
   checkout page.
 * Here is our booking form: [https://www.homeworkhelpglobal.com/ca/product/order-now-canada/](https://www.homeworkhelpglobal.com/ca/product/order-now-canada/)
 * Sometimes there’s an internal server error and sometimes there isn’t.
 * Baljot
    -  This reply was modified 8 years, 3 months ago by [websharx](https://wordpress.org/support/users/websharx/).
 *  Thread Starter [websharx](https://wordpress.org/support/users/websharx/)
 * (@websharx)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/get-country-function-error/#post-10005592)
 * Hi [@visser](https://wordpress.org/support/users/visser/),
 * What we’re noticing now is when you go to checkout, it gives an internal server
   at the top just above the checkout. Then you have to checkout again to complete
   the order. Why’s this happening? We never had this issue before.
 *  [Michael Visser](https://wordpress.org/support/users/visser/)
 * (@visser)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/get-country-function-error/#post-10005602)
 * What version of WooCommerce are you using and WCM? Can you de-activate other 
   Plugins except WooCommerce and WCM to see if this deprecation notice persists?
 * Can you also have a look at the WooCommerce > System Status > Logs > fatal-errors…
   file and paste the contents (sanitized), alternatively you can turn on WP_DEBUG_LOGGING
   within the wp-config.php file to catch fatal errors.
 *  Thread Starter [websharx](https://wordpress.org/support/users/websharx/)
 * (@websharx)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/get-country-function-error/#post-10005606)
 * Here is what’s happening through debugging:
 * Notice: WC_Customer::get_country is deprecated since version 3.0! Use WC_Customer::
   get_billing_country instead. in /home/hhelpglobal/public_html/staging/wp-includes/
   functions.php on line 3839
 * We’re using the newest versions of WooCommerce (3.3.3) and WCM (4.1.7)
 *  Thread Starter [websharx](https://wordpress.org/support/users/websharx/)
 * (@websharx)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/get-country-function-error/#post-10005633)
 * Hi [@visser](https://wordpress.org/support/users/visser/),
 * Looks like it was instead happening from a MailChimp for WooCommerce plugin. 
   Sorry for the hassle!!
 * Baljot
 *  [Michael Visser](https://wordpress.org/support/users/visser/)
 * (@visser)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/get-country-function-error/#post-10005835)
 * Hi [@websharx](https://wordpress.org/support/users/websharx/), glad you narrowed
   it down. Let them know what’s going on 🙂
 *  Thread Starter [websharx](https://wordpress.org/support/users/websharx/)
 * (@websharx)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/get-country-function-error/#post-10013573)
 * Hi [@visser](https://wordpress.org/support/users/visser/),
 * Looks like I spoke too soon. We keep getting internal server errors. Can you 
   please email us at [bsaral@websharx.ca](https://wordpress.org/support/topic/get-country-function-error/bsaral@websharx.ca?output_format=md)?
 * We keep getting this error:
 * The WC_Customer::get_country function is deprecated since version 3.0. Replace
   with WC_Customer::get_billing_country.
 *  [Michael Visser](https://wordpress.org/support/users/visser/)
 * (@visser)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/get-country-function-error/#post-10013708)
 * Hi [@websharx](https://wordpress.org/support/users/websharx/), I don’t offer 
   e-mail support via w.org
 * What version of WooCommerce are you using and WCM?
 * Can you also have a look at the WooCommerce > System Status > Logs > fatal-errors…
   file and paste the contents (sanitized), alternatively you can turn on WP_DEBUG_LOGGING
   within the wp-config.php file to catch fatal errors and paste them here.
    -  This reply was modified 8 years, 3 months ago by [Michael Visser](https://wordpress.org/support/users/visser/).
 *  Thread Starter [websharx](https://wordpress.org/support/users/websharx/)
 * (@websharx)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/get-country-function-error/#post-10013919)
 * Hi [@visser](https://wordpress.org/support/users/visser/),
 * No problem definitely understand. Please see the errors below:
 * 2018-02-20T18:08:50+00:00 CRITICAL Cannot declare class PUM_ATB, because the 
   name is already in use
 * 2018-02-20T18:10:05+00:00 CRITICAL Cannot declare class PUM_ATB, because the 
   name is already in use
 * 2018-02-20T18:10:19+00:00 CRITICAL Cannot declare class PUM_ATB, because the 
   name is already in use
 * 2018-02-21T12:34:05+00:00 CRITICAL Uncaught Error: Call to a member function 
   is_type() on boolean in /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/
   includes/class-wc-coupon.php:812
    Stack trace: #0 /home/hhelpglobal/public_html/
   wp-content/plugins/woocommerce-multilingual/inc/class-wcml-coupons.php(117): 
   WC_Coupon->is_valid_for_product(false, Array) #1 /home/hhelpglobal/public_html/
   wp-includes/class-wp-hook.php(286): WCML_Coupons->is_valid_for_product(true, 
   Object(WC_Product_Simple), Object(WC_Coupon), Array) #2 /home/hhelpglobal/public_html/
   wp-includes/plugin.php(203): WP_Hook->apply_filters(true, Array) #3 /home/hhelpglobal/
   public_html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(845):
   apply_filters(‘woocommerce_cou…’, true, Object(WC_Product_Simple), Object(WC_Coupon),
   Array) #4 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes/
   class-wc-discounts.php(752): WC_Coupon->is_valid_for_product(Object(WC_Product_Simple),
   Array) #5 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes
 * 2018-02-21T20:14:00+00:00 CRITICAL Uncaught Error: Call to a member function 
   is_type() on boolean in /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/
   includes/class-wc-coupon.php:812
    Stack trace: #0 /home/hhelpglobal/public_html/
   wp-content/plugins/woocommerce-multilingual/inc/class-wcml-coupons.php(117): 
   WC_Coupon->is_valid_for_product(false, Array) #1 /home/hhelpglobal/public_html/
   wp-includes/class-wp-hook.php(286): WCML_Coupons->is_valid_for_product(true, 
   Object(WC_Product_Simple), Object(WC_Coupon), Array) #2 /home/hhelpglobal/public_html/
   wp-includes/plugin.php(203): WP_Hook->apply_filters(true, Array) #3 /home/hhelpglobal/
   public_html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(845):
   apply_filters(‘woocommerce_cou…’, true, Object(WC_Product_Simple), Object(WC_Coupon),
   Array) #4 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes/
   class-wc-discounts.php(752): WC_Coupon->is_valid_for_product(Object(WC_Product_Simple),
   Array) #5 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes
 * 2018-02-21T20:14:30+00:00 CRITICAL Uncaught Error: Call to a member function 
   is_type() on boolean in /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/
   includes/class-wc-coupon.php:812
    Stack trace: #0 /home/hhelpglobal/public_html/
   wp-content/plugins/woocommerce-multilingual/inc/class-wcml-coupons.php(117): 
   WC_Coupon->is_valid_for_product(false, Array) #1 /home/hhelpglobal/public_html/
   wp-includes/class-wp-hook.php(286): WCML_Coupons->is_valid_for_product(true, 
   Object(WC_Product_Simple), Object(WC_Coupon), Array) #2 /home/hhelpglobal/public_html/
   wp-includes/plugin.php(203): WP_Hook->apply_filters(true, Array) #3 /home/hhelpglobal/
   public_html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(845):
   apply_filters(‘woocommerce_cou…’, true, Object(WC_Product_Simple), Object(WC_Coupon),
   Array) #4 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes/
   class-wc-discounts.php(752): WC_Coupon->is_valid_for_product(Object(WC_Product_Simple),
   Array) #5 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes
 * 2018-02-21T20:16:31+00:00 CRITICAL Uncaught Error: Call to a member function 
   is_type() on boolean in /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/
   includes/class-wc-coupon.php:812
    Stack trace: #0 /home/hhelpglobal/public_html/
   wp-content/plugins/woocommerce-multilingual/inc/class-wcml-coupons.php(117): 
   WC_Coupon->is_valid_for_product(false, Array) #1 /home/hhelpglobal/public_html/
   wp-includes/class-wp-hook.php(286): WCML_Coupons->is_valid_for_product(true, 
   Object(WC_Product_Simple), Object(WC_Coupon), Array) #2 /home/hhelpglobal/public_html/
   wp-includes/plugin.php(203): WP_Hook->apply_filters(true, Array) #3 /home/hhelpglobal/
   public_html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(845):
   apply_filters(‘woocommerce_cou…’, true, Object(WC_Product_Simple), Object(WC_Coupon),
   Array) #4 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes/
   class-wc-discounts.php(752): WC_Coupon->is_valid_for_product(Object(WC_Product_Simple),
   Array) #5 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes
 * 2018-02-21T20:18:30+00:00 CRITICAL Uncaught Error: Call to a member function 
   is_type() on boolean in /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/
   includes/class-wc-coupon.php:812
    Stack trace: #0 /home/hhelpglobal/public_html/
   wp-content/plugins/woocommerce-multilingual/inc/class-wcml-coupons.php(117): 
   WC_Coupon->is_valid_for_product(false, Array) #1 /home/hhelpglobal/public_html/
   wp-includes/class-wp-hook.php(286): WCML_Coupons->is_valid_for_product(true, 
   Object(WC_Product_Simple), Object(WC_Coupon), Array) #2 /home/hhelpglobal/public_html/
   wp-includes/plugin.php(203): WP_Hook->apply_filters(true, Array) #3 /home/hhelpglobal/
   public_html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(845):
   apply_filters(‘woocommerce_cou…’, true, Object(WC_Product_Simple), Object(WC_Coupon),
   Array) #4 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes/
   class-wc-discounts.php(752): WC_Coupon->is_valid_for_product(Object(WC_Product_Simple),
   Array) #5 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes
 * 2018-02-21T20:20:12+00:00 CRITICAL Uncaught Error: Call to a member function 
   is_type() on boolean in /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/
   includes/class-wc-coupon.php:812
    Stack trace: #0 /home/hhelpglobal/public_html/
   wp-content/plugins/woocommerce-multilingual/inc/class-wcml-coupons.php(117): 
   WC_Coupon->is_valid_for_product(false, Array) #1 /home/hhelpglobal/public_html/
   wp-includes/class-wp-hook.php(286): WCML_Coupons->is_valid_for_product(true, 
   Object(WC_Product_Simple), Object(WC_Coupon), Array) #2 /home/hhelpglobal/public_html/
   wp-includes/plugin.php(203): WP_Hook->apply_filters(true, Array) #3 /home/hhelpglobal/
   public_html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(845):
   apply_filters(‘woocommerce_cou…’, true, Object(WC_Product_Simple), Object(WC_Coupon),
   Array) #4 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes/
   class-wc-discounts.php(752): WC_Coupon->is_valid_for_product(Object(WC_Product_Simple),
   Array) #5 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes
 * 2018-02-21T20:20:13+00:00 CRITICAL Uncaught Error: Call to a member function 
   is_type() on boolean in /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/
   includes/class-wc-coupon.php:812
    Stack trace: #0 /home/hhelpglobal/public_html/
   wp-content/plugins/woocommerce-multilingual/inc/class-wcml-coupons.php(117): 
   WC_Coupon->is_valid_for_product(false, Array) #1 /home/hhelpglobal/public_html/
   wp-includes/class-wp-hook.php(286): WCML_Coupons->is_valid_for_product(true, 
   Object(WC_Product_Simple), Object(WC_Coupon), Array) #2 /home/hhelpglobal/public_html/
   wp-includes/plugin.php(203): WP_Hook->apply_filters(true, Array) #3 /home/hhelpglobal/
   public_html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(845):
   apply_filters(‘woocommerce_cou…’, true, Object(WC_Product_Simple), Object(WC_Coupon),
   Array) #4 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes/
   class-wc-discounts.php(752): WC_Coupon->is_valid_for_product(Object(WC_Product_Simple),
   Array) #5 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes
 * 2018-02-21T20:20:38+00:00 CRITICAL Uncaught Error: Call to a member function 
   is_type() on boolean in /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/
   includes/class-wc-coupon.php:812
    Stack trace: #0 /home/hhelpglobal/public_html/
   wp-content/plugins/woocommerce-multilingual/inc/class-wcml-coupons.php(117): 
   WC_Coupon->is_valid_for_product(false, Array) #1 /home/hhelpglobal/public_html/
   wp-includes/class-wp-hook.php(286): WCML_Coupons->is_valid_for_product(true, 
   Object(WC_Product_Simple), Object(WC_Coupon), Array) #2 /home/hhelpglobal/public_html/
   wp-includes/plugin.php(203): WP_Hook->apply_filters(true, Array) #3 /home/hhelpglobal/
   public_html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(845):
   apply_filters(‘woocommerce_cou…’, true, Object(WC_Product_Simple), Object(WC_Coupon),
   Array) #4 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes/
   class-wc-discounts.php(752): WC_Coupon->is_valid_for_product(Object(WC_Product_Simple),
   Array) #5 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes
 * 2018-02-21T20:22:37+00:00 CRITICAL Uncaught Error: Call to a member function 
   is_type() on boolean in /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/
   includes/class-wc-coupon.php:812
    Stack trace: #0 /home/hhelpglobal/public_html/
   wp-content/plugins/woocommerce-multilingual/inc/class-wcml-coupons.php(117): 
   WC_Coupon->is_valid_for_product(false, Array) #1 /home/hhelpglobal/public_html/
   wp-includes/class-wp-hook.php(286): WCML_Coupons->is_valid_for_product(true, 
   Object(WC_Product_Simple), Object(WC_Coupon), Array) #2 /home/hhelpglobal/public_html/
   wp-includes/plugin.php(203): WP_Hook->apply_filters(true, Array) #3 /home/hhelpglobal/
   public_html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(845):
   apply_filters(‘woocommerce_cou…’, true, Object(WC_Product_Simple), Object(WC_Coupon),
   Array) #4 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes/
   class-wc-discounts.php(752): WC_Coupon->is_valid_for_product(Object(WC_Product_Simple),
   Array) #5 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes
 * 2018-02-21T20:44:13+00:00 CRITICAL Uncaught Error: Call to a member function 
   is_type() on boolean in /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/
   includes/class-wc-coupon.php:812
    Stack trace: #0 /home/hhelpglobal/public_html/
   wp-content/plugins/woocommerce-multilingual/inc/class-wcml-coupons.php(117): 
   WC_Coupon->is_valid_for_product(false, Array) #1 /home/hhelpglobal/public_html/
   wp-includes/class-wp-hook.php(286): WCML_Coupons->is_valid_for_product(true, 
   Object(WC_Product_Simple), Object(WC_Coupon), Array) #2 /home/hhelpglobal/public_html/
   wp-includes/plugin.php(203): WP_Hook->apply_filters(true, Array) #3 /home/hhelpglobal/
   public_html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(845):
   apply_filters(‘woocommerce_cou…’, true, Object(WC_Product_Simple), Object(WC_Coupon),
   Array) #4 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes/
   class-wc-discounts.php(752): WC_Coupon->is_valid_for_product(Object(WC_Product_Simple),
   Array) #5 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes
 * 2018-02-21T20:46:11+00:00 CRITICAL Uncaught Error: Call to a member function 
   is_type() on boolean in /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/
   includes/class-wc-coupon.php:812
    Stack trace: #0 /home/hhelpglobal/public_html/
   wp-content/plugins/woocommerce-multilingual/inc/class-wcml-coupons.php(117): 
   WC_Coupon->is_valid_for_product(false, Array) #1 /home/hhelpglobal/public_html/
   wp-includes/class-wp-hook.php(286): WCML_Coupons->is_valid_for_product(true, 
   Object(WC_Product_Simple), Object(WC_Coupon), Array) #2 /home/hhelpglobal/public_html/
   wp-includes/plugin.php(203): WP_Hook->apply_filters(true, Array) #3 /home/hhelpglobal/
   public_html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(845):
   apply_filters(‘woocommerce_cou…’, true, Object(WC_Product_Simple), Object(WC_Coupon),
   Array) #4 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes/
   class-wc-discounts.php(752): WC_Coupon->is_valid_for_product(Object(WC_Product_Simple),
   Array) #5 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes
 * 2018-02-21T20:47:43+00:00 CRITICAL Uncaught Error: Call to a member function 
   is_type() on boolean in /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/
   includes/class-wc-coupon.php:812
    Stack trace: #0 /home/hhelpglobal/public_html/
   wp-content/plugins/woocommerce-multilingual/inc/class-wcml-coupons.php(117): 
   WC_Coupon->is_valid_for_product(false, Array) #1 /home/hhelpglobal/public_html/
   wp-includes/class-wp-hook.php(286): WCML_Coupons->is_valid_for_product(true, 
   Object(WC_Product_Simple), Object(WC_Coupon), Array) #2 /home/hhelpglobal/public_html/
   wp-includes/plugin.php(203): WP_Hook->apply_filters(true, Array) #3 /home/hhelpglobal/
   public_html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(845):
   apply_filters(‘woocommerce_cou…’, true, Object(WC_Product_Simple), Object(WC_Coupon),
   Array) #4 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes/
   class-wc-discounts.php(752): WC_Coupon->is_valid_for_product(Object(WC_Product_Simple),
   Array) #5 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes
 * 2018-02-21T20:49:43+00:00 CRITICAL Uncaught Error: Call to a member function 
   is_type() on boolean in /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/
   includes/class-wc-coupon.php:812
    Stack trace: #0 /home/hhelpglobal/public_html/
   wp-content/plugins/woocommerce-multilingual/inc/class-wcml-coupons.php(117): 
   WC_Coupon->is_valid_for_product(false, Array) #1 /home/hhelpglobal/public_html/
   wp-includes/class-wp-hook.php(286): WCML_Coupons->is_valid_for_product(true, 
   Object(WC_Product_Simple), Object(WC_Coupon), Array) #2 /home/hhelpglobal/public_html/
   wp-includes/plugin.php(203): WP_Hook->apply_filters(true, Array) #3 /home/hhelpglobal/
   public_html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(845):
   apply_filters(‘woocommerce_cou…’, true, Object(WC_Product_Simple), Object(WC_Coupon),
   Array) #4 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes/
   class-wc-discounts.php(752): WC_Coupon->is_valid_for_product(Object(WC_Product_Simple),
   Array) #5 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes
 * 2018-02-21T20:56:41+00:00 CRITICAL Uncaught Error: Call to a member function 
   is_type() on boolean in /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/
   includes/class-wc-coupon.php:812
    Stack trace: #0 /home/hhelpglobal/public_html/
   wp-content/plugins/woocommerce-multilingual/inc/class-wcml-coupons.php(117): 
   WC_Coupon->is_valid_for_product(false, Array) #1 /home/hhelpglobal/public_html/
   wp-includes/class-wp-hook.php(286): WCML_Coupons->is_valid_for_product(true, 
   Object(WC_Product_Simple), Object(WC_Coupon), Array) #2 /home/hhelpglobal/public_html/
   wp-includes/plugin.php(203): WP_Hook->apply_filters(true, Array) #3 /home/hhelpglobal/
   public_html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(845):
   apply_filters(‘woocommerce_cou…’, true, Object(WC_Product_Simple), Object(WC_Coupon),
   Array) #4 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes/
   class-wc-discounts.php(752): WC_Coupon->is_valid_for_product(Object(WC_Product_Simple),
   Array) #5 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce/includes
 * 2018-02-25T02:31:04+00:00 CRITICAL Uncaught Error: Call to a member function 
   get_sku() on boolean in /home/hhelpglobal/public_html/wp-content/plugins/woocommerce-
   google-analytics-integration/includes/class-wc-google-analytics-js.php:400
    Stack
   trace: #0 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce-google-
   analytics-integration/includes/class-wc-google-analytics-js.php(337): WC_Google_Analytics_JS-
   >add_item_universal(Object(WC_Order), Object(WC_Order_Item_Product)) #1 /home/
   hhelpglobal/public_html/wp-content/plugins/woocommerce-google-analytics-integration/
   includes/class-wc-google-analytics-js.php(284): WC_Google_Analytics_JS->add_transaction_universal(
   Object(WC_Order)) #2 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce-
   google-analytics-integration/includes/class-wc-google-analytics.php(327): WC_Google_Analytics_JS-
   >add_transaction(Object(WC_Order)) #3 /home/hhelpglobal/public_html/wp-content/
   plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics.
   php(293): WC_Google_Analytics->get_ecommerc
 * 2018-02-25T02:31:41+00:00 CRITICAL Uncaught Error: Call to a member function 
   get_sku() on boolean in /home/hhelpglobal/public_html/wp-content/plugins/woocommerce-
   google-analytics-integration/includes/class-wc-google-analytics-js.php:400
    Stack
   trace: #0 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce-google-
   analytics-integration/includes/class-wc-google-analytics-js.php(337): WC_Google_Analytics_JS-
   >add_item_universal(Object(WC_Order), Object(WC_Order_Item_Product)) #1 /home/
   hhelpglobal/public_html/wp-content/plugins/woocommerce-google-analytics-integration/
   includes/class-wc-google-analytics-js.php(284): WC_Google_Analytics_JS->add_transaction_universal(
   Object(WC_Order)) #2 /home/hhelpglobal/public_html/wp-content/plugins/woocommerce-
   google-analytics-integration/includes/class-wc-google-analytics.php(327): WC_Google_Analytics_JS-
   >add_transaction(Object(WC_Order)) #3 /home/hhelpglobal/public_html/wp-content/
   plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics.
   php(293): WC_Google_Analytics->get_ecommerc
 *  Thread Starter [websharx](https://wordpress.org/support/users/websharx/)
 * (@websharx)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/get-country-function-error/#post-10023949)
 * Hi [@visser](https://wordpress.org/support/users/visser/),
 * Would you have any update on this? We keep getting this error in the log:
 * [28-Feb-2018 06:24:10 UTC] The WC_Customer::get_country function is deprecated
   since version 3.0. Replace with WC_Customer::get_billing_country.
    [28-
 *  [zanzibarwinds](https://wordpress.org/support/users/zanzibarwinds/)
 * (@zanzibarwinds)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/get-country-function-error/#post-10114954)
 * I am getting these errors also, any help would be appreciated.
 *  [Albertnick](https://wordpress.org/support/users/albertnick/)
 * (@albertnick)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/get-country-function-error/#post-10452910)
 * I am getting these errors in [LiteBlue](https://liteblueusps.online/) site, any
   help would be appreciated. Looking few more answers

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Get Country Function Error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-checkout-manager/assets/icon-256x256.jpg?rev
   =2911736)
 * [Checkout Field Manager (Checkout Manager) for WooCommerce](https://wordpress.org/plugins/woocommerce-checkout-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-checkout-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-checkout-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-checkout-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-checkout-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-checkout-manager/reviews/)

 * 14 replies
 * 4 participants
 * Last reply from: [Albertnick](https://wordpress.org/support/users/albertnick/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/get-country-function-error/#post-10452910)
 * Status: resolved