• Resolved mattbrandon

    (@mattbrandon)


    Hi,

    I have a product going line in a few hours and I just saw this error. In my emails I get this code at the top of the email:

    Notice: id was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), wp, WP->main, WP->parse_request, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, WC_API->handle_api_requests, do_action(‘woocommerce_api_wc_gateway_paypal’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Gateway_Paypal_IPN_Handler->check_response, do_action(‘valid-paypal-standard-ipn-request’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Gateway_Paypal_IPN_Handler->valid_response, WC_Gateway_Paypal_IPN_Handler->payment_status_completed, WC_Gateway_Paypal_Response->payment_complete, 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, WC_Emails::send_transactional_email, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, WC_Email_New_Order->trigger, WC_Email->get_content, WC_Email_New_Order->get_content_html, wc_get_tem in /home2/thedigk0/public_html/wp-includes/functions.php on line 4161

    Can anyone help me figure out how to fix this? I have the latest Payment gateway. But it looks like other things are at play as well. My guess there is a conflict between plugings.

    THanks

    Matt

Viewing 5 replies - 1 through 5 (of 5 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi, @mattbrandon!

    It looks like you’ve added some custom code to your theme’s functions.php file that isn’t compatible with WC v3.0+

    You’ll need to find that code, specifically the older $order->id and replace it with $order->get_id()

    Cheers!

    Thread Starter mattbrandon

    (@mattbrandon)

    rynald0s,

    Thanks! I don’t recall adding or changing any code on the actual php. That stuff is beyond me. I did a search of my theme’s dunctions.php, (Extra by Elegant) and didn’t find it. Could it be in some place else or an app that does it?

    Thanks again

    Thread Starter mattbrandon

    (@mattbrandon)

    I had my host tech look through the functions.php and the even the WordPress core files and nothing. We even switched themes and the error was still there. Any other thoughts? It’s getting down tot he wire when this goes live.

    Luminus Alabi

    (@luminus)

    Automattic Happiness Engineer

    @mattbrandon,

    You must have some piece of code that is outdated. Let’s see your site’s System Status Report? You can find it by going to WooCommerce → Status in your site’s WP-Admin.

    Click on Get system report and then Copy for support. Once you’ve done that, you can paste it in https://pastebin.com/ and share the link to it here.

    Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Howdy!

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please start a new thread.

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Email Error help’ is closed to new replies.