• Resolved Md Rashedul Islam

    (@rashedul007)


    Hi Team,

    First of all, great work on the plugin! I wanted to report a fatal error that occurred:

    Fatal Error [1]: Uncaught Error: Call to a member function delete_meta_data() on false in /home/…/public_html/wp-content/plugins/smart-send-logistics/includes/class-ss-shipping-wc-order.php:943

    I’ve already implemented a fix on my client’s site, and you may want to patch it in the plugin. Here’s the updated code:

    public function delete_ss_shipping_order_agent($order_id) {

    $order = wc_get_order( $order_id );
    if (! $order) {
    SS_SHIPPING_WC()->log_msg('Could not load order: '.$order_id);
    return;
    }
    $order->delete_meta_data('_ss_shipping_order_agent');
    $order->save();
    }

    Let me know if you need any more details.

Viewing 1 replies (of 1 total)
  • Plugin Author SmartSend

    (@smartsend)

    Thanks for bringing this to our attention.

    This is a nice addition and has been added to version 8.1.2 now.

Viewing 1 replies (of 1 total)

The topic ‘Fatal Error’ is closed to new replies.