• Resolved Ali

    (@lindenhoff)


    Hi,

    Current version is not compatible with php 8.1 + woocommerce 7.6.0
    There is some error logs related to stripslashes:

    lugins/klarna-payments-for-woocommerce/vendor/krokedil/woocommerce/src/Cart/CartCustomer.php on line 80
    [24-Apr-2023 08:51:21 UTC] PHP Deprecated:  stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/nl/shop/wp-content/plugins/klarna-payments-for-woocommerce/vendor/krokedil/woocommerce/src/Cart/CartCustomer.php on line 98
    [24-Apr-2023 08:51:21 UTC] PHP Deprecated:  stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/nl/shop/wp-content/plugins/klarna-payments-for-woocommerce/vendor/krokedil/woocommerce/src/Cart/CartCustomer.php on line 116
    [24-Apr-2023 08:51:21 UTC] PHP Deprecated:  stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/nl/shop/wp-content/plugins/klarna-payments-for-woocommerce/vendor/krokedil/woocommerce/src/Cart/CartCustomer.php on line 188
    [24-Apr-2023 08:51:21 UTC] PHP Deprecated:  stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/nl/shop/wp-content/plugins/klarna-payments-for-woocommerce/vendor/krokedil/woocommerce/src/Cart/CartCustomer.php on line 206
    [24-Apr-2023 08:51:21 UTC] PHP Deprecated:  stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/nl/shop/wp-content/plugins/klarna-payments-for-woocommerce/vendor/krokedil/woocommerce/src/Cart/CartCustomer.php on line 224
    [24-Apr-2023 08:51:21 UTC] PHP Deprecated:  stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/nl/shop/wp-content/plugins/klarna-payments-for-woocommerce/vendor/krokedil/woocommerce/src/Cart/CartCustomer.php on line 161
    [24-Apr-2023 08:51:21 UTC] PHP Deprecated:  stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/nl/shop/wp-content/plugins/klarna-payments-for-woocommerce/vendor/krokedil/woocommerce/src/Cart/CartCustomer.php on line 251
    [24-Apr-2023 08:52:04 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /var/www/nl/shop/wp-content/plugins/klarna-payments-for-woocommerce/classes/class-kp-banners.php on line 47

    and we also have “Bad value: order_amount” error in checkout as well! do you have any workaround or update for this?!

    04-24-2023 @ 11:02:17 - {"type":"POST","title":"Create session","arguments":{"country":"NL","order_id":null,"include_address":false}, "request_url":"https:\/\/api.playground.klarna.com\/payments\/v1\/sessions","response":{"body":{"error_code":"BAD_VALUE","error_messages":["Bad value: order_amount"],"correlation_id":"85ec69a6-58b8-4a7a-a68c-173106ad8cc9"},"code":400},"timestamp":"2023-04-24 09:02:16","stack":[{"file":"\/var\/www\/nl\/shop\/wp-includes\/class-wp-hook.php","line":308,"function":"KP_Session->get_session(null)"},{"file":"\/var\/www\/nl\/shop\/wp-includes\/class-wp-hook.php","line":332,"function":"WP_Hook->apply_filters(\" (999999)\", null, [{\"cart_session_data\":{\"cart_contents_total\":0,\"total\":0,\"subtotal\":0,\"subtotal_ex_tax\":0,\"tax_total\":0,\"taxes\":[],\"shipping_taxes\":[],\"discount_cart\":0,\"discount_cart_tax\":0,\"shipping_total\":0,\"shipping_tax_total\":0,\"coupon_discount_amounts\":[],\"coupon_discount_tax_amounts\":[],\"fee_total\":0,\"fees\":[]},\"coupon_applied_count\":[],\"cart_contents\":{\"f73891c66d412188b8933fc358b5b67e\":{\"key\":\"f73891c66d412188b8933fc358b5b67e\",\"product_id\":640845,\"variation_id\":640847,\"variation\":{\"attribute_pa_bratwurst\":\"2\",\"attribute_pa_gehakt\":\"2\",\"attribute_pa_sausage\":\"2\",\"attribute_pa_size\":\"small\"},\"quantity\":1,\"data_hash\":\"94b376f10357301e7509e21b986babf8\",\"line_tax_data\":{\"subtotal\":[],\"total\":[]},\"line_subtotal\":74.95,\"line_subtotal_tax\":0,\"line_total\":74.95,\"line_tax\":0,\"data\":{}}},\"removed_cart_contents\":[],\"applied_coupons\":[],\"coupon_discount_totals\":[],\"coupon_discount_tax_totals\":[]}])"},{"file":"\/var\/www\/nl\/shop\/wp-includes\/plugin.php","line":517,"function":"WP_Hook->do_action(\" (999999)\", [{\"cart_session_data\":{\"cart_contents_total\":0,\"total\":0,\"subtotal\":0,\"subtotal_ex_tax\":0,\"tax_total\":0,\"taxes\":[],\"shipping_taxes\":[],\"discount_cart\":0,\"discount_cart_tax\":0,\"shipping_total\":0,\"shipping_tax_total\":0,\"coupon_discount_amounts\":[],\"coupon_discount_tax_amounts\":[],\"fee_total\":0,\"fees\":[]},\"coupon_applied_count\":[],\"cart_contents\":{\"f73891c66d412188b8933fc358b5b67e\":{\"key\":\"f73891c66d412188b8933fc358b5b67e\",\"product_id\":640845,\"variation_id\":640847,\"variation\":{\"attribute_pa_bratwurst\":\"2\",\"attribute_pa_gehakt\":\"2\",\"attribute_pa_sausage\":\"2\",\"attribute_pa_size\":\"small\"},\"quantity\":1,\"data_hash\":\"94b376f10357301e7509e21b986babf8\",\"line_tax_data\":{\"subtotal\":[],\"total\":[]},\"line_subtotal\":74.95,\"line_subtotal_tax\":0,\"line_total\":74.95,\"line_tax\":0,\"data\":{}}},\"removed_cart_contents\":[],\"applied_coupons\":[],\"coupon_discount_totals\":[],\"coupon_discount_tax_totals\":[]}])"},{"file":"\/var\/www\/nl\/shop\/wp-content\/plugins\/woocommerce\/includes\/class-wc-cart.php","line":1403,"function":"do_action(\"woocommerce_after_calculate_totals\", {\"cart_session_data\":{\"cart_contents_total\":0,\"total\":0,\"subtotal\":0,\"subtotal_ex_tax\":0,\"tax_total\":0,\"taxes\":[],\"shipping_taxes\":[],\"discount_cart\":0,\"discount_cart_tax\":0,\"shipping_total\":0,\"shipping_tax_total\":0,\"coupon_discount_amounts\":[],\"coupon_discount_tax_amounts\":[],\"fee_total\":0,\"fees\":[]},\"coupon_applied_count\":[],\"cart_contents\":{\"f73891c66d412188b8933fc358b5b67e\":{\"key\":\"f73891c66d412188b8933fc358b5b67e\",\"product_id\":640845,\"variation_id\":640847,\"variation\":{\"attribute_pa_bratwurst\":\"2\",\"attribute_pa_gehakt\":\"2\",\"attribute_pa_sausage\":\"2\",\"attribute_pa_size\":\"small\"},\"quantity\":1,\"data_hash\":\"94b376f10357301e7509e21b986babf8\",\"line_tax_data\":{\"subtotal\":[],\"total\":[]},\"line_subtotal\":74.95,\"line_subtotal_tax\":0,\"line_total\":74.95,\"line_tax\":0,\"data\":{}}},\"removed_cart_contents\":[],\"applied_coupons\":[],\"coupon_discount_totals\":[],\"coupon_discount_tax_totals\":[]})"},{"file":"\/var\/www\/nl\/shop\/wp-content\/plugins\/woocommerce\/includes\/class-wc-ajax.php","line":378,"function":"WC_Cart->calculate_totals()"},{"file":"\/var\/www\/nl\/shop\/wp-includes\/class-wp-hook.php","line":308,"function":"WC_AJAX::update_order_review(\"\")"},{"file":"\/var\/www\/nl\/shop\/wp-includes\/class-wp-hook.php","line":332,"function":"WP_Hook->apply_filters(\"WC_Cache_Helper::update_geolocation_hash() (10)\", null, [\"\"])"},{"file":"\/var\/www\/nl\/shop\/wp-includes\/plugin.php","line":517,"function":"WP_Hook->do_action(\"WC_Cache_Helper::update_geolocation_hash() (10)\", [\"\"])"},{"file":"\/var\/www\/nl\/shop\/wp-content\/plugins\/woocommerce\/includes\/class-wc-ajax.php","line":96,"function":"do_action(\"wc_ajax_update_order_review\")"},{"file":"\/var\/www\/nl\/shop\/wp-includes\/class-wp-hook.php","line":308,"function":"WC_AJAX::do_wc_ajax(\"\")"},{"file":"\/var\/www\/nl\/shop\/wp-includes\/class-wp-hook.php","line":332,"function":"WP_Hook->apply_filters(\"_wp_admin_bar_init() (0)\", false, [\"\"])"},{"file":"\/var\/www\/nl\/shop\/wp-includes\/plugin.php","line":517,"function":"WP_Hook->do_action(\"_wp_admin_bar_init() (0)\", [\"\"])"},{"file":"\/var\/www\/nl\/shop\/wp-includes\/template-loader.php","line":13,"function":"do_action(\"template_redirect\")"},{"file":"\/var\/www\/nl\/shop\/wp-blog-header.php","line":19,"function":"require_once(\"\/var\/www\/nl\/shop\/wp-includes\/template-loader.php\")"},{"file":"\/var\/www\/nl\/shop\/index.php","line":17,"function":"require(\"\/var\/www\/nl\/shop\/wp-blog-header.php\")"}],"plugin_version":"3.0.6"}
    
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Bad value: order_amount + error logs’ is closed to new replies.