升级到最新版本后的WooCommerce问题

时间:2017-05-11 07:06:02

标签: woocommerce payment-gateway payment

我将WooCommerce插件升级到最新版本后,我开始在error_log文件中收到此错误: 10-May-2017 12:19:25 UTC] billing_last_name was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] billing_address_1 was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] billing_address_2 was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] billing_postcode was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] billing_country was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] billing_phone was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] billing_first_name was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] billing_last_name was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] billing_phone was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] billing_address_1 was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] billing_state was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] billing_city was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] billing_postcode was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] billing_postcode was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] billing_country was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] billing_email was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] order_total was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] billing_first_name was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] billing_last_name was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] shipping_address_1 was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] shipping_address_2 was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] shipping_city was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] shipping_state was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] shipping_country was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0. [10-May-2017 12:19:25 UTC] shipping_postcode was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_payroll_creditcard_wc->process_payment, WC_Gateway_payroll_creditcard_wc->get_payroll_args, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.

如何修复插件,这就是代码:

0 个答案:

没有答案