Support » Fixing WordPress » WordPress: Woocomerce Internal Sever Error

  • when i want so test order in my onlineshop a Internal Server Error pops up. In the server logs following Error message is shown.

    AH01071: Got error ‘PHP message: The WC_Cart::get_item_data function is deprecated since version 3.3. Replace with wc_get_formatted_cart_item_data.\nPHP message: The WC_Cart::get_remove_url function is deprecated since version 3.3. Replace with wc_get_cart_remove_url.\n’, referer: https://golfklub-braunschweig.de/produkt/golfball-nxt-tour/

    and this one:

    AH01071: Got error ‘PHP message: 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, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_Hosted_Payments->process_payment, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.\nPHP message: order_key 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, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_Hosted_Payments->process_payment, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.\nPHP message: payment_method 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, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, apply_filters(‘woocommerce_payment_successful_result’), WP_Hook->apply_filters, WC_GZD_Emails->send_order_confirmation_mails, 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(‘/themes/porto-child/woocommerce/emails/customer-processing-order.php’), do_action(‘woocommerce_email_order_details’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails->order_details, wc_get_template, include(‘/plugins/woocommerce/templates/emails/email-order-details.p…\nPHP message: 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, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, apply_filters(‘woocommerce_payment_successful_result’), WP_Hook->apply_filters, WC_GZD_Emails->send_order_confirmation_mails, 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(‘/themes/porto-child/woocommerce/emails/customer-processing-order.php’), do_action(‘woocommerce_email_order_details’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails->order_details, wc_get_template, include(‘/plugins/woocommerce/templates/emails/email-order-details.php’), do_act…\nPHP message: PHP Parse error: syntax error, unexpected end of file in /var/www/vhosts/golf-klub-braunschweig.de/golfklub-braunschweig.de/wp-content/themes/porto-child/woocommerce/emails/admin-new-order.php on line 57\n’, referer: https://golfklub-braunschweig.de/kasse/

    In dont know what this means. How do i slove this problem Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello idosoft,

    It’s because of Woocommerce deprecated some methods in the new version, but your existing code in plugins or theme are using the old methods to get the cart data that’s why you are receiving this notice.

    Best way to ignore this type of notices is to check all the plugins and theme with the new version of the WooCommerce before making live.

    I hope this finds you well with your concern.

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress: Woocomerce Internal Sever Error’ is closed to new replies.