Title: Fatal PHP error in SubscriptionHelper
Last modified: June 23, 2026

---

# Fatal PHP error in SubscriptionHelper

 *  [Paul](https://wordpress.org/support/users/headwall/)
 * (@headwall)
 * [2 weeks ago](https://wordpress.org/support/topic/fatal-php-error-in-subscriptionhelper/)
 * Hi
 * A client is experiencing the following fatal PHP error:
 *     ```wp-block-code
       PHP Fatal error:  Uncaught Error: Call to a member function get_type() on false in /web/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-subscriptions/src/Helper/SubscriptionHelper.php:183
       ```
   
 * I think we need to check if `$product` is really an instance of `WC_Product`,
   otherwise the subsequent call to `$product->get_type()` fails hard.
 * For reference, this client’s site isn’t even running the WooCommerce subscriptions
   plugin. So why is this code even being called? Can we just switch out the PayPal
   Subscription module when it’s not needed?
 * Paul

Viewing 1 replies (of 1 total)

 *  Plugin Support [Syde Jamie](https://wordpress.org/support/users/jamieong/)
 * (@jamieong)
 * [1 week, 6 days ago](https://wordpress.org/support/topic/fatal-php-error-in-subscriptionhelper/#post-18946645)
 * Hi [@headwall](https://wordpress.org/support/users/headwall/) ,
 * Thank you for reaching out to us.
 * We are looking into the issue you reported. Meanwhile you can add this snippet
   to your theme’s `functions.php` or use a code snippets plugin:
 *     ```wp-block-code
       add_filter( 'woocommerce_paypal_payments_subscription_mode_disabled', '__return_true' );
       ```
   
 * This filter is used in multiple places to disable subscription functionality 
   when WooCommerce Subscriptions is not active or not needed.
 * Can you also share the system status report? Please follow these steps to share
   your system status report with us:
    1. Navigate to the `WooCommerce / Status` section in your site’s admin panel.
    2. Click on the `Get system report` button and then click `Copy for support`.
    3. Paste the report into our [PrivateBin](http://privatebin.syde.com/).
    4. After uploading, please share the link here so we can review the details thoroughly.
 * Alternatively, to speed up the whole process we suggest you to contact us directly
   for further assistance. You can open a ticket with our service desk. Here’s how
   you can request support: [Request Support](https://paypal.inpsyde.com/docs/request-support/).
   Please make sure to include the URL of this thread in your ticket for reference.
 * Best Regards,
   Jamie

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-php-error-in-subscriptionhelper%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/woocommerce-paypal-payments/assets/icon-256x256.png?rev=
   3234615)
 * [WooCommerce PayPal Payments](https://wordpress.org/plugins/woocommerce-paypal-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-paypal-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-paypal-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-paypal-payments/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Syde Jamie](https://wordpress.org/support/users/jamieong/)
 * Last activity: [1 week, 6 days ago](https://wordpress.org/support/topic/fatal-php-error-in-subscriptionhelper/#post-18946645)
 * Status: not resolved