• Hi Everyone

    With this set

    • PHP 8.0
    • WordPress 6.0.1
    • WooCommerce 6.7.0
    • YITH Request a Quote 2.11.0

    get the error:

    [27-Jul-2022 18:43:48 UTC] PHP Fatal error:  Uncaught TypeError: Unsupported operand types: string * int in [path]/wp-content/plugins/woocommerce/includes/class-wc-cart.php:2032
    Stack trace:
    #0 [path]/wp-content/plugins/yith-woocommerce-request-a-quote/templates/emails/request-quote.php(59): WC_Cart->get_product_subtotal(Object(WC_Product_Simple), 4)
    #1 [path]/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('[path]/...')
    #2 [path]/wp-content/plugins/yith-woocommerce-request-a-quote/includes/emails/class.yith-ywraq-send-email-request-quote.php(130): wc_get_template('emails/request-...', Array, '', '[path]/...')
    #3 [path]/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(545): YITH_YWRAQ_Send_Email_Request_Quote->get_content_html()
    #4 [path]/wp-content/plugins/yith-woocommerce-request-a-quote/includes/emails/class.yith-ywraq-send-email-request-quote.php(81): WC_Email->get_content()
    #5 [path]/wp-includes/class-wp-hook.php(307): YITH_YWRAQ_Send_Email_Request_Quote->trigger(Array)
    #6 [path]/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #7 [path]/wp-includes/plugin.php(524): WP_Hook->do_action(Array)
    #8 [path]/wp-content/plugins/woocommerce/includes/class-wc-emails.php(170): do_action_ref_array('send_raq_mail_n...', Array)
    #9 [path]/wp-includes/class-wp-hook.php(307): WC_Emails::send_transactional_email(Array)
    #10 [path]/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #11 [path]/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #12 [path]/wp-content/plugins/yith-woocommerce-request-a-quote/includes/class.yith-request-quote.php(598): do_action('send_raq_mail', Array)
    #13 [path]/wp-includes/class-wp-hook.php(307): YITH_Request_Quote->send_message('')
    #14 [path]/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #15 [path]/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #16 [path]/wp-settings.php(598): do_action('init')
    #17 [path]/wp-config.php(96): require_once('[path]/...')
    #18 [path]/wp-load.php(50): require_once('[path]/...')
    #19 [path]/wp-blog-header.php(13): require_once('[path]/...')
    #20 [path]/index.php(17): require('[path]/...')
    #21 {main}
      thrown in [path]/wp-content/plugins/woocommerce/includes/class-wc-cart.php on line 2032

    Everything goes fine if I downgrade PHP version to 7.4.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Multimedia Efectiva

    (@mmefectiva)

    Extra info:

    In the email message, with PHP 7.4, the “subtotal” column show:

    Warning: A non-numeric value encountered in
    [path]/wp-content/plugins/woocommerce/includes/class-wc-cart.php
    on line 2032
    $0

    None of the products in WooCommerce have an assigned price.

    Plugin Support Salvatore Strano

    (@salvostrano)

    Hi there
    Please check if all products have a price set, maybe the issue is this

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error with PHP 8 – Unsupported operand types – string’ is closed to new replies.