Title: Fatal Error for Tracking Code Doesn&#8217;t Exist
Last modified: January 11, 2019

---

# Fatal Error for Tracking Code Doesn’t Exist

 *  [casbboy](https://wordpress.org/support/users/casbboy/)
 * (@casbboy)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-for-tracking-code-doesnt-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.

 * ![](https://ps.w.org/aftership-woocommerce-tracking/assets/icon-256x256.png?rev
   =2856422)
 * [AfterShip Tracking - All-In-One WooCommerce Order Tracking (Free plan available)](https://wordpress.org/plugins/aftership-woocommerce-tracking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/aftership-woocommerce-tracking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/aftership-woocommerce-tracking/)
 * [Active Topics](https://wordpress.org/support/plugin/aftership-woocommerce-tracking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/aftership-woocommerce-tracking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/aftership-woocommerce-tracking/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [casbboy](https://wordpress.org/support/users/casbboy/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-for-tracking-code-doesnt-exist/)
 * Status: not resolved