woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
232 stars 204 forks source link

[6.5.0] Fatal Errors Related to get_upe_enabled_payment_method_ids() #2394

Closed csmcneill closed 2 years ago

csmcneill commented 2 years ago

Describe the bug After updating to Stripe 6.5.0, a user in 36234977-hc reported an issue that specifically affected some other extensions, like WP Fusion.

Some elements of other extensions were inaccessible unless they reverted to 6.4.3. Some of this was due to odd styling errors, but others were replaced with the following fatal error:

Fatal error: Uncaught Error: Call to a member function get_upe_enabled_payment_method_ids() on null in /home/customer/www/[SITEURL].com/public_html/wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php:664 
Stack trace: 
#0 
/home/customer/www/[SITEURL].com/public_html/wp-includes/class-wp-hook.php(309): WC_Stripe->checkout_update_email_field_priority(Array) 
#1 
/home/customer/www/[SITEURL].com/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array) 
#2 
/home/customer/www/[SITEURL].com/public_html/wp-content/plugins/woocommerce/includes/class-wc-countries.php(1616): apply_filters('woocommerce_bil...', Array, 'US') 
#3 
/home/customer/www/[SITEURL].com/public_html/wp-content/plugins/wp-fusion/includes/integrations/class-woocommerce.php(630): WC_Countries->get_address_fields('US', 'billing_') 
#4 
/home/customer/www/[SITEURL].com/public_html/wp-includes/class-wp-hook.php(307): WPF_Woocommerce->prepare_meta_fields(Array) 
#5 
/home/customer/www/[SITEURL].com/public_html/wp-includes/pl in /home/customer/www/[SITEURL].com/public_html/wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php on line 664

Note: Redacted their site URL since this is a public repo.

Expected behavior While the onus isn't on the Stripe development team to ensure compatibility with WP Fusion, I wanted to mention this here just in case it is something that should be considered for future releases.

Screenshots Annotation on 2022-07-28 at 17-22-50

Markup on 2022-07-28 at 17:18:08

Environment (please complete the following information): SSR:

``` ` ### WordPress Environment ### WordPress address (URL): https://[SITEURL].com Site address (URL): https://[SITEURL].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: 768 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.30 PHP Post Max Size: 256 MB PHP Time Limit: 120 PHP Max Input Vars: 3000 cURL Version: 7.66.0 OpenSSL/1.1.1q-fips SUHOSIN Installed: – MySQL Version: 5.7.38-41-log Max Upload Size: 256 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: doh_ Total Database Size: 672.78MB Database Data Size: 557.43MB Database Index Size: 115.35MB doh_woocommerce_sessions: Data: 0.04MB + Index: 0.00MB + Engine MyISAM doh_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_woocommerce_downloadable_product_permissions: Data: 0.08MB + Index: 0.09MB + Engine MyISAM doh_woocommerce_order_items: Data: 1.36MB + Index: 0.62MB + Engine MyISAM doh_woocommerce_order_itemmeta: Data: 10.37MB + Index: 5.91MB + Engine MyISAM doh_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM doh_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_woocommerce_payment_tokens: Data: 0.12MB + Index: 0.06MB + Engine MyISAM doh_woocommerce_payment_tokenmeta: Data: 0.30MB + Index: 0.24MB + Engine MyISAM doh_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_actionscheduler_actions: Data: 0.56MB + Index: 0.18MB + Engine MyISAM doh_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM doh_actionscheduler_logs: Data: 0.31MB + Index: 0.21MB + Engine MyISAM doh_advanced_notifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_advanced_notification_triggers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_affiliate_wp_affiliatemeta: Data: 0.05MB + Index: 0.04MB + Engine MyISAM doh_affiliate_wp_affiliates: Data: 0.24MB + Index: 0.17MB + Engine MyISAM doh_affiliate_wp_campaigns: Data: 0.02MB + Index: 0.02MB + Engine MyISAM doh_affiliate_wp_coupons: Data: 0.02MB + Index: 0.02MB + Engine InnoDB doh_affiliate_wp_creatives: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_affiliate_wp_customermeta: Data: 0.08MB + Index: 0.05MB + Engine MyISAM doh_affiliate_wp_customers: Data: 0.09MB + Index: 0.09MB + Engine MyISAM doh_affiliate_wp_direct_links: Data: 0.00MB + Index: 0.01MB + Engine MyISAM doh_affiliate_wp_lifetime_customers: Data: 0.08MB + Index: 0.08MB + Engine MyISAM doh_affiliate_wp_payouts: Data: 0.10MB + Index: 0.07MB + Engine MyISAM doh_affiliate_wp_referralmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_affiliate_wp_referrals: Data: 0.76MB + Index: 0.15MB + Engine MyISAM doh_affiliate_wp_rest_consumers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_affiliate_wp_sales: Data: 0.09MB + Index: 0.11MB + Engine MyISAM doh_affiliate_wp_visits: Data: 10.99MB + Index: 2.05MB + Engine MyISAM doh_amz_assets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_amz_cross_sell: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_amz_products: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_amz_queue: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_amz_report_log: Data: 0.07MB + Index: 0.01MB + Engine MyISAM doh_amz_search: Data: 0.00MB + Index: 0.01MB + Engine MyISAM doh_cartflows_ca_cart_abandonment: Data: 2.42MB + Index: 0.19MB + Engine MyISAM doh_cartflows_ca_email_history: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_cartflows_ca_email_templates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_cartflows_ca_email_templates_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_cartflows_visits: Data: 0.01MB + Index: 0.01MB + Engine MyISAM doh_cartflows_visits_meta: Data: 0.02MB + Index: 0.01MB + Engine MyISAM doh_cli_cookie_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB doh_cli_cookie_scan_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB doh_cli_cookie_scan_cookies: Data: 0.02MB + Index: 0.03MB + Engine InnoDB doh_cli_cookie_scan_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB doh_cli_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB doh_coaches: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_coaches_classes_shortcodes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_commentmeta: Data: 2.89MB + Index: 2.48MB + Engine MyISAM doh_comments: Data: 24.03MB + Index: 9.60MB + Engine MyISAM doh_defender_lockout: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_defender_lockout_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_essb3_click_stats: Data: 0.01MB + Index: 0.00MB + Engine MyISAM doh_ExporttoPDFRecord: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB doh_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB doh_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB doh_e_submissions_actions_log: Data: 0.06MB + Index: 0.11MB + Engine InnoDB doh_e_submissions_values: Data: 1.52MB + Index: 0.14MB + Engine InnoDB doh_fbv: Data: 0.02MB + Index: 0.02MB + Engine InnoDB doh_fbv_attachment_folder: Data: 0.08MB + Index: 0.00MB + Engine InnoDB doh_gf_addon_feed: Data: 0.01MB + Index: 0.00MB + Engine MyISAM doh_gf_draft_submissions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM doh_gf_entry: Data: 3.02MB + Index: 0.30MB + Engine MyISAM doh_gf_entry_meta: Data: 8.62MB + Index: 6.27MB + Engine MyISAM doh_gf_entry_notes: Data: 1.51MB + Index: 0.50MB + Engine MyISAM doh_gf_form: Data: 0.01MB + Index: 0.00MB + Engine MyISAM doh_gf_form_meta: Data: 0.57MB + Index: 0.00MB + Engine MyISAM doh_gf_form_revisions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_gf_form_view: Data: 1.98MB + Index: 0.87MB + Engine MyISAM doh_gf_rest_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB doh_huge_it_videogallery_galleries: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_huge_it_videogallery_videos: Data: 0.01MB + Index: 0.00MB + Engine MyISAM doh_ia_savedcarts: Data: 0.33MB + Index: 0.06MB + Engine MyISAM doh_infusionsoftaffiliates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_inf_infusionsoft_stats: Data: 0.02MB + Index: 0.01MB + Engine MyISAM doh_ioc_smartlinks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_ioc_upsells: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_ioc_upsell_events: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_itro_plugin_field: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_itro_plugin_option: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_iw_payplans: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_jet_post_types: Data: 0.02MB + Index: 0.00MB + Engine InnoDB doh_jet_smart_filters_indexer: Data: 0.02MB + Index: 0.00MB + Engine InnoDB doh_jet_taxonomies: Data: 0.02MB + Index: 0.00MB + Engine InnoDB doh_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_memberium_lang: Data: 0.02MB + Index: 0.06MB + Engine InnoDB doh_memberium_pagetracking: Data: 0.02MB + Index: 0.08MB + Engine InnoDB doh_memberium_sessions: Data: 11.55MB + Index: 0.22MB + Engine InnoDB doh_nf3_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_nf3_action_meta: Data: 0.01MB + Index: 0.00MB + Engine MyISAM doh_nf3_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_nf3_field_meta: Data: 0.01MB + Index: 0.00MB + Engine MyISAM doh_nf3_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_nf3_form_meta: Data: 0.01MB + Index: 0.00MB + Engine MyISAM doh_nf3_objects: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_nf3_object_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_nf3_relationships: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_options: Data: 214.68MB + Index: 21.61MB + Engine MyISAM doh_postmeta: Data: 183.20MB + Index: 41.95MB + Engine MyISAM doh_posts: Data: 12.16MB + Index: 3.34MB + Engine MyISAM doh_ppress_coupons: Data: 0.02MB + Index: 0.05MB + Engine InnoDB doh_ppress_customers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB doh_ppress_forms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB doh_ppress_formsmeta: Data: 0.06MB + Index: 0.05MB + Engine InnoDB doh_ppress_meta_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB doh_ppress_ordermeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB doh_ppress_orders: Data: 0.02MB + Index: 0.13MB + Engine InnoDB doh_ppress_plans: Data: 0.02MB + Index: 0.00MB + Engine InnoDB doh_ppress_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB doh_ppress_subscriptions: Data: 0.02MB + Index: 0.09MB + Engine InnoDB doh_redirection_404: Data: 1.43MB + Index: 0.26MB + Engine MyISAM doh_redirection_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_redirection_items: Data: 0.03MB + Index: 0.04MB + Engine MyISAM doh_redirection_logs: Data: 0.10MB + Index: 0.02MB + Engine MyISAM doh_rg_form: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_rg_form_meta: Data: 0.18MB + Index: 0.00MB + Engine MyISAM doh_rg_form_view: Data: 0.05MB + Index: 0.03MB + Engine MyISAM doh_rg_incomplete_submissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_rg_infusionsoft: Data: 0.01MB + Index: 0.00MB + Engine MyISAM doh_rg_lead: Data: 0.06MB + Index: 0.01MB + Engine MyISAM doh_rg_lead_detail: Data: 0.15MB + Index: 0.17MB + Engine MyISAM doh_rg_lead_detail_long: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_rg_lead_meta: Data: 0.01MB + Index: 0.02MB + Engine MyISAM doh_rg_lead_notes: Data: 0.02MB + Index: 0.01MB + Engine MyISAM doh_rg_zapier: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_sgs_log_events: Data: 5.52MB + Index: 0.00MB + Engine InnoDB doh_sgs_log_visitors: Data: 11.52MB + Index: 0.00MB + Engine InnoDB doh_signups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM doh_termmeta: Data: 0.01MB + Index: 0.01MB + Engine MyISAM doh_terms: Data: 0.11MB + Index: 0.17MB + Engine MyISAM doh_term_relationships: Data: 0.47MB + Index: 0.84MB + Engine MyISAM doh_term_taxonomy: Data: 0.13MB + Index: 0.13MB + Engine MyISAM doh_toolset_associations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_toolset_post_guid_id: Data: 0.09MB + Index: 0.10MB + Engine MyISAM doh_toolset_relationships: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_toolset_type_sets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_usermeta: Data: 21.45MB + Index: 9.26MB + Engine MyISAM doh_users: Data: 0.84MB + Index: 0.61MB + Engine MyISAM doh_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB doh_wcpdf_packing_slip_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB doh_wcs_payment_retries: Data: 0.45MB + Index: 0.06MB + Engine MyISAM doh_wc_admin_notes: Data: 0.04MB + Index: 0.00MB + Engine MyISAM doh_wc_admin_note_actions: Data: 0.01MB + Index: 0.01MB + Engine MyISAM doh_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wc_customer_lookup: Data: 0.37MB + Index: 0.24MB + Engine MyISAM doh_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.05MB + Engine MyISAM doh_wc_order_product_lookup: Data: 0.90MB + Index: 0.77MB + Engine MyISAM doh_wc_order_stats: Data: 0.62MB + Index: 0.41MB + Engine MyISAM doh_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB doh_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB doh_wc_product_meta_lookup: Data: 0.02MB + Index: 0.04MB + Engine MyISAM doh_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB doh_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM doh_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wfBlockedIPLog: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wfBlocks7: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wfConfig: Data: 0.41MB + Index: 0.01MB + Engine MyISAM doh_wfCrawlers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wfFileChanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wfFileMods: Data: 3.25MB + Index: 0.46MB + Engine MyISAM doh_wfHits: Data: 0.39MB + Index: 0.07MB + Engine MyISAM doh_wfHoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wfIssues: Data: 0.02MB + Index: 0.01MB + Engine MyISAM doh_wfKnownFileList: Data: 1.79MB + Index: 0.19MB + Engine MyISAM doh_wfLiveTrafficHuman: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wfLocs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wfLogins: Data: 0.36MB + Index: 0.06MB + Engine MyISAM doh_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB doh_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB doh_wfNotifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wfPendingIssues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wfReverseCache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wfSNIPCache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wfStatus: Data: 0.07MB + Index: 0.03MB + Engine MyISAM doh_wfTrafficRates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wonderplugin_gallery: Data: 0.01MB + Index: 0.00MB + Engine MyISAM doh_woocommerce_exported_csv_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wpfb_gettwitter_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wpfb_post_templates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wpfb_reviews: Data: 0.17MB + Index: 0.01MB + Engine MyISAM doh_wpf_logging: Data: 5.52MB + Index: 0.17MB + Engine InnoDB doh_wpns_backup_report: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wpoj_campaigns: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wpoj_payments: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wr_contactform_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wr_contactform_form_pages: Data: 0.00MB + Index: 0.00MB + Engine MyISAM doh_wr_contactform_submission_data: Data: 0.00MB + Index: 0.01MB + Engine MyISAM doh_yoast_indexable: Data: 4.52MB + Index: 1.31MB + Engine InnoDB doh_yoast_indexable_hierarchy: Data: 0.20MB + Index: 0.27MB + Engine InnoDB doh_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB doh_yoast_primary_term: Data: 0.05MB + Index: 0.03MB + Engine InnoDB doh_yoast_prominent_words: Data: 0.13MB + Index: 0.13MB + Engine InnoDB doh_yoast_seo_links: Data: 0.36MB + Index: 0.09MB + Engine MyISAM doh_yoast_seo_meta: Data: 0.39MB + Index: 0.33MB + Engine MyISAM ### Post Type Counts ### acf: 1 aiosrs-schema: 1 amn_mi-lite: 1 amn_om: 1 astra_adv_header: 1 astra-advanced-hook: 8 attachment: 2482 boxzilla-box: 2 cartflows_flow: 2 cartflows_step: 4 coaches: 77 cookielawinfo: 2 cp_popups: 55 custom_css: 2 dd_layouts: 8 elementor_font: 1 elementor_library: 31 fl-builder-template: 338 fl-theme-layout: 11 jet-engine: 1 jet-popup: 6 jet-smart-filters: 1 memb_shortcodeblocks: 1 nav_menu_item: 15 nf_sub: 100 oembed_cache: 67 omapi: 2 page: 126 post: 365 product: 340 product_variation: 27 pys_event: 12 pys_fb_event: 7 revision: 4 scroll-triggered-box: 1 shop_coupon: 131 shop_order: 18889 shop_order_refund: 769 shop_subscription: 1786 smart_offers: 4 spt: 1 testimonials: 143 testimony: 4 view: 2 view-template: 6 wd_ip_lockout: 1784 wd_iplockout_log: 16790 wdf_scan_item: 3188 wp_global_styles: 1 wp-types-group: 4 wp-types-term-group: 1 wp-types-user-group: 1 wpgform: 2 wr_cf_post_type: 2 wr_cfsb_post_type: 2 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (34) ### Gravity Forms: by Gravity Forms – 2.6.4 AffiliateWP - Lifetime Commissions: by Sandhills Development LLC – 1.5 AffiliateWP - Recurring Referrals: by Sandhills Development LLC – 1.8 AffiliateWP: by Sandhills Development LLC – 2.7.4 AffiliateWP - Affiliate Area Shortcodes: by Sandhills Development LLC – 1.3 Astra Pro: by Brainstorm Force – 3.9.0 GDPR Cookie Consent: by WebToffee – 2.1.2 Yoast Duplicate Post: by Enrico Battocchi & Team Yoast – 4.5 Elementor Pro: by Elementor.com – 3.7.2 Elementor: by Elementor.com – 3.6.8 Gravity Forms Survey Add-On: by Gravity Forms – 3.7 JetElements For Elementor: by Crocoblock – 2.6.6 JetEngine: by Crocoblock – 3.0.2 JetPopup: by Crocoblock – 1.5.6 JetSmartFilters: by Crocoblock – 2.3.13 Login Logo: by Mark Jaquith – 0.10.2 PixelYourSite: by PixelYourSite – 9.1.1 Redirection: by John Godley – 5.3.0 SiteGround Optimizer: by SiteGround – 7.2.0 SiteGround Security: by SiteGround – 1.3.0 Ultimate Addons for Elementor: by Brainstorm Force – 1.36.8 URL Params: by Jeremy B. Shapiro – 2.3 User Switching: by John Blackbourn & contributors – 1.6.0 Username Changer: by Widgit Team – 3.2.2 WooCommerce Stripe Gateway: by WooCommerce – 6.5.0 WooCommerce PDF Invoices & Packing Slips: by WP Overnight – 3.0.0 WooCommerce Subscriptions: by WooCommerce – 4.4.0 WooCommerce: by Automattic – 6.7.0 Yoast SEO: by Team Yoast – 19.4 WP Fusion - Enhanced Ecommerce Addon: by Very Good Plugins – 1.18.6 WP Fusion - Logins Addon: by Very Good Plugins – 1.2.5 WP Fusion: by Very Good Plugins – 3.40.17 Schema Pro: by Brainstorm Force – 2.7.3 ProfilePress: by ProfilePress Membership Team – 4.0.0 ### Inactive Plugins (0) ### ### Settings ### API Enabled: ✔ Force SSL: ✔ Currency: USD ($) Currency Position: left_space Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) Connected to WooCommerce.com: ✔ Enforce Approved Product Download Directories: – ### WC Pages ### Shop base: #300565 - /shop/ Cart: #300557 - /cart/ Checkout: #300567 - /checkout/ My account: #300522 - /my-account/ Terms and conditions: #3598 - /terms-and-conditions/ ### Theme ### Name: [SITEURL] Child Theme Version: 1.0.0 Author URL: https://[SITEURL].com Child Theme: ✔ Parent Theme Name: Astra Parent Theme Version: 3.9.1 Parent Theme Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme WooCommerce Support: ✔ ### Templates ### Overrides: – ### Subscriptions ### WCS_DEBUG: ✔ No Subscriptions Mode: ✔ Live Subscriptions Live URL: https://[SITEURL].com Subscription Statuses: wc-active: 177 wc-expired: 266 wc-pending-cancel: 27 wc-on-hold: 275 wc-cancelled: 1041 WooCommerce Account Connected: ✔ Yes Active Product Key: ✔ Yes Custom Retry Rules: ✔ No Custom Retry Rule Class: ✔ No Custom Raw Retry Rule: ✔ No Custom Retry Rule: ✔ No Retries Migration Status: ✔ Completed Report Cache Enabled: ❌ No Cache Update Failures: ❌ 3 failure ### Store Setup ### Country / State: United States (US) — Nevada ### Subscriptions by Payment Gateway ### other: wc-pending-cancel: 1 PayPal Standard: wc-active: 52 wc-cancelled: 356 wc-expired: 65 wc-on-hold: 46 wc-pending-cancel: 7 Stripe: wc-active: 125 wc-cancelled: 680 wc-expired: 201 wc-on-hold: 229 wc-pending-cancel: 16 ### Payment Gateway Support ### Stripe: products refunds tokenization add_payment_method subscriptions subscription_cancellation subscription_suspension subscription_reactivation subscription_amount_changes subscription_date_changes subscription_payment_method_change subscription_payment_method_change_customer subscription_payment_method_change_admin multiple_subscriptions PayPal Standard: subscription_payment_method_change_customer subscription_payment_method_change_admin subscription_amount_changes subscription_date_changes multiple_subscriptions subscription_payment_method_delayed_change subscriptions subscription_cancellation subscription_suspension subscription_reactivation products refunds PayPal Reference Transactions Enabled: ✔ Yes ### 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-29 15:56:49 -04:00 Options: ✔ Notes: 82 Onboarding: completed ### Action Scheduler ### Canceled: 5 Oldest: 2022-07-15 16:57:43 -0400 Newest: 2022-07-28 08:40:39 -0400 Complete: 1,581 Oldest: 2022-06-27 16:31:51 -0400 Newest: 2022-07-28 16:28:13 -0400 Failed: 27 Oldest: 2018-08-31 16:11:30 -0400 Newest: 2020-04-07 16:17:07 -0400 Pending: 209 Oldest: 2022-07-28 17:16:16 -0400 Newest: 2023-07-26 17:20:26 -0400 ### Status report information ### Generated at: 2022-07-28 16:29:31 -04:00 ` ```
kaushikasomaiya commented 2 years ago

5432676-zen

Following plugins were found common

Looks like coming from SiteGround Optimizer

kaushikasomaiya commented 2 years ago

5432486-zen

Wqrld commented 2 years ago

Can confirm this issue without wp-fusion or siteground. I am unable to login to wp-admin and this same error showed up in the logs.

Wqrld commented 2 years ago

If i'd have to make a wild guess i'd look at https://github.com/woocommerce/woocommerce-gateway-stripe/commit/c1fc945489db06be9925166269591d05ff2b9adf#diff-e1e5e9b442c2b5d4105edbdc3787651333c1923dd623677025f72d25796900d6R664

kaushikasomaiya commented 2 years ago

@Wqrld I guess 5432486-zen is without WP fusion or Siteground. In fact, they are using WooCommerce Checkout Field Editor, which triggered the error.

seffect commented 2 years ago

Fixed it by adding $this->get_main_stripe_gateway(); to line 662 in woocommerce-gateway-stripe.php as suggested in the code comment for the stripe_gateway() function declaration, probably should have been there to begin with?

54 /* 655 Move the email field to the top of the Checkout page. 656 657 @param array $fields WooCommerce checkout fields. 658 659 @return array WooCommerce checkout fields. 660 */ 661 public function checkout_update_email_field_priority( $fields ) { 662 $this->get_main_stripe_gateway(); 663 $is_link_enabled = in_array( 664 WC_Stripe_UPE_Payment_Method_Link::STRIPE_ID, 665 $this->stripe_gateway->get_upe_enabled_payment_method_ids(), 666 true 667 ); 668 669 if ( $is_link_enabled ) { 670 // Update the field priority. 671 $fields['billing_email']['priority'] = 1; 672

ABAbdulelah commented 2 years ago

hi all i am still having the same issues i switch off those plugins:

can someone help pleases!

ABAbdulelah commented 2 years ago

i find the problem which Payment Plugins for Stripe WooCommerce Version 3.3.24

kaushikasomaiya commented 2 years ago

Reported on forums: https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-a-member-function-get_upe_enabled_payme/

Wqrld commented 2 years ago

@ABAbdulelah Apply my change from patch https://github.com/woocommerce/woocommerce-gateway-stripe/pull/2397/commits/0741b991fbe018728954bc364a004d5c8486a0bf That should fix the issue until an official update comes out.

kaushikasomaiya commented 2 years ago

25173907-hc

kaushikasomaiya commented 2 years ago

Forum: https://wordpress.org/support/topic/errors-causing-site-to-not-function-correctly/

wyter commented 2 years ago

Also reported here - https://wordpress.org/support/topic/php-fatal-error-critical-uncaught-error-call-to-a-member-function-get_upe_enab/

jomoweb commented 2 years ago

I applied this hotfix that worked for me until bug is resolved. @Wqrld has an even simpler fix posted above.

Problem appears to be that stripe_gateway can be null.

Is the purpose for the triggering method to move the email field to the top of the checkout page? Curious why that would be needed, especially with so many users who customize their checkout pages?

It didn't seem apparent that this is a plugin conflict bug. It looked like this method was introduced in the most recent version and maybe not fully Q/A'd?

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 ); }

wpniall commented 2 years ago

Another report in 5433708-zen

design-getyourmobi commented 2 years ago

We are experiencing the same issue, the only plugin we have in common with the rest that have commented is Yoast SEO 19.4.

laurendavissmith commented 2 years ago

I'm one of the developers here at WooCommerce and wanted to pop in and apologize for the rough rollout on this one. We have people including myself looking into these issues and working on a fix. Unfortunately, it may be a bit slower given the weekend but we're working to get a patch release out for this ASAP.

RFMENNECIER commented 2 years ago

thanks for the answer. be aware that releasing such version is freezing entirely our business and this should never happen. we are waiting for this fix to earn money and this will as well affect credibility for our customers. I lost as well réservations today because the customers were not able to finalize the order. this is really affecting our business and break the vision customers or prospects may have from us. this has strong consequences while some poeple are enjoying their weekend ! -------- Message d'origine --------De : Lauren Smith @.> Date : 30/07/2022 23:35 (GMT+01:00) À : woocommerce/woocommerce-gateway-stripe @.> Cc : Subscribed @.***> Objet : Re: [woocommerce/woocommerce-gateway-stripe] [6.5.0] Fatal Errors Related to get_upe_enabled_payment_method_ids() (Issue #2394) I'm one of the developers here at WooCommerce and wanted to pop in and apologize for the rough rollout on this one. We have people including myself looking into these issues and working on a fix. Unfortunately, it may be a bit slower given the weekend but we're working to get a patch release out for this ASAP.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

yukikatayama commented 2 years ago

Noting here that 5436225-zen is getting similar error with Stripe + Follow Up Emails + a plugin called Hev Modifiers. In this case a fatal error was logged when a FUE did not send at its scheduled time, nor did any action occur when trying to manually send it

Markup 2022-07-30 at 18 27 13

Here's the error log with URL redacted:

2022-07-30T15:20:43+00:00 CRITICAL Uncaught Error: Call to a member function get_upe_enabled_payment_method_ids() on null in /www/dev2apsf_688/public/wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php:664
Stack trace:
#0 /www/[SITEURL]/public/wp-includes/class-wp-hook.php(307): WC_Stripe->checkout_update_email_field_priority(Array)
#1 /www/[SITEURL]/public/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array)
#2 /www/[SITEURL]/public/wp-content/plugins/hev-modifiers/hev-modifiers.php(255): apply_filters('woocommerce_bil...', NULL)
#3 /www/[SITEURL]/public/wp-includes/class-wp-hook.php(307): fue_register_variable_replacements(Object(FUE_Sending_Email_Variables), Array, Object(FUE_Email), Object(FUE_Sending_Queue_Item))
#4 /www/[SITEURL]/public/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
#5 /www/[SITEURL]/public/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#6 /www/[SITEURL]/public/wp-content/plugins/woocommerce-follow-up-emails/includes/sending/class-fue-sending-mailer.php(959): do_action('fue_before_vari...', Object(FUE_Sending_Email_Variables), Array, Object(FUE_Email), Object(FUE_Sending_Queue_Item))
#7 /www/[SITEURL]/public/wp-content/plugins/woocommerce-follow-up-emails/includes/sending/class-fue-sending-mailer.php(211): FUE_Sending_Mailer->process_variable_replacements(Array)
#8 /www/[SITEURL]/public/wp-content/plugins/woocommerce-follow-up-emails/includes/sending/class-fue-sending-scheduler.php(58): FUE_Sending_Mailer->send_queue_item(Object(FUE_Sending_Queue_Item))
#9 /www/[SITEURL]/public/wp-includes/class-wp-hook.php(307): FUE_Sending_Scheduler::send_scheduled_emails(2353)
#10 /www/[SITEURL]/public/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
#11 /www/[SITEURL]8/public/wp-includes/plugin.php(524): WP_Hook->do_action(Array)
#12 /www/[SITEURL]8/public/wp-content/plugins/woocommerce/packages/action-scheduler/classes/actions/ActionScheduler_Action.php(22): do_action_ref_array('sfn_followup_em...', Array)
#13 /www/[SITEURL]/public/wp-content/plugins/woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php(65): ActionScheduler_Action->execute()
#14 /www/[SITEURL]/public/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php(162): ActionScheduler_Abstract_QueueRunner->process_action(82194, 'Async Request')
#15 /www/[SITEURL]/public/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php(132): ActionScheduler_QueueRunner->do_batch(100, 'Async Request')
#16 /www/[SITEURL]/public/wp-includes/class-wp-hook.php(307): ActionScheduler_QueueRunner->run('Async Request')
#17 /www/[SITEURL]/public/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
#18 /www/[SITEURL]/public/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#19 /www/[SITEURL]/public/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_AsyncRequest_QueueRunner.php(52): do_action('action_schedule...', 'Async Request')
#20 /www/[SITEURL]/public/wp-content/plugins/woocommerce/includes/libraries/wp-async-request.php(147): ActionScheduler_AsyncRequest_QueueRunner->handle()
#21 /www/[SITEURL]/public/wp-includes/class-wp-hook.php(307): WP_Async_Request->maybe_handle('')
#22 /www/[SITEURL]/public/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
#23 /www/[SITEURL]/public/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#24 /www/[SITEURL]/public/wp-admin/admin-ajax.php(187): do_action('wp_ajax_as_asyn...')
#25 {main}
  thrown in /www/[SITEURL]/public/wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php on line 664
therealgilles commented 2 years ago

Getting the same issue when my existing checkout page is queried by GatsbyJS (not a real blocked for me). Comes from this code:

      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
        );

where $this->stripe_gateway is null.

I also use WC Checkout Field Editor and WC One Page Checkout.

therealgilles commented 2 years ago

Stack trace if it may help:

{
  "errors": [
    {
      "debugMessage": "Call to a member function get_upe_enabled_payment_method_ids() on null",
      "message": "Internal server error",
      "extensions": {
        "category": "internal"
      },
      "locations": [
        {
          "line": 4,
          "column": 7
        }
      ],
      "path": ["pages", "nodes", 0, "content"],
      "trace": [
        {
          "file": ".../public_html/wp-includes/class-wp-hook.php",
          "line": 309,
          "call": "WC_Stripe::checkout_update_email_field_priority(array(3))"
        },
        {
          "file": ".../public_html/wp-includes/plugin.php",
          "line": 191,
          "call": "WP_Hook::apply_filters(array(3), array(2))"
        },
        {
          "file": ".../public_html/wp-content/plugins/woocommerce/includes/class-wc-countries.php",
          "line": 1616,
          "function": "apply_filters('woocommerce_billing_fields', array(9), 'US')"
        },
        {
          "file": ".../public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php",
          "line": 228,
          "call": "WC_Countries::get_address_fields('US', 'billing_')"
        },
        {
          "file": ".../public_html/wp-content/themes/.../woocommerce/checkout/form-checkout.php",
          "line": 43,
          "call": "WC_Checkout::get_checkout_fields()"
        },
        {
          "file": ".../public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php",
          "line": 345,
          "function": "include('.../public_html/wp-content/themes/.../woocommerce/checkout/form-checkout.php')"
        },
        {
          "file": ".../public_html/wp-content/plugins/woocommerce-one-page-checkout/woocommerce-one-page-checkout.php",
          "line": 1597,
          "function": "wc_get_template('checkout/form-checkout.php', array(1))"
        },
        {
          "file": ".../public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php",
          "line": 72,
          "call": "PP_One_Page_Checkout::one_page_checkout_shortcode(array(2))"
        },
        {
          "file": ".../public_html/wp-content/plugins/woocommerce-one-page-checkout/woocommerce-one-page-checkout.php",
          "line": 1542,
          "call": "WC_Shortcodes::shortcode_wrapper('PP_One_Page_Checkout::one_page_checkout_shortcode', array(2), array(3))"
        },
        {
          "file": ".../public_html/wp-includes/shortcodes.php",
          "line": 356,
          "call": "PP_One_Page_Checkout::get_one_page_checkout(array(2), (empty string), 'woocommerce_one_page_checkout')"
        }
      ]
    }
  ]
}
rubileandro commented 2 years ago

Another report in 5435017-zen.

kaushikasomaiya commented 2 years ago

5440323-zen

nawaz0705 commented 2 years ago

5439693-zen

nawaz0705 commented 2 years ago

Another report on forum: https://wordpress.org/support/topic/fatal-error-when-i-try-to-generate-invoice/

nawaz0705 commented 2 years ago

5440450-zen

zoemyers commented 2 years ago

5441178-zen None of the referenced plugins are installed, but the merchant does have both WooCommerce Stripe and Payment Plugins for Stripe WooCommerce: by Payment Plugins support@paymentplugins.com – 3.3.24

csmcneill commented 2 years ago

36280094-hc

apmwebdev commented 2 years ago

33949676-hc

melek commented 2 years ago

36283762-hc

apmwebdev commented 2 years ago

11197616-hc

phillipcornwell commented 2 years ago

5442429-zen 5442177-zen

amElnagdy commented 2 years ago

It was reported here at 5446363-zen - Asking the merchant to update to 6.5.1