• Resolved ergec

    (@ergec)


    Hello,

    After WP updates, I got this error.

    Type of $rate->cost is string

    PHP message: PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * float in [REDACTED]/wp-content/plugins/woocommerce-currency-switcher/classes/woocs.php:4136
    Stack trace:
    #0 [REDACTED]/wp-includes/class-wp-hook.php(324): WOOCS->woocommerce_package_rates()
    #1 [REDACTED]/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #2 [REDACTED]/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(395): apply_filters()
    #3 [REDACTED]/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(261): WC_Shipping->calculate_shipping_for_package()
    #4 [REDACTED]/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1503): WC_Shipping->calculate_shipping()
    #5 [REDACTED]/wp-content/plugins/woocommerce/includes/class-wc-...
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Unsupported operand types: string * float’ is closed to new replies.