• Resolved darkallman

    (@darkallman)


    PHP message: id was called incorrectly. Order properties should not be accessed directly. 
    Backtrace: do_action('wp_ajax_wc_sa_mark_order_status'), 
    WP_Hook->do_action, 
    WP_Hook->apply_filters, 
    WC_SA_AJAX::mark_order_status, 
    WC_Order->update_status, 
    WC_Order->save, 
    WC_Order->status_transition, 
    do_action('woocommerce_order_status_sent'), 
    WP_Hook->do_action, 
    WP_Hook->apply_filters, 
    WC_Emails::send_transactional_email, 
    do_action_ref_array('woocommerce_order_status_sent_notification'), 
    WP_Hook->do_action, WP_Hook->apply_filters, 
    WC_SA_Email->trigger, 
    WC_Email->get_headers, 
    apply_filters('woocommerce_email_headers'), 
    WP_Hook->apply_filters, 
    WCJ_Product_By_User->sendemail_to_productowner_order_place_successfully, 
    WC_Abstract_Legacy_Order->__get, 
    wc_doing_it_wrong. This message was added in version 3.0.

    I think it is related to class-wcj-product-by-user.php line 81
    $useremail = $this->getProductOwnerEmail( $order->id );
    I think it should be
    $useremail = $this->getProductOwnerEmail( $order->get_id() );

    BTW, I do not even use this module, but still it is generating issue’s in the logs.

    • This topic was modified 4 years ago by darkallman.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor David G

    (@gravid7)

    Hi @darkallman

    Thanks for reaching out to us.

    Yes, please try to replace ‘$order->id’ with ‘$order->get_id()’ in line number 81. And let me know if issue is still not solved.

    Plugin Contributor David G

    (@gravid7)

    Hi @darkallman

    I haven’t heard back from you, so I believe the issue has been resolved. I’m marking this topic complete.

    please feel free to open a new thread for any further queries or Please send us a reply and we will resume where we left off.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP8 Error:’ is closed to new replies.