現在直面している問題
決済ページにWoocommerceを使用しております。
チェックアウトページにて注文を確定しようとすると、"We were unable to process your order, please try again"という警告が表示され、注文を確定できないようになってしまいました。
正確にいつからからは不明ですが、最後の注文記録は今月10月2日になっています。
ちなみに、他の私の投稿にて回答をいただいたプログラム↓
php
1function unset_different_shipping_address(){ 2 if (!is_admin() && wc_商品1_is_in_the_cart()){ 3 add_filter( 'woocommerce_cart_needs_shipping_address', '__return_false'); 4 } 5} 6 7add_action( 'init', 'unset_different_shipping_address', 99 );*/
を追加したのは先週10月5日です。
デバッグモードで表示された内容
フランス語ですみません。必要であれば翻訳します。また、noticeはあと数行表示されていましたがここでは省略します。
また、前パラグラフのプログラムを無効にしても、注文確定時のエラーはそのままでした。
ちなみにその状態で、デバッグモードでチェックしてみると、以下のようになりました。
しかし、WC_Customer::get_countryやWC_Cart::get_checkout_urlというコードはwp-includes/functions.php内どころが、phpファイル全体内に見つかりませんでした。
なお、includes/functions.phpの3853行前後は以下の通りとなっており、まったく関係がない記述がありました・・・
/** * Marks a constructor as deprecated and informs when it has been used. * * Similar to _deprecated_function(), but with different strings. Used to * remove PHP4 style constructors. * * The current behavior is to trigger a user error if `WP_DEBUG` is true. * * This function is to be used in every PHP4 style constructor method that is deprecated. * * @since 4.3.0 * @since 4.5.0 Added the `$parent_class` parameter. * * @access private * * @param string $class The class containing the deprecated constructor. * @param string $version The version of WordPress that deprecated the function. * @param string $parent_class Optional. The parent class calling the deprecated constructor. * Default empty string. */
補足
- リストテーマは最初からずっと使っているものを使用しており、テーマの変更等は行っていないので、テーマとの衝突は考えにくいと思います。
- リストWoocommerceおよびWC関連のプラグインはすべて最新のバージョンにアップデートしています。
- キャッシュも削除してあります。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。