• Resolved johnmooredigital

    (@johnmooredigital)


    Using Stripe with WP Job Manager. It started having fatal errors when customers pay for the job listing with the most recent update.

    Many recent issues have been reported in the past 24 hours with the same error, so perhaps this is beyond a plugin or theme conflict and maybe a bug with version 6.5.0.

    2022-07-29 17:40:29.554953
    NOTICE
    [67] [REDACTEDIP#Wordpress] [STDERR] PHP Fatal error: Uncaught Error: Call to a member function get_upe_enabled_payment_method_ids() on null in /var/www/html/wordpress/wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php:664
    Stack trace:
    #0 /var/www/html/wordpress/wp-includes/class-wp-hook.php(309): WC_Stripe->checkout_update_email_field_priority(Array)
    #1 /var/www/html/wordpress/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array)
    #2 /var/www/html/wordpress/wp-content/plugins/woocommerce/includes/class-wc-countries.php(1616): apply_filters('woocommerce_bil...', Array, 'US')
    #3 /var/www/html/wordpress/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(228): WC_Countries->get_address_fields('US', 'billing_')
    #4 /var/www/html/wordpress/wp-content/plugins/woocommerce/templates/checkout/form-checkout.php(34): WC_Checkout->get_checkout_fields()
    #5 /var/www/html/wordpress/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/var/www/html/w...')
    #6 /var/www/html/wordpress/wp-content/plugins/woocomm in /var/www/html/wordpress/wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php on line 664

    I’m happy to share a system report privately if there is a way.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    I am sorry to hear about that.

    Please provide us with the following to take a closer look:

    — Please describe the steps made in order to reproduce the issue.

    — Please share a copy of your site’s System Status: You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.?You can send your report via https://pastebin.com/ and allow some days for the file to be alive so that we can check, you can also redact the site URL for privacy reasons (this is optional).

    Looking forward to hearing from you.

    Thread Starter johnmooredigital

    (@johnmooredigital)

    Steps:

    1. Fill out the required fields of the new job form
    2. Click preview and post job
    3. Click choose a package
    4. Choose any package
    5. Fatal error screen.

    Worked with no issues until the past 24 hours after updating to new version of the plugin on 7/28/2022

    Status:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://www.REDACTED.com
    Site address (URL): https://www.REDACTED.com
    WC Version: 6.7.0
    REST API Version: ? 6.7.0
    WC Blocks Version: ? 7.8.3
    Action Scheduler Version: ? 3.4.0
    Log Directory Writable: ?
    WP Version: 6.0.1
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    PHP Version: 7.3.28-1+focal
    PHP Post Max Size: 250 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 3000
    cURL Version: 7.68.0
    OpenSSL/1.1.1f
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.4.21-MariaDB-1:10.4.21+maria~focal
    Max Upload Size: 250 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.7.0
    WC Database Prefix: wp_REDACTED_
    Total Database Size: 360.02MB
    Database Data Size: 326.71MB
    Database Index Size: 33.31MB
    wp_REDACTED_woocommerce_sessions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_REDACTED_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_REDACTED_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_REDACTED_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.17MB + Engine InnoDB
    wp_REDACTED_woocommerce_order_items: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_REDACTED_woocommerce_order_itemmeta: Data: 0.28MB + Index: 0.34MB + Engine InnoDB
    wp_REDACTED_woocommerce_tax_rates: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_REDACTED_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_REDACTED_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_REDACTED_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_REDACTED_woocommerce_payment_tokenmeta: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    wp_REDACTED_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_REDACTED_actionscheduler_actions: Data: 0.14MB + Index: 0.16MB + Engine InnoDB
    wp_REDACTED_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_REDACTED_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_REDACTED_actionscheduler_logs: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
    wp_REDACTED_aioseo_cache: Data: 1.02MB + Index: 0.03MB + Engine InnoDB
    wp_REDACTED_aioseo_notifications: Data: 0.06MB + Index: 0.06MB + Engine InnoDB
    wp_REDACTED_aioseo_posts: Data: 1.52MB + Index: 0.08MB + Engine InnoDB
    wp_REDACTED_commentmeta: Data: 3.50MB + Index: 1.91MB + Engine InnoDB
    wp_REDACTED_comments: Data: 3.52MB + Index: 1.17MB + Engine InnoDB
    wp_REDACTED_job_manager_stats: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_REDACTED_litespeed_img_optm: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_REDACTED_litespeed_url: Data: 0.44MB + Index: 0.58MB + Engine InnoDB
    wp_REDACTED_litespeed_url_file: Data: 0.09MB + Index: 0.27MB + Engine InnoDB
    wp_REDACTED_options: Data: 16.17MB + Index: 0.17MB + Engine InnoDB
    wp_REDACTED_pmxe_exports: Data: 4.50MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_pmxe_google_cats: Data: 0.39MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_pmxe_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_pmxe_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_pmxi_hash: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_pmxi_images: Data: 0.17MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_pmxi_imports: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_pmxi_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_pmxi_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_postmeta: Data: 84.20MB + Index: 12.95MB + Engine InnoDB
    wp_REDACTED_posts: Data: 181.55MB + Index: 2.52MB + Engine InnoDB
    wp_REDACTED_redirection_404: Data: 7.02MB + Index: 4.05MB + Engine InnoDB
    wp_REDACTED_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_REDACTED_redirection_items: Data: 0.48MB + Index: 0.59MB + Engine InnoDB
    wp_REDACTED_redirection_logs: Data: 2.03MB + Index: 0.25MB + Engine InnoDB
    wp_REDACTED_say_what_strings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_REDACTED_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_REDACTED_terms: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
    wp_REDACTED_term_relationships: Data: 0.22MB + Index: 0.17MB + Engine InnoDB
    wp_REDACTED_term_taxonomy: Data: 0.08MB + Index: 0.11MB + Engine InnoDB
    wp_REDACTED_usermeta: Data: 0.48MB + Index: 0.48MB + Engine InnoDB
    wp_REDACTED_users: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
    wp_REDACTED_wcpl_user_packages: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_wc_admin_note_actions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_REDACTED_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_wc_customer_lookup: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wp_REDACTED_wc_download_log: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_REDACTED_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_REDACTED_wc_order_product_lookup: Data: 0.06MB + Index: 0.11MB + Engine InnoDB
    wp_REDACTED_wc_order_stats: Data: 0.05MB + Index: 0.30MB + Engine InnoDB
    wp_REDACTED_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_REDACTED_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_REDACTED_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_REDACTED_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_REDACTED_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_REDACTED_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_REDACTED_wc_webhooks: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_REDACTED_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_REDACTED_yoast_indexable: Data: 5.52MB + Index: 1.88MB + Engine InnoDB
    wp_REDACTED_yoast_indexable_hierarchy: Data: 0.31MB + Index: 0.44MB + Engine InnoDB
    wp_REDACTED_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_REDACTED_yoast_primary_term: Data: 0.14MB + Index: 0.16MB + Engine InnoDB
    wp_REDACTED_yoast_seo_links: Data: 4.42MB + Index: 2.77MB + Engine InnoDB
    wp_REDACTED_yoast_seo_meta: Data: 0.11MB + Index: 0.00MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 1.52MB + Index: 0.03MB + Engine InnoDB
    wp_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_posts: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    amp_validated_url: 6
    attachment: 3454
    bnfw_notification: 3
    fl-builder-template: 7
    fl-theme-layout: 7
    jm_job_emails: 4
    job_listing: 2228
    nav_menu_item: 52
    oembed_cache: 40
    page: 94
    post: 1731
    product: 9
    revision: 14270
    shop_coupon: 5
    shop_order: 1170
    shop_order_refund: 13
    wp_global_styles: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (28) ###
    
    ManageWP - Worker: by GoDaddy – 4.9.14
    Akismet Anti-Spam: by Automattic – 5.0
    All in One SEO: by All in One SEO Team – 4.2.3.1
    AMP: by AMP Project Contributors – 2.3.0
    Beaver Builder Plugin (Agency Version): by The Beaver Builder Team – 2.5.5.2
    Beaver Themer: by The Beaver Builder Team – 1.4.2.2
    Ultimate Addons for Beaver Builder: by Brainstorm Force – 1.34.6
    Better Notifications for WP: by Made with Fuel – 1.8.11
    Classic Editor: by WordPress Contributors – 1.6.2
    Disable Comments: by WPDeveloper – 2.4.0
    Site Kit by Google: by Google – 1.79.1
    LiteSpeed Cache: by LiteSpeed Technologies – 5.0.1
    Redirection: by John Godley – 5.3.1
    WooCommerce Stripe Gateway: by WooCommerce – 6.5.0
    WooCommerce: by Automattic – 6.7.0
    Yoast SEO: by Team Yoast – 19.4
    WP All Export Pro: by Soflyy – 1.7.8
    WP All Import Pro: by Soflyy – 4.7.5
    WP Job Manager - Application Deadline: by Automattic – 1.2.5
    Stats for WP Job Manager: by Astoundify – 2.7.2
    WP Job Manager - WooCommerce Paid Listings: by Automattic – 2.9.8
    WP All Import - WP Job Manager Add-On: by Soflyy – 1.2.1
    WP Job Manager: by Automattic – 1.37.0
    WP Mail SMTP: by WPForms – 3.5.1
    Smush: by WPMU DEV – 3.10.3
    WP All Export - User Export Add-On Pro: by Soflyy – 1.0.7
    WPForms Lite: by WPForms – 1.7.5.5
    WPJM Extra Fields: by Gabriel Maldonado – 1.3.0
    
    ### Inactive Plugins (1) ###
    
    Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 8.7.0
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Must Use Plugins (1) ###
    
    ManageWP - Worker Loader: by GoDaddy –
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    job_package (job_package)
    job_package_subscription (job_package_subscription)
    resume_package (resume_package)
    resume_package_subscription (resume_package_subscription)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: ?
    Enforce Approved Product Download Directories: –
    
    ### WC Pages ###
    
    Shop base: #773 - /packages/
    Cart: #774 - /cart/
    Checkout: #775 - /checkout/
    My account: #776 - /my-account/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: Beaver Builder Child Theme
    Version: 1.0
    Author URL: https://www.fastlinemedia.com
    Child Theme: ?
    Parent Theme Name: Beaver Builder Theme
    Parent Theme Version: 1.7.11
    Parent Theme Author URL: https://www.wpbeaverbuilder.com/?utm_medium=bb-pro&utm_source=bb-theme&utm_campaign=themes-admin-page
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: bb-theme-child/woocommerce/checkout/order-receipt.php
    bb-theme-child/woocommerce/checkout/review-order.php
    bb-theme-child/woocommerce/checkout/thankyou.php
    bb-theme-child/woocommerce/emails/customer-completed-order.php
    bb-theme-child/woocommerce/emails/customer-processing-order.php
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    experimental-product-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    wc-pay-promotion
    wc-pay-welcome-page
    wc-pay-subscriptions-page
    
    Disabled Features: minified-js
    settings
    
    Daily Cron: ? Next scheduled: 2022-07-30 20:12:57 -07:00
    Options: ?
    Notes: 89
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Complete: 386
    Oldest: 2022-06-28 13:48:27 -0700
    Newest: 2022-07-29 13:31:18 -0700
    
    Pending: 8
    Oldest: 2022-07-29 13:46:18 -0700
    Newest: 2022-07-31 13:21:19 -0700
    
    ### Status report information ###
    
    Generated at: 2022-07-29 13:41:05 -07:00
    
    Thread Starter johnmooredigital

    (@johnmooredigital)

    FWIW – Below is the code referenced in the error for easy reference, plus a possible solution.

    /wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php:664

    Line 664: $this->stripe_gateway->get_upe_enabled_payment_method_ids(),

    /**
     * Move the email field to the top of the Checkout page.
     *
     * @param array $fields WooCommerce checkout fields.
     *
     * @return array WooCommerce checkout fields.
     */
    public function checkout_update_email_field_priority( $fields ) {
    	$is_link_enabled = in_array(
    		WC_Stripe_UPE_Payment_Method_Link::STRIPE_ID,
    		$this->stripe_gateway->get_upe_enabled_payment_method_ids(),
    		true
    	);
    
    	if ( $is_link_enabled ) {
    		// Update the field priority.
    		$fields['billing_email']['priority'] = 1;
    
    		// Add extra <code>wcpay-checkout-email-field</code> class.
    		$fields['billing_email']['class'][] = 'stripe-gateway-checkout-email-field';
    
    		// Append StripeLink modal trigger button for logged in users.
    		$fields['billing_email']['label'] = $fields['billing_email']['label']
    			. ' <button class="stripe-gateway-stripelink-modal-trigger"></button>';
    	}
    
    	return $fields;
    }

    Would it make sense to check if $this->stripe_gateway is not null before attempting to bind $is_link_enabled?

    if ( ! is_null( $this->stripe_gateway ) ) {
    	$is_link_enabled = in_array(
    		WC_Stripe_UPE_Payment_Method_Link::STRIPE_ID,
    		$this->stripe_gateway->get_upe_enabled_payment_method_ids(),
    		true
    	);
    }

    This hotfix worked for me. I know I’m not supposed to update plugin core code, but the reality is this recent update appears to have broken many production sites looking at recently reported incidents.

    Plugin Support Kaushik S. a11n

    (@kaushiksomaiya)

    Hi there @greghalpen and @johnmooredigital!

    Thanks for sharing the additional information.

    This is currently reported as a bug (compatibility with other plugins) and is being investigated here: https://github.com/woocommerce/woocommerce-gateway-stripe/issues/2394

    I’d suggest downgrading to version 6.4.3 and see if that helps!

    You could also comment your thoughts and suggestions on the Github bug report directly.

    I hope this helps! ??

    Thank you @johnmooredigital – works a treat

    Is the bug fixed now, and we can update to version 6.5.1?

    I updated the Woocommerce Stripe Gateway plug-in yesterday. Was that big fix?

    Hi @greghalpen and @allinonetools

    Our team is working on this, and an update is expected to be released soon. The process can be followed directly at Github here: https://github.com/woocommerce/woocommerce-gateway-stripe/issues/2394

    Please subscribe to the thread to receive updates, if you haven’t done already.

    Your patience is appreciated.

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PHP Fatal error: Uncaught Error: Call to a member function get_upe_enabled_payme’ is closed to new replies.