Support » Plugin: TeraWallet - For WooCommerce » ERROR: A non-numeric value encountered in: class-wc-cart-totals.php on line 235

  • Hi,

    I see when users adds Credits to the Wallet via PayPal: The Credits gets added to there account but in server logs I see this ERROR:

    2019/10/17 12:49:17 [error] 1156#1156: *420407 FastCGI sent in stderr: “PHP message: PHP Warning: A non-numeric value encountered in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 235
    PHP message: PHP Warning: A non-numeric value encountered in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-discounts.php on line 85” while reading response header from upstream, client: 39.33.**.***, server: api4.eu, request: “GET /login/ HTTP/2.0”, upstream: “fastcgi://127.0.0.1:9999”, host: “api4.eu”, referrer: “https://api4.eu/login/”

    2019/10/17 13:28:19 [error] 1156#1156: *423502 FastCGI sent in stderr: “PHP message: PHP Warning: A non-numeric value encountered in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 235
    PHP message: PHP Warning: A non-numeric value encountered in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-discounts.php on line 85
    PHP message: PHP Warning: A non-numeric value encountered in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 235
    PHP message: PHP Warning: A non-numeric value encountered in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-discounts.php on line 85” while reading response header from upstream, client: 116.109.25.197, server: api4.eu, request: “POST /checkout/order-received/1823/?key=wc_order_gUy***&utm_nooverride=1 HTTP/2.0”, upstream: “fastcgi://127.0.0.1:9999”, host: “api4.eu”, referrer: “https://www.paypal.com/webapps/hermes?token=7C2***&useraction=commit&rm=2&mfid=1571***”

    2019/10/17 13:28:20 [error] 1156#1156: *423502 FastCGI sent in stderr: “PHP message: PHP Warning: A non-numeric value encountered in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 235
    PHP message: PHP Warning: A non-numeric value encountered in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-discounts.php on line 85” while reading response header from upstream, client: 116.109.25.197, server: api4.eu, request: “POST /?wc-ajax=wc_stripe_get_cart_details HTTP/2.0”, upstream: “fastcgi://127.0.0.1:9999”, host: “api4.eu”, referrer: “https://api4.eu/checkout/order-received/1823/?key=wc_order_gUy***&utm_nooverride=1”
    ———-

    I think this error is due to WooCommerce do not handle decimals in order amount?

    How can I solve this issue?

    Thank you for all your help.

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.