WooCommerce Payments plugin giving critical error
-
Hello there,
I have a Wp+WooCommerce installation and whenever I click on an image of my store to “read moore”, I get a critical error with a blanque page. I’ve done some testing until I realized that the issue is caused by WooCommerce Payments plugin.
Can anyone please help me to solve this issue?
Thanks in advance
Best regards
The page I need help with: [log in to see the link]
-
Hello again,
I discovered something else while trying to complete the installation of other needed plugins. Once I installed jetpack and jetpack boost, doing the same thing (clicking on a product image) it gave me an HTTP 500 error. Could it be a DB problem?
Thanks again
Hi there,
Thanks for reaching out.
Can you please go to WooCommerce > Status > Logs and share any recent logs available?
Let me know, and I’ll be glad to check further.
Best,
Sure! Here it is:
### WordPress Environment ### WordPress address (URL): https://www.nordicwalkingshop.it/wpwoo Site address (URL): https://www.nordicwalkingshop.it/wpwoo 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: 1 GB WP Debug Mode: ? WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 8.1.8 PHP Post Max Size: 128 MB PHP Time Limit: 900 PHP Max Input Vars: 1000 cURL Version: 7.76.1 OpenSSL/1.0.2k-fips SUHOSIN Installed: – MySQL Version: 5.7.36-39-log Max Upload Size: 128 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: wpbl_ Total Database Size: 38.02MB Database Data Size: 21.92MB Database Index Size: 16.10MB wpbl_woocommerce_sessions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wpbl_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wpbl_woocommerce_order_items: Data: 0.08MB + Index: 0.05MB + Engine InnoDB wpbl_woocommerce_order_itemmeta: Data: 0.31MB + Index: 0.41MB + Engine InnoDB wpbl_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wpbl_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpbl_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpbl_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_actionscheduler_actions: Data: 0.05MB + Index: 0.11MB + Engine InnoDB wpbl_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_comments: Data: 0.06MB + Index: 0.09MB + Engine InnoDB wpbl_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB wpbl_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpbl_gla_shipping_rates: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpbl_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_lecm_rewrite: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wpbl_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpbl_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpbl_mailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_mailpoet_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpbl_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_mailpoet_newsletter_templates: Data: 3.45MB + Index: 0.00MB + Engine InnoDB wpbl_mailpoet_scheduled_tasks: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_mailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpbl_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpbl_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wpbl_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpbl_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wpbl_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_mailpoet_subscribers: Data: 0.36MB + Index: 0.58MB + Engine InnoDB wpbl_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_mailpoet_subscriber_segment: Data: 0.22MB + Index: 0.17MB + Engine InnoDB wpbl_mailpoet_subscriber_tag: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_mailpoet_tags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_options: Data: 4.22MB + Index: 0.13MB + Engine InnoDB wpbl_postmeta: Data: 3.52MB + Index: 5.03MB + Engine InnoDB wpbl_posts: Data: 1.52MB + Index: 0.55MB + Engine InnoDB wpbl_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_term_relationships: Data: 0.11MB + Index: 0.08MB + Engine InnoDB wpbl_term_taxonomy: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wpbl_trp_dictionary_it_it_en_us: Data: 0.11MB + Index: 0.11MB + Engine InnoDB wpbl_trp_gettext_en_us: Data: 0.36MB + Index: 0.42MB + Engine InnoDB wpbl_trp_gettext_it_it: Data: 0.38MB + Index: 0.36MB + Engine InnoDB wpbl_trp_original_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpbl_trp_original_strings: Data: 0.09MB + Index: 0.08MB + Engine InnoDB wpbl_usermeta: Data: 4.52MB + Index: 5.03MB + Engine InnoDB wpbl_users: Data: 0.28MB + Index: 0.39MB + Engine InnoDB wpbl_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wpbl_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpbl_wc_customer_lookup: Data: 0.28MB + Index: 0.22MB + Engine InnoDB wpbl_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wpbl_wc_order_stats: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wpbl_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpbl_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_wc_product_meta_lookup: Data: 0.17MB + Index: 0.36MB + Engine InnoDB wpbl_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpbl_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpbl_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpbl_wpmm_subscribers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 848 customize_changeset: 2 language_switcher: 2 mailpoet_page: 1 page: 7 post: 3 product: 331 product_variation: 1218 shop_order: 224 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (11) ### Akismet Anti-Spam: by Automattic – 5.0 Aruba HiSpeed Cache: by Aruba.it – 1.1.2 Google Listings and Ads: by WooCommerce – 2.0.3 MailPoet 3 (New): by MailPoet – 3.94.0 TranslatePress - Multilingual: by Cozmoslabs Razvan Mocanu Madalin Ungureanu Cristophor Hurduban – 2.3.3 WooCommerce Payments: by Automattic – 4.5.1 WooCommerce PayPal Payments: by WooCommerce – 1.9.1 WooCommerce Shipping & Tax: by WooCommerce – 1.26.3 WooCommerce: by Automattic – 6.7.0 WP File Manager: by mndpsingh287 – 7.1.6 WP Maintenance Mode & Coming Soon: by Themeisle – 2.4.7 ### Inactive Plugins (4) ### Hello Dolly: by Matt Mullenweg – 1.7.2 Jetpack: by Automattic – 11.2 Jetpack Boost: by Automattic - Website Speed and Performance team – 1.5.1 WooCommerce Weight Based Shipping: by weightbasedshipping.com – 5.3.23 ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: right_space Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) 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) 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: #7 - /shop/ Cart: #8 - /cart/ Checkout: #9 - /checkout/ My account: #10 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Storefront Version: 4.1.2 Author URL: https://woocommerce.com/ Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: – ### Subscriptions ### WCS_DEBUG: ? No Subscriptions Mode: ? Live Subscriptions Live URL: https://www.nordicwalkingshop.it/wpwoo Subscription Statuses: – WooCommerce Account Connected: ? No ### Store Setup ### Country / State: Italy — Pordenone ### Payment Gateway Support ### WooCommerce Payments: products refunds multiple_subscriptions subscription_cancellation subscription_payment_method_change_admin subscription_payment_method_change_customer subscription_payment_method_change subscription_reactivation subscription_suspension subscriptions gateway_scheduled_payments tokenization add_payment_method PayPal: refunds ### WooCommerce PayPal Payments ### Onboarded: ? Shop country code: IT WooCommerce currency supported: ? PayPal card processing available in country: ? Pay Later messaging available in country: ? Webhook status: – Vault enabled: ? Logging enabled: – Reference Transactions: – Used PayPal Checkout plugin: – ### 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-08-10 14:20:18 +00:00 Options: ? Notes: 56 Onboarding: completed ### WooCommerce Payments ### Version: 4.5.1 Connected to WPCOM: Yes Blog ID: 209408429 Account ID: acct_1LT0O92HynD4ah9t ### Action Scheduler ### Complete: 66 Oldest: 2022-07-15 14:20:24 +0000 Newest: 2022-08-09 14:23:35 +0000 Pending: 2 Oldest: 2022-08-10 09:04:27 +0000 Newest: 2022-08-10 09:04:27 +0000 ### Status report information ### Generated at: 2022-08-09 15:55:11 +00:00
Hi @enricolino
Thanks for providing your status report, that’s a big help in understanding what you have running on your site.
In this case we’d like to ask you to check for any WooCommerce Payment, or Critical/Fatal Errors that have been logged in WooCommerce since this issue occurred. To do this could you please head to WooCommerce > Status > Logs, and hit the drop-down on the right to see what is available currently?
Once you have please copy the content of the logs to share with us, but please be sure to redact any personal information before posting them here.
Thanks!
Hello @snaacks,
there are a few critical errors in the log, actually. I selected the first of the list and I paste this one for now:
2022-08-04T13:51:13+00:00 CRITICAL #!trpst#trp-gettext data-trpgettextoriginal=3415#!trpen#Uncaught TypeError: Unsupported operand types: string - string in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php:268 Stack trace: #0 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php(656): WC_Payments_Payment_Request_Button_Handler->get_product_data() #1 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): WC_Payments_Payment_Request_Button_Handler->scripts() #2 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #3 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #4 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/script-loader.php(2156): do_action() #5 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts() #6 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #7 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #8 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(3042): do_action() #9 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/themes/storefront/header.php(18): wp_head() #10 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(770): require_once('...') #11 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(716): load_template() #12 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(48): locate_template() #13 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce/templates/single-product.php(22): get_header() #14 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template-loader.php(106): include('...') #15 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-blog-header.php(19): require_once('...') #16 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/index.php(17): require('...') #17 {main} thrown in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php on line 268#!trpst#/trp-gettext#!trpen# 2022-08-04T13:51:28+00:00 CRITICAL #!trpst#trp-gettext data-trpgettextoriginal=3415#!trpen#Uncaught TypeError: Unsupported operand types: string - string in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php:268 Stack trace: #0 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php(656): WC_Payments_Payment_Request_Button_Handler->get_product_data() #1 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): WC_Payments_Payment_Request_Button_Handler->scripts() #2 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #3 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #4 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/script-loader.php(2156): do_action() #5 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts() #6 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #7 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #8 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(3042): do_action() #9 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/themes/storefront/header.php(18): wp_head() #10 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(770): require_once('...') #11 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(716): load_template() #12 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(48): locate_template() #13 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce/templates/single-product.php(22): get_header() #14 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template-loader.php(106): include('...') #15 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-blog-header.php(19): require_once('...') #16 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/index.php(17): require('...') #17 {main} thrown in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php on line 268#!trpst#/trp-gettext#!trpen# 2022-08-04T13:51:43+00:00 CRITICAL #!trpst#trp-gettext data-trpgettextoriginal=3415#!trpen#Uncaught TypeError: Unsupported operand types: string - string in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php:268 Stack trace: #0 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php(656): WC_Payments_Payment_Request_Button_Handler->get_product_data() #1 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): WC_Payments_Payment_Request_Button_Handler->scripts() #2 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #3 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #4 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/script-loader.php(2156): do_action() #5 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts() #6 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #7 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #8 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(3042): do_action() #9 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/themes/storefront/header.php(18): wp_head() #10 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(770): require_once('...') #11 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(716): load_template() #12 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(48): locate_template() #13 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce/templates/single-product.php(22): get_header() #14 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template-loader.php(106): include('...') #15 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-blog-header.php(19): require_once('...') #16 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/index.php(17): require('...') #17 {main} thrown in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php on line 268#!trpst#/trp-gettext#!trpen# 2022-08-04T13:53:29+00:00 CRITICAL Uncaught TypeError: Unsupported operand types: string - string in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php:268 Stack trace: #0 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php(656): WC_Payments_Payment_Request_Button_Handler->get_product_data() #1 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): WC_Payments_Payment_Request_Button_Handler->scripts() #2 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #3 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #4 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/script-loader.php(2156): do_action() #5 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts() #6 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #7 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #8 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(3042): do_action() #9 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/themes/storefront/header.php(18): wp_head() #10 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(770): require_once('...') #11 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(716): load_template() #12 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(48): locate_template() #13 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce/templates/single-product.php(22): get_header() #14 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template-loader.php(106): include('...') #15 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-blog-header.php(19): require_once('...') #16 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/index.php(17): require('...') #17 {main} thrown in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php alla riga 268 2022-08-04T13:54:48+00:00 CRITICAL Uncaught TypeError: Unsupported operand types: string - string in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php:268 Stack trace: #0 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php(656): WC_Payments_Payment_Request_Button_Handler->get_product_data() #1 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): WC_Payments_Payment_Request_Button_Handler->scripts() #2 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #3 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #4 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/script-loader.php(2156): do_action() #5 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts() #6 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #7 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #8 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(3042): do_action() #9 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/themes/storefront/header.php(18): wp_head() #10 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(770): require_once('...') #11 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(716): load_template() #12 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(48): locate_template() #13 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce/templates/single-product.php(22): get_header() #14 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template-loader.php(106): include('...') #15 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-blog-header.php(19): require_once('...') #16 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/index.php(17): require('...') #17 {main} thrown in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php alla riga 268 2022-08-04T14:52:30+00:00 CRITICAL Uncaught TypeError: Unsupported operand types: string - string in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php:268 Stack trace: #0 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php(656): WC_Payments_Payment_Request_Button_Handler->get_product_data() #1 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): WC_Payments_Payment_Request_Button_Handler->scripts() #2 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #3 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #4 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/script-loader.php(2156): do_action() #5 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts() #6 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #7 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #8 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(3042): do_action() #9 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/themes/storefront/header.php(18): wp_head() #10 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(770): require_once('...') #11 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(716): load_template() #12 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(48): locate_template() #13 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce/templates/single-product.php(22): get_header() #14 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template-loader.php(106): include('...') #15 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-blog-header.php(19): require_once('...') #16 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/index.php(17): require('...') #17 {main} thrown in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php alla riga 268 2022-08-04T14:58:22+00:00 CRITICAL Uncaught TypeError: Unsupported operand types: string - string in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php:268 Stack trace: #0 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php(656): WC_Payments_Payment_Request_Button_Handler->get_product_data() #1 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): WC_Payments_Payment_Request_Button_Handler->scripts() #2 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #3 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #4 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/script-loader.php(2156): do_action() #5 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts() #6 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #7 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #8 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(3042): do_action() #9 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/themes/storefront/header.php(18): wp_head() #10 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(770): require_once('...') #11 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(716): load_template() #12 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(48): locate_template() #13 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce/templates/single-product.php(22): get_header() #14 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template-loader.php(106): include('...') #15 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-blog-header.php(19): require_once('...') #16 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/index.php(17): require('...') #17 {main} thrown in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php alla riga 268 2022-08-04T14:58:30+00:00 CRITICAL Uncaught TypeError: Unsupported operand types: string - string in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php:268 Stack trace: #0 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php(656): WC_Payments_Payment_Request_Button_Handler->get_product_data() #1 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): WC_Payments_Payment_Request_Button_Handler->scripts() #2 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #3 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #4 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/script-loader.php(2156): do_action() #5 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts() #6 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #7 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #8 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(3042): do_action() #9 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/themes/storefront/header.php(18): wp_head() #10 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(770): require_once('...') #11 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(716): load_template() #12 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(48): locate_template() #13 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce/templates/single-product.php(22): get_header() #14 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template-loader.php(106): include('...') #15 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-blog-header.php(19): require_once('...') #16 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/index.php(17): require('...') #17 {main} thrown in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php alla riga 268
I hope it helps
Thanks
Hi @enricolino
Thank you for providing that log that’s a big help. Given that we’re seeing errors of this nature I think it would be prudent to check for possible conflicts that may be resulting in the issues you’re seeing.
The best way to determine if the issue is being caused by a theme and/or plugin is to:
1. Temporarily switch your theme to [Storefront](https://woocommerce.com/storefront/?aff=10486&cid=1131038) or [Twenty Twenty](https://www.ads-software.com/themes/twentytwenty/) theme.
2. Try to reproduce the problem.?
If the problem is resolved, it’s a theme conflict. If not, continue to the next steps.
3. Temporarily deactivate all plugins except WooCommerce. You can do this manually or use a plugin to help.
4. Try to reproduce the problem again. If the problem is resolved, it’s a plugin conflict. To figure out which plugin is causing the problem, continue to the next step.
5. Reactivate your other plugins one by one, testing after each, until you find the one causing conflict.For more detailed instructions, check out [How to test for plugin and theme conflicts](https://docs.woocommerce.com/document/how-to-test-for-conflicts/).
Please let us know how that goes.
Hello again @snaacks,
I already did all that, as I wrote on my first post. I used both themes without issues and I did inactivate all plugins checking which one was causing the error. WooCommerce Payments is the one causing critical error.
I also had new issues with Jetpack and Jetpack boost, which was giving an HTTP 500 error, but this is another step, for I could avoid Jetpack, but definitely I can’t go without Woocommerce Payments. I truly hope to find a solution :(.Thanks again
Hi @enricolino
Thanks for the information, I do see you mentioned you had done some testing but am glad to know a conflict test was performed.
Since you found WooCommerce Payments appears to be the culprit, can you please set the theme to Storefront, disable ALL plugins aside from WooCommerce and WooCommerce Payments, then reproduce the error.
Once you’ve done this please send us a screenshot of the error and please check for any new logs generated at WooCommerce > status > logs. Since we know the issue appears to be with WooCommerce Payments the issue should still occur in this state and removing the other items temporarily will help limit actions on the site and hopefully target the issue for logging.
Once that’s done please let us know and we’ll be glad to help further!
Hello @snaacks,
I did what you suggested. I disabled all plugins except the two mentioned and I left the Storefront theme active. This is the the error log I got:
2022-08-12T08:11:20+00:00 CRITICAL Uncaught TypeError: Unsupported operand types: string - string in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php:268 Stack trace: #0 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php(656): WC_Payments_Payment_Request_Button_Handler->get_product_data() #1 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): WC_Payments_Payment_Request_Button_Handler->scripts() #2 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #3 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #4 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/script-loader.php(2156): do_action() #5 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts() #6 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #7 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/plugin.php(476): WP_Hook->do_action() #8 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(3042): do_action() #9 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/themes/storefront/header.php(18): wp_head() #10 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(770): require_once('...') #11 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template.php(716): load_template() #12 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/general-template.php(48): locate_template() #13 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce/templates/single-product.php(22): get_header() #14 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-includes/template-loader.php(106): include('...') #15 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-blog-header.php(19): require_once('...') #16 /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/index.php(17): require('...') #17 {main} thrown in /web/htdocs/www.nordicwalkingshop.it/home/wpwoo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php on line 268
Thanks for the effort helping me
Hi @enricolino,
Thanks for sharing the latest logs with us.
This forum is for WooCommerce core support and your report is about WooCommerce Payments which is a different plugin that has a dedicated support forum.
That said, it appears we’re unable to reach a solution in the forums so please contact us at WooCommerce.com > My Account > Support.
You may need to log into your WooCommerce.com account before you can access that page.
Also, don’t forget to share your latest System Status Report and include a link to this forum thread, so that we can keep track of what’s already been done. The information included will help our support team narrow down the issue much quicker.
Thanks!
- The topic ‘WooCommerce Payments plugin giving critical error’ is closed to new replies.