Title: Critical error in version 3
Last modified: September 2, 2019

---

# Critical error in version 3

 *  Resolved [Daniele](https://wordpress.org/support/users/dabesa/)
 * (@dabesa)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/critical-error-in-version-3/)
 * Hi guys,
 * Since version 3 I faced major issues:
    3.0: all the renewal payments (via WC 
   Subscriptions) failed to be processed; 3.0.1: the website stops working and gives
   error:
 * > Un errore di E_ERROR è stato causato nella linea 102 del file /home/web/sito.
   > it/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/
   > class-wc-gateway-ppec-ips-handler.php. Messaggio di errore: Uncaught Error:
   > Call to a member function get_base_country() on null in /home/web/sito.it/wp-
   > content/plugins/woocommerce-gateway-paypal-express-checkout/includes/class-
   > wc-gateway-ppec-ips-handler.php:102
   >  Stack trace: #0 /home/web/sito.it/wp-content/
   > plugins/woocommerce-gateway-paypal-express-checkout/includes/settings/settings-
   > ppec.php(12): WC_Gateway_PPEC_IPS_Handler->is_supported() #1 /home/web/sito.
   > it/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/
   > abstracts/abstract-wc-gateway-ppec.php(105): include(‘/home/web/…’) #2 /home/
   > web/sito.it/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/
   > includes/abstracts/abstract-wc-gateway-ppec.php(27): WC_Gateway_PPEC->init_form_fields()#
   > 3 /home/web/sito.it/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/
   > includes/class-wc-gateway-ppec-with-paypal.php(12): WC_Gateway_PPEC->__construct()#
   > 4 /home/web/sito.it/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/
   > includes/c
 * The error goes away when I disable Woocommerce Payment Gateway per Product.
 * Can you check?
 * Thanks
    Daniele

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

 *  Plugin Author [dreamfox](https://wordpress.org/support/users/dreamfox/)
 * (@dreamfox)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/critical-error-in-version-3/#post-11891703)
 * Hello Daniele,
 * It look that the error came from this plugin:
    woocommerce-gateway-paypal-express-
   checkout what happens if you deactivatethat plugin?
 * We installed it on our develop website but we can not reproduce the error.
    Can
   you tell us step by step what you do to see that error?
 *  Thread Starter [Daniele](https://wordpress.org/support/users/dabesa/)
 * (@dabesa)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/critical-error-in-version-3/#post-11891782)
 * Hi Dreamfox,
 * Thank you, since we rely on Paypal Express Checkout to collect payments and automatic
   renewals I could not try disabling it.
    I disabled instead Woocommerce Payment
   Gateway per Product and this was enough to solve the error.
 * Btw, I’m talking about this one:
    [https://it.wordpress.org/plugins/woocommerce-gateway-paypal-express-checkout/](https://it.wordpress.org/plugins/woocommerce-gateway-paypal-express-checkout/)
 * I replicated the problem in our test env:
 * > Un errore di E_ERROR è stato causato nella linea 102 del file /home/danieleb/
   > dev.wp-ok.it/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/
   > includes/class-wc-gateway-ppec-ips-handler.php. Messaggio di errore: Uncaught
   > Error: Call to a member function get_base_country() on null in /home/danieleb/
   > dev.wp-ok.it/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/
   > includes/class-wc-gateway-ppec-ips-handler.php:102
   >  Stack trace: #0 /home/danieleb/
   > dev.wp-ok.it/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/
   > includes/settings/settings-ppec.php(12): WC_Gateway_PPEC_IPS_Handler->is_supported()#
   > 1 /home/danieleb/dev.wp-ok.it/wp-content/plugins/woocommerce-gateway-paypal-
   > express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php(105): include(‘/
   > home/danieleb/…’) #2 /home/danieleb/dev.wp-ok.it/wp-content/plugins/woocommerce-
   > gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.
   > php(27): WC_Gateway_PPEC->init_form_fields() #3 /home/danieleb/dev.wp-ok.it/
   > wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/class-
   > wc-gateway-ppec-with-paypal.php(12): WC_Gateway_PPEC->__construct() #4 /home/
   > danieleb/dev.wp-ok.it/wp-content/plugins/woocommerce-gateway-paypal-exp
 * How can we troubleshoot this?
    And can you tell me if the bug in 3.0 was affecting
   automatic renewals?
 * Thanks
    D
 *  Plugin Author [dreamfox](https://wordpress.org/support/users/dreamfox/)
 * (@dreamfox)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/critical-error-in-version-3/#post-11895504)
 * Hi,
 * Our developers found the problem and working on that issue.
    We are working hard
   and expect to release new version within 24 hours.
 *  Plugin Author [dreamfox](https://wordpress.org/support/users/dreamfox/)
 * (@dreamfox)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/critical-error-in-version-3/#post-11897795)
 * please update to 3.0.2 and let me know the outcome please
 *  [huntbev](https://wordpress.org/support/users/huntbev/)
 * (@huntbev)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/critical-error-in-version-3/#post-11899035)
 * Hi,
 * Updated to 3.0.2 but when active still breaks the site we use it on……
 * Only option is to disable plugin or get a error that says:
 * ‘The site is experiencing technical difficulties.’
 * Has the update been tested??
 * Thanks
 *  Thread Starter [Daniele](https://wordpress.org/support/users/dabesa/)
 * (@dabesa)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/critical-error-in-version-3/#post-11899172)
 * Same for us, I wonder the same…
 *  [harim](https://wordpress.org/support/users/harim/)
 * (@harim)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/critical-error-in-version-3/#post-11910406)
 * Since the version 3.0 update, my website keeps crashing. I had to restore from
   backup and I have been waiting for 10 days for a fix, with 2 new updates, this
   issue is still not fixed. I am using 2.5.9 which is working fine. I am using 
   wordpress version 5.2.3–en_GB and the latest woocommerce and ever other plugin
   is updated to the latest.
 * Fix the bug or I have to look for another plugin.
 *  Plugin Author [dreamfox](https://wordpress.org/support/users/dreamfox/)
 * (@dreamfox)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/critical-error-in-version-3/#post-11913586)
 * We working hard on this issue. If yoy have not already. please create ticket 
   @ [https://support.dreamfoxmedia.com](https://support.dreamfoxmedia.com) so we
   can inform you
 *  Plugin Author [dreamfox](https://wordpress.org/support/users/dreamfox/)
 * (@dreamfox)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/critical-error-in-version-3/#post-11930005)
 * [@huntbev](https://wordpress.org/support/users/huntbev/) [@harim](https://wordpress.org/support/users/harim/)
   [@dabesa](https://wordpress.org/support/users/dabesa/)
 * Do you have the plugin:
    [https://it.wordpress.org/plugins/woocommerce-gateway-paypal-express-checkout/](https://it.wordpress.org/plugins/woocommerce-gateway-paypal-express-checkout/)
   installed. if you disable that plugin is then our plugin working.
 * We currently have 314 users running 3.02 with no problems. We need to finetune
   and see where the problem is. If you did not make any supportticket please do
   so @ support.dreamfoxmedia.com so we can help you with this.
 *  Thread Starter [Daniele](https://wordpress.org/support/users/dabesa/)
 * (@dabesa)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/critical-error-in-version-3/#post-12080437)
 * Hi [@dreamfox](https://wordpress.org/support/users/dreamfox/) ,
 * Yes we have the Paypal Express Checkout installed.
    Did you find the conflict
   and is there a solution coming soon?
 * Thanks
    Daniele
 *  Plugin Author [dreamfox](https://wordpress.org/support/users/dreamfox/)
 * (@dreamfox)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/critical-error-in-version-3/#post-12085705)
 * Hello [@dabesa](https://wordpress.org/support/users/dabesa/) ,
 * We have fixed the issue in version 3.0.3
 *  [Jeff C](https://wordpress.org/support/users/12steprecovery/)
 * (@12steprecovery)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/critical-error-in-version-3/#post-12099336)
 * I get the following error when I go to “You are just one step away – Complete“
   Woocommerce Payment Gateway Per Product” Activation Now”
 *     ```
       Uncaught Error: Call to a member function get_base_country() on null in /home/slaauk10/public_html/w2/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/class-wc-gateway-ppec-ips-handler.php on line 102
       is_supported()
       wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/settings/settings-ppec.php:12
       include()
       wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php:105
       init_form_fields()
       wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php:27
       __construct()
       wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/class-wc-gateway-ppec-with-paypal.php:12
       __construct()
       wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php:94
       init()
       wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php:70
       __construct()
       wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php:43
       instance()
       wp-content/plugins/woocommerce/includes/class-woocommerce.php:818
       payment_gateways()
       wp-content/plugins/woocommerce/includes/class-woocommerce.php:146
       __get()
       wp-content/plugins/woocommerce-product-payments/woocommerce-payment-gateway-per-product.php:259
       wpgpp_redux()
       wp-includes/class-wp-hook.php:286
       apply_filters()
       wp-includes/class-wp-hook.php:310
       do_action()
       wp-includes/plugin.php:465
       do_action()
       wp-settings.php:394
       require_once()
       wp-config.php:94
       require_once()
       wp-load.php:37
       require_once()
       wp-admin/admin.php:34
       The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.
       ```
   
 * Using 3.0.3
 *  Plugin Author [dreamfox](https://wordpress.org/support/users/dreamfox/)
 * (@dreamfox)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/critical-error-in-version-3/#post-12103317)
 * [@12steprecovery](https://wordpress.org/support/users/12steprecovery/) : can 
   you create a ticket with these details on [https://support.dreamfoxmedia.com ](https://support.dreamfoxmedia.com)
 * Our developers will then take a look and fix the problem

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

The topic ‘Critical error in version 3’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-product-payments/assets/icon-256x256.png?rev
   =2063291)
 * [Payment Gateway Per Product for WooCommerce](https://wordpress.org/plugins/woocommerce-product-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-product-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-product-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-product-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-product-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-product-payments/reviews/)

 * 13 replies
 * 5 participants
 * Last reply from: [dreamfox](https://wordpress.org/support/users/dreamfox/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/critical-error-in-version-3/#post-12103317)
 * Status: resolved