Support » Plugin: WooCommerce For Japan » paypalの決済エラー

  • Resolved fquei

    (@fquei)


    plugin version 1.2.14
    php v7.1
    https

    checkoutページで、「PayPalに進む」を押すとエラーで止まります。
    woocommerce-fo-japan.php:L104のwc4jp_paypal_bn関数に$orderが渡っていないように思います。

    —————————————————————–
    Fatal error: Uncaught ArgumentCountError: Too few arguments to function WooCommerce4jp::wc4jp_paypal_bn(), 1 passed in /home/users/〇〇/wp-includes/class-wp-hook.php on line 300 and exactly 2 expected in /home/users/〇〇/wp-content/plugins/woocommerce-for-japan/woocommerce-for-japan.php:104
    Stack trace:
    #0 /home/users/〇〇/wp-includes/class-wp-hook.php(300): WooCommerce4jp->wc4jp_paypal_bn(Array)
    #1 /home/users/〇〇/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)
    #2 /home/users/〇〇/wp-content/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php(110): apply_filters(‘woocommerce_pay…’, Array, Object(WC_Order))
    #3 /home/users/〇〇/wp-content/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php(46): WC_Gateway_Paypal_Request->get_paypal_args(Object(WC_Order))
    #4 /home/users/〇〇/wp-content/plugins/woocommerce in /home/users/〇〇/wp-content/plugins/woocommerce-for-japan/woocommerce-for-japan.php on line 104
    —————————————————————–

Viewing 1 replies (of 1 total)
  • Plugin Author shohei.tanaka

    (@shoheitanaka)

    ご指摘ありがとうございます。1.2.15のバージョンで修正しました。
    ご確認ください。

Viewing 1 replies (of 1 total)
  • The topic ‘paypalの決済エラー’ is closed to new replies.