I have disabled the square payment gateway to enable my website WooCommerce products to load. I am using PayPal and Stripe payment gateways. The recent update to Square plugin triggered the error below on all product pages.
Here is the error from the WooCommerce log file: 2024-02-21T01:24:09+00:00 Critical Uncaught TypeError: Unsupported operand types: int * string in /home1/elnimco1/public_html/veloharmony/wp-content/plugins/woocommerce-square/includes/Gateway/Digital_Wallet.php:461 CONTEXT: {“error”:{“type”:1,”file”:”\/home1\/elnimco1\/public_html\/veloharmony\/wp-content\/plugins\/woocommerce-square\/includes\/Gateway\/Digital_Wallet.php”,”line”:461},”backtrace”:[“”,”#0 \/home1\/elnimco1\/public_html\/veloharmony\/wp-content\/plugins\/woocommerce-square\/includes\/Gateway\/Digital_Wallet.php(382): WooCommerce\\Square\\Gateway\\Digital_Wallet->get_product_payment_request(58987)”,”#1 \/home1\/elnimco1\/public_html\/veloharmony\/wp-content\/plugins\/woocommerce-square\/includes\/Gateway\/Digital_Wallet.php(132): WooCommerce\\Square\\Gateway\\Digital_Wallet->get_payment_request_for_context(‘product’)”,”#2 \/home1\/elnimco1\/public_html\/veloharmony\/wp-includes\/class-wp-hook.php(324): WooCommerce\\Square\\Gateway\\Digital_Wallet->init(Object(WP))”,”#3 \/home1\/elnimco1\/public_html\/veloharmony\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)”,”#4 \/home1\/elnimco1\/public_html\/veloharmony\/wp-includes\/plugin.php(565): WP_Hook->do_action(Array)”,”#5 \/home1\/elnimco1\/public_html\/veloharmony\/wp-includes\/class-wp.php(830): do_action_ref_array(‘wp’, Array)”,”#6 \/home1\/elnimco1\/public_html\/veloharmony\/wp-includes\/functions.php(1336): WP->main(”)”,”#7 \/home1\/elnimco1\/public_html\/veloharmony\/wp-blog-header.php(16): wp()”,”#8 \/home1\/elnimco1\/public_html\/veloharmony\/index.php(17): require(‘\/home1\/elnimco1…’)”,”#9 {main}”,”thrown”]}
