JP4WC_FRAMEWORK_VERSION 未定義によるWarningの出力
-
※Paidy社のご担当者様へ以前お伝え済みの内容となります。
WooCommerceのロギング設定を有効にしている場合、WC_LOG_DIRへ
paidy-wc-xxx.logのファイル名でオーソリなどのログが出力されますが、ロギングが行われるたび(Paidyで注文が行われるたび)に、
以下のWarningが発生してしまいます。PHP Warning: Use of undefined constant JP4WC_FRAMEWORK_VERSION – assumed ‘JP4WC_FRAMEWORK_VERSION’ (this will throw an Error in a future version of PHP) in PATH/wp-content/plugins/paidy-wc/includes/jp4wc-framework/class-jp4wc-framework.php on line 415
エラー箇所を確認すると、未定義のJP4WC_FRAMEWORK_VERSIONという定数が、ロギング時に使われているようです。
取り急ぎ対応として、
/paidy-wc/includes/jp4wc-framework/class-jp4wc-framework.php
397行目-function jp4wc_debug_log$log_entry = “\n” . ‘====’.$slug.’ Framework Version: ‘ . JP4WC_FRAMEWORK_VERSION . ‘====’ . “\n”;
から(2箇所)未定義定数を除去して
$log_entry = “\n” . ‘====’ . $slug . ‘====’ . “\n”;
に変更して運用しています。
こちらについて、対応?修正をお願いします。
- The topic ‘JP4WC_FRAMEWORK_VERSION 未定義によるWarningの出力’ is closed to new replies.