Support » Plugin: AfterShip - WooCommerce Tracking » Fatal Error for Tracking Code Doesn’t Exist

  • Since Aftership needs a few hours or more to sync new tracking numbers, we constantly see errors of Fatal Error, Tracking Code Doesn’t Exist, which breaks our pages. The function we are using is this:

    $last_check_point = new AfterShip\LastCheckPoint($key);
    $response = $last_check_point->get($provider,$number);

    Wish the function, instead of creating a Fatal Error, just return the tracking number does not exist yet. Is there a way to run a function to check tracking number exists first? Then run follow-up function?

    Cheers!
    Ryan

  • The topic ‘Fatal Error for Tracking Code Doesn’t Exist’ is closed to new replies.