woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
235 stars 206 forks source link

Lots of errors in logs? #262

Closed shawaj closed 7 years ago

shawaj commented 7 years ago

Hi,

We are getting a lot of errors like the following in our logs, and not really sure why?

[Wed May 17 11:41:20.002138 2017] [fcgid:warn] [pid 23681:tid 140705024382720] [client 2402:6b00:38e5:b300:f49f:cbcf:defc:fc65:58286] mod_fcgid: stderr: product_type was called incorrectly. Product 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_Stripe_Addons->process_payment, WC_Gateway_Stripe->process_payment, WC_Gateway_Stripe->process_response, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_processing'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, Ignite_Gift_Certs->add_vouchers, Ignite_Gift_Certs->handle_vouchers, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0., referer: https://www.site.com/checkout/

[Wed May 17 11:41:20.002144 2017] [fcgid:warn] [pid 23681:tid 140705024382720] [client 2402:6b00:38e5:b300:f49f:cbcf:defc:fc65:58286] mod_fcgid: stderr: The WC_Order::email_order_items_table function is deprecated since version 3.0. Replace with wc_get_email_order_items., referer: https://www.site.com/checkout/

[Wed May 17 11:41:20.002149 2017] [fcgid:warn] [pid 23681:tid 140705024382720] [client 2402:6b00:38e5:b300:f49f:cbcf:defc:fc65:58286] mod_fcgid: stderr: id 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_Stripe_Addons->process_payment, WC_Gateway_Stripe->process_payment, WC_Gateway_Stripe->process_response, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_pending_to_processing'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Emails::send_transactional_email, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Email_New_Order->trigger, WC_Email->get_content, WC_Email_New_Order->get_content_html, wc_get_template_html, wc_get_template, include('/plugins/woocommerce/templates/emails/admin-new-order.php'), do_action('woocommerce_email_order_details'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Emails->order_details, wc_get_template, include('/plugins/woocommerce/templates/emails/email-order-details.php'), do_action('woocommerce_email_after_order_table'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Linnworks_Integration->show_shipping_tracking_to_customer_emails, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0., referer: https://www.site.com/checkout/

[Wed May 17 11:41:20.002163 2017] [fcgid:warn] [pid 23681:tid 140705024382720] [client 2402:6b00:38e5:b300:f49f:cbcf:defc:fc65:58286] mod_fcgid: stderr: id 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_Stripe_Addons->process_payment, WC_Gateway_Stripe->process_payment, WC_Gateway_Stripe->process_response, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_pending_to_processing'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Emails::send_transactional_email, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Email_New_Order->trigger, WC_Email->get_content, WC_Email_New_Order->get_content_html, wc_get_template_html, wc_get_template, include('/plugins/woocommerce/templates/emails/admin-new-order.php'), do_action('woocommerce_email_order_details'), WP_Hook->do_action, WP_Hook->apply, referer: https://www.site.com/checkout/

[Wed May 17 11:41:20.719203 2017] [fcgid:warn] [pid 23681:tid 140705024382720] [client 2402:6b00:38e5:b300:f49f:cbcf:defc:fc65:58286] mod_fcgid: stderr: id 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_Stripe_Addons->process_payment, WC_Gateway_Stripe->process_payment, WC_Gateway_Stripe->process_response, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_pending_to_processing'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Emails::send_transactional_email, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Email_New_Order->trigger, WC_Email->get_content, WC_Email_New_Order->get_content_html, wc_get_template_html, wc_get_template, include('/plugins/woocommerce/templates/emails/admin-new-order.php'), do_action('woocommerce_email_customer_details'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Emails->email_addresses, wc_get_template, include('/plugins/woocommerce/templates/emails/email-addresses.php'), WC_Order->get_formatted_billing_address, apply_filters('woocommerce_order_formatted_billing_address'), WP_Hook->apply_filters, call_user_func_array, WC_EU_VAT_Number::formatted_billing_address, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0., referer: https://www.site.com/checkout/

[Wed May 17 11:41:20.719214 2017] [fcgid:warn] [pid 23681:tid 140705024382720] [client 2402:6b00:38e5:b300:f49f:cbcf:defc:fc65:58286] mod_fcgid: stderr: id 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_Stripe_Addons->process_payment, WC_Gateway_Stripe->process_payment, WC_Gateway_Stripe->process_response, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_pending_to_processing'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Emails::send_transactional_email, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Email_New_Order->trigger, WC_Email->get_attachments, apply_filters('woocommerce_email_attachments'), WP_Hook->apply_filters, call_user_func_array, BE_WooCommerce_PDF_Invoices->attach_invoice_to_email, BEWPI_Abstract_Invoice->generate, BEWPI_Abstract_Document->generate, BEWPI_Abstract_Document->get_html, BEWPI_Abstract_Document->buffer, require('/plugins/woocommerce-pdf-invoices/includes/templates/invoice/simple/micro/body.php'), WC_Order->get_formatted_billing_address, apply_filters('woocommerce_order_formatted_billing_address'), WP_Hook->apply_filters, call_user_func_array, WC_EU_VAT_Number::formatted_billing_address, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0., referer: https://www.site.com/checkout/

[Wed May 17 11:41:20.719239 2017] [fcgid:warn] [pid 23681:tid 140705024382720] [client 2402:6b00:38e5:b300:f49f:cbcf:defc:fc65:58286] mod_fcgid: stderr: The WC_Order::get_order_currency function is deprecated since version 3.0. Replace with WC_Order::get_currency., referer: https://www.site.com/checkout/

[Wed May 17 11:41:20.719243 2017] [fcgid:warn] [pid 23681:tid 140705024382720] [client 2402:6b00:38e5:b300:f49f:cbcf:defc:fc65:58286] mod_fcgid: stderr: The WC_Order::has_meta( $order_item_id ) function is deprecated since version 3.0. Replace with WC_Order_item::get_meta_data., referer: https://www.site.com/checkout/

[Wed May 17 11:41:20.719247 2017] [fcgid:warn] [pid 23681:tid 140705024382720] [client 2402:6b00:38e5:b300:f49f:cbcf:defc:fc65:58286] mod_fcgid: stderr: The WC_Order::get_order_currency function is deprecated since version 3.0. Replace with WC_Order::get_currency., referer: https://www.site.com/checkout/

[Wed May 17 11:41:20.719251 2017] [fcgid:warn] [pid 23681:tid 140705024382720] [client 2402:6b00:38e5:b300:f49f:cbcf:defc:fc65:58286] mod_fcgid: stderr: The WC_Order::get_order_currency function is deprecated since version 3.0. Replace with WC_Order::get_currency., referer: https://www.site.com/checkout/

[Wed May 17 11:41:20.719254 2017] [fcgid:warn] [pid 23681:tid 140705024382720] [client 2402:6b00:38e5:b300:f49f:cbcf:defc:fc65:58286] mod_fcgid: stderr: The WC_Order::get_order_currency function is deprecated since version 3.0. Replace with WC_Order::get_currency., referer: https://www.site.com/checkout/

[Wed May 17 11:41:20.719257 2017] [fcgid:warn] [pid 23681:tid 140705024382720] [client 2402:6b00:38e5:b300:f49f:cbcf:defc:fc65:58286] mod_fcgid: stderr: The WC_Order::get_order_currency function is deprecated since version 3.0. Replace with WC_Order::get_currency., referer: https://www.site.com/checkout/

[Wed May 17 11:41:20.719263 2017] [fcgid:warn] [pid 23681:tid 140705024382720] [client 2402:6b00:38e5:b300:f49f:cbcf:defc:fc65:58286] mod_fcgid: stderr: id 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_Stripe_Addons->process_payment, WC_Gateway_Stripe->process_payment, WC_Gateway_Stripe->process_response, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_pending_to_processing'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Emails::send_transactional_email, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Email_Customer_Processing_Order->trigger, WC_Email->get_content, WC_Email_Customer_Processing_Order->get_content_html, wc_get_template_html, wc_get_template, include('/plugins/woocommerce/templates/emails/customer-processing-order.php'), do_action('woocommerce_email_order_details'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Emails->order_details, wc_get_template, include('/plugins/woocommerce/templates/emails/email-order-details.php'), do_action('woocommerce_email_after_order_table'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Linnworks_Integration->show_shipping_tracking_to_customer_emails, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0., referer: https://www.site.com/checkout/

[Wed May 17 11:41:20.719280 2017] [fcgid:warn] [pid 23681:tid 140705024382720] [client 2402:6b00:38e5:b300:f49f:cbcf:defc:fc65:58286] mod_fcgid: stderr: id 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_Stripe_Addons->process_payment, WC_Gateway_Stripe->process_payment, WC_Gateway_Stripe->process_response, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_pending_to_processing'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Emails::send_transactional_email, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Email_Customer_Processing_Order->trigger, WC_Email->get_content, WC_Email_Customer_Processing_Order->get_content_html, wc_get_template_html, wc_get_template, include('/plugins/woocommerce/templates/emails/customer-processing-order.php'), do_action('woocommerce_email_order_details'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Emails->order_details, wc_get_template, include('/plugins/woocommerce/templates/emails/email-order-details.php'), do_action('woocommerce_email_after_order_table'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Linnworks_Integration->show_shipping_tracking_to_customer_emails, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0., referer: https://www.site.com/checkout/

Any idea why this is happening?

roykho commented 7 years ago

Please read the messages in detail and you will see what plugins are causing it.

shawaj commented 7 years ago

@roykho - if you read them in detail they all mention Stripe gateway.....

roykho commented 7 years ago

@shawaj read towards the end...

shawaj commented 7 years ago

@roykho So it is an error with woocommerce directly then and the emails sending out from WooCommerce?

roykho commented 7 years ago

So this repo is not really for support but for bug reporting with reproducible steps. But to get you started, here are some plugins you can look into that may or may not be the cause.

WC_Linnworks_Integration Ignite_Gift_Certs

shawaj commented 7 years ago

What about the errors that day nothing about either of those and only stuff about WooCommerce, emails and Stripe?

shawaj commented 7 years ago

*say