• Resolved chiefsson

    (@chiefsson)


    2025-05-22T07:28:25+00:00 Critical Uncaught TypeError: Unsupported operand types: int * string in /home/customer/www/chiefsson.com.au/public_html/wp-content/plugins/woocommerce-square/includes/Gateway/Digital_Wallet.php:462 

    The critical error was happening when trying to access Yith gift cards and site would return a critical system error has occurred. The YITH support team have looked and advised that it is this plugin causing the error – when I deactivated this plugin the critical error has disappeared. But of course I now have no payment options!!

    I see that this critical error has been reported in other threads – A fast response would be appreciated.

    Securely accept payments, synchronize sales, and seamlessly manage inventory and product data between WooCommerce and Square POS.

    Version 4.9.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter chiefsson

    (@chiefsson)

    WordPress Version 6.8.1

    PHP 8.2.28 (Supports 64bit values)

    WooCommerce 9.8.5

    Woo Square 4.9.1 ( i have deleted and re downloaded plugin and straight away – crictal site error)

    • This reply was modified 1 year ago by chiefsson.
    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for providing more information about the issue. With thousands of plugins available, we cannot guarantee compatibility with all of them. However, please note that this plugin is specifically created to work with WooCommerce, so it should function smoothly within that environment.

    just to verify, have you tried using the built-in gift card feature offered by WooCommerce Square?

    If not, for testing purposes, could you please deactivate the YITH Gift Card plugin and try using the built-in gift card feature instead? For more details, you can refer to this guide:
    https://woocommerce.com/document/woocommerce-square/payment-settings/#enabling-square-gift-cards

    If you prefer not to use the built-in gift card feature, I would suggest, for testing purposes, trying a different gift card plugin to see if you still encounter the same issue.

    Thank you for your cooperation and understanding

    Plugin Support Feten L. a11n

    (@fetenlakhal)

    Hi there,

    Just checking in! Since it’s been a while, I’ll go ahead and close this out — but feel free to reach out whenever you’re ready.

    Would you mind leaving a positive review for us? Your rating would make a tremendous difference in our plugin’s visibility and help other merchants discover it: https://ww.wp.xz.cn/support/plugin/woocommerce-square/reviews/#new-post

    websetgoaustralia

    (@websetgoaustralia)

    We are experiencing the same error between YITH Gift cards and Square. When we switch to Stripe the issue is gone. We will not test the internal gift card as we are committed to YITH.

    Fatal error: Uncaught TypeError: Unsupported operand types: int * string in /var/web/site/public_html/wp-content/plugins/woocommerce-square/includes/Gateway/Digital_Wallet.php:462 Stack trace: #0 /var/web/site/public_html/wp-content/plugins/woocommerce-square/includes/Gateway/Digital_Wallet.php(383): WooCommerce\Square\Gateway\Digital_Wallet->get_product_payment_request(8647) #1 /var/web/site/public_html/wp-content/plugins/woocommerce-square/includes/Gateway/Digital_Wallet.php(132): WooCommerce\Square\Gateway\Digital_Wallet->get_payment_request_for_context(‘product’) #2 /var/web/site/public_html/wp-includes/class-wp-hook.php(324): WooCommerce\Square\Gateway\Digital_Wallet->init(Object(WP)) #3 /var/web/site/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #4 /var/web/site/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #5 /var/web/site/public_html/wp-includes/class-wp.php(835): do_action_ref_array(‘wp’, Array) #6 /var/web/site/public_html/wp-includes/functions.php(1342): WP->main(”) #7 /var/web/site/public_html/wp-blog-header.php(16): wp() #8 /var/web/site/public_html/index.php(17): require(‘/var/web/site/p…’) #9 {main} thrown in /var/web/site/public_html/wp-content/plugins/woocommerce-square/includes/Gateway/Digital_Wallet.php on line 462

    Plugin Support Frank Remmy (woo-hc)

    (@frankremmy)

    Hi @websetgoaustralia,

    Thanks for chiming in. It sounds like you’re experiencing a similar issue with YITH Gift Cards and the Square integration, and I completely understand how frustrating that must be, especially when it affects payments.

    To make sure we can assist you properly without mixing details from other threads, could you please open a new support topic instead?

    When you post, please include as much relevant information as you can:

    • WooCommerce and WordPress versions
    • Square plugin version
    • Your active theme
    • Exact error messages (if any)
    • Steps that trigger the issue
    • Any recent plugin or system updates

    This will allow us to dig into your setup specifically and offer clear troubleshooting steps without confusion from overlapping threads.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Critical error after Update’ is closed to new replies.