Title: PHP 8
Last modified: February 10, 2022

---

# PHP 8

 *  Resolved [ahawtin](https://wordpress.org/support/users/ahawtin/)
 * (@ahawtin)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-8-46/)
 * Hi folks,
 * great plug-in. We are doing a gradual upgrade to php 8 but ran into a problem
   on our French site. It would no longer accept tracking numbers with the following
   error:
 *     ```
       2022-02-10T12:47:53+00:00 CRITICAL Uncaught TypeError: date_format(): Argument #1 ($object) must be of type DateTimeInterface, bool given in /home/basicsby/domains/basicsbymail.com/public_html/francais/wp-content/plugins/woo-advanced-shipment-tracking/includes/class-wc-advanced-shipment-tracking.php:1155
       Stack trace:
       #0 /home/basicsby/domains/basicsbymail.com/public_html/francais/wp-content/plugins/woo-advanced-shipment-tracking/includes/class-wc-advanced-shipment-tracking.php(1155): date_format()
       #1 /home/basicsby/domains/basicsbymail.com/public_html/francais/wp-content/plugins/woo-advanced-shipment-tracking/includes/class-wc-advanced-shipment-tracking.php(662): WC_Advanced_Shipment_Tracking_Actions->add_tracking_item()
       #2 /home/basicsby/domains/basicsbymail.com/public_html/francais/wp-includes/class-wp-hook.php(307): WC_Advanced_Shipment_Tracking_Actions->save_meta_box_ajax()
       #3 /home/basicsby/domains/basicsbymail.com/public_html/francais/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
       #4 /home/basicsby/domains/basicsbymail.com/public_html/francais/wp-includes/plugin.php(474): WP_Hook->do_action()
       #5 /home/basicsby/domains/basicsbymail.com/public_html/francais/wp-admin/admin-ajax.php(187): do_action()
       #6 {main}
         thrown dans /home/basicsby/domains/basicsbymail.com/public_html/francais/wp-content/plugins/woo-advanced-shipment-tracking/includes/class-wc-advanced-shipment-tracking.php à la ligne 1155
       ```
   
 * We returned the site to php 7.4 and this restores the functionality. Please let
   me know if there is any more information we can offer to resolve this issue.
 * Thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-8-46%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Zorem](https://wordpress.org/support/users/zorem/)
 * (@zorem)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-8-46/#post-15353939)
 * How you add tracking information manually or via CSV?
 *  Thread Starter [ahawtin](https://wordpress.org/support/users/ahawtin/)
 * (@ahawtin)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-8-46/#post-15354854)
 * Hey Zorem,
 * we were adding tracking manually. Let us know if there is anything else we can
   do to narrow it down.
 *  Plugin Author [Zorem](https://wordpress.org/support/users/zorem/)
 * (@zorem)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-8-46/#post-15389552)
 * Hi [@ahawtin](https://wordpress.org/support/users/ahawtin/),
    We checked with
   adding tracking manually with PHP 8 and we couldn’t replicate this issue on our
   development store. Maybe you have a conflict with another plugin. Try to deactivate
   all other plugins except AST and WooCommerce and check again. If this solves 
   the issue activate plugins one by one and check which plugin causes the conflict.
   Thanks,
 *  Thread Starter [ahawtin](https://wordpress.org/support/users/ahawtin/)
 * (@ahawtin)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-8-46/#post-15391388)
 * Hello again and thank you for checking. This error only occurs only on the French
   site – not on the English site. Right now we are running php 8 on the English
   site and php 7.4 on the French site to work around this difficulty. In terms 
   of extensions the only real difference between the two sites is loco translate.
   Plus the language declaration of course. I will first flip our staging site to
   French and see if the error occurs. Then if it does, disable loco translate.
 * May I ask what language you were testing in?
 *  Thread Starter [ahawtin](https://wordpress.org/support/users/ahawtin/)
 * (@ahawtin)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-8-46/#post-15391594)
 * The error occurs on the test site when we flip to French (specifically fr_CA).
   Just looking around at differences between the two sites (English vs French) 
   and the date/time format is different due to preferences found in French Canada.
   Do you think that might be causing some difficulty?
 * Have to pause a bit during this diagnosis to work on another issue. I will update
   when I get some time to play with the date/time format.
 *  Plugin Author [Zorem](https://wordpress.org/support/users/zorem/)
 * (@zorem)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-8-46/#post-15393747)
 * Which date/time format do you use on the French website?
 *  Thread Starter [ahawtin](https://wordpress.org/support/users/ahawtin/)
 * (@ahawtin)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-8-46/#post-15395267)
 * On the French site:
    23 février 2022 j F Y
 * On the English site:
    February 23, 2022 Custom F j, Y
 *  Plugin Author [Zorem](https://wordpress.org/support/users/zorem/)
 * (@zorem)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-8-46/#post-15395388)
 * I can replicate this issue with this date format on the french site. We will 
   fix this issue in the next version of the plugin.
 *  Thread Starter [ahawtin](https://wordpress.org/support/users/ahawtin/)
 * (@ahawtin)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-8-46/#post-15395723)
 * Excellent. Once I see the new release I will confirm the problem is fixed on 
   the staging site and get back to you.

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

The topic ‘PHP 8’ is closed to new replies.

 * ![](https://ps.w.org/woo-advanced-shipment-tracking/assets/icon-256x256.png?rev
   =2166296)
 * [Advanced Shipment Tracking for WooCommerce](https://wordpress.org/plugins/woo-advanced-shipment-tracking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-advanced-shipment-tracking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/reviews/)

## Tags

 * [php 8](https://wordpress.org/support/topic-tag/php-8/)

 * 9 replies
 * 2 participants
 * Last reply from: [ahawtin](https://wordpress.org/support/users/ahawtin/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/php-8-46/#post-15395723)
 * Status: resolved