今天發生有些客戶在綠界信用卡付款後 系統報錯掛掉的情形。主機商提供的資訊好像和cw-ecpay-subscriptions有關。現將該資訊提供參考,請查看是否是因這個外掛造成的致命錯誤
2023/03/19 09:17:22 [error] 207#207: *143483 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Non-static method WC_Legacy_Cart::get_checkout_url() cannot be called statically in /www/np2comtw_107/public/wp-content/plugins/cw-ecpay-subscriptions-pro/includes/class_cw_allpay_cce_for_woocommerce.php:63
Stack trace:
#0 /www/np2comtw_107/public/wp-includes/class-wp-hook.php(308): CWAPCCE_CheckoutFailRedirect(”)
#1 /www/np2comtw_107/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#2 /www/np2comtw_107/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#3 /www/np2comtw_107/public/wp-settings.php(617): do_action(‘init’)
#4 /www/np2comtw_107/public/wp-config.php(102): require_once(‘/www/np2comtw_1…’)
#5 /www/np2comtw_107/public/wp-load.php(50): require_once(‘/www/np2comtw_1…’)
#6 /www/np2comtw_107/public/wp-blog-header.php(13): require_once(‘/www/np2comtw_1…’)
#7 /www/np2comtw_107/public/index.php(17): require(‘/www/np2comtw_1…’)
#8 {main}
thrown in /www/np2comtw_107/public/wp-content/plugins/cw-ecpay” while reading response header from upstream, client: 2401:e180:8823:5621:a51b:d3ff:b0c7:bd19, server: www.np2.com.tw, request: “POST /wc-api/ry_ecpay_gateway_return/?id=22633&key=wc_order_JgMYuaCUzEuSc HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php8.0-fpm-np2comtw.sock:”, host: “www.np2.com.tw:35485”, referrer: “https://payment.ecpay.com.tw/”