Title: Error on date_format() in WP admin
Last modified: August 25, 2022

---

# Error on date_format() in WP admin

 *  Resolved [e3boss](https://wordpress.org/support/users/e3boss/)
 * (@e3boss)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-on-date_format-in-wp-admin/)
 * Hello,
 * in the page of an order (in the administration panel) for which a refund has 
   been requested, I have this error:
 * Fatal error: Uncaught TypeError: date_format(): Argument #1 ($object) must be
   of type DateTimeInterface, bool given in /web/htdocs/www.iconicbrandmilano.com/
   home/shop/wp-content/plugins/woo-refund-and-exchange-lite/admin/partials/woo-
   refund-and-exchange-lite-return-meta.php:35 Stack trace: #0 /web/htdocs/www.iconicbrandmilano.
   com/home/shop/wp-content/plugins/woo-refund-and-exchange-lite/admin/partials/
   woo-refund-and-exchange-lite-return-meta.php(35): date_format() #1 /web/htdocs/
   www.iconicbrandmilano.com/home/shop/wp-content/plugins/woo-refund-and-exchange-
   lite/admin/class-woo-refund-and-exchange-lite-admin.php(743): include_once(‘…’)#
   2 /web/htdocs/www.iconicbrandmilano.com/home/shop/wp-admin/includes/template.
   php(1401): Woo_Refund_And_Exchange_Lite_Admin->wps_rma_order_return() #3 /web/
   htdocs/www.iconicbrandmilano.com/home/shop/wp-admin/edit-form-advanced.php(711):
   do_meta_boxes() #4 /web/htdocs/www.iconicbrandmilano.com/home/shop/wp-admin/post.
   php(206): require(‘…’) #5 {main} thrown in /web/htdocs/www.iconicbrandmilano.
   com/home/shop/wp-content/plugins/woo-refund-and-exchange-lite/admin/partials/
   woo-refund-and-exchange-lite-return-meta.php on line 35
 * This is the line:
 * $date = date_format( $date, $date_format );
 * What can I do?
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [WP Swings](https://wordpress.org/support/users/wpswings/)
 * (@wpswings)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-on-date_format-in-wp-admin/#post-15949613)
 * Hi,
 * Thanks for reaching out!
 * We are really apologising for the concern you’re facing, we have attached an 
   updated and resolved plugin file for you. Please find the file below, download
   the plugin and use it on your end.
    [https://www.dropbox.com/t/pDQ5zUPoV0QwaIdk](https://www.dropbox.com/t/pDQ5zUPoV0QwaIdk)
 * If you’ll face further any concerns then kindly get back to us.
 * Regards

Viewing 1 replies (of 1 total)

The topic ‘Error on date_format() in WP admin’ is closed to new replies.

 * ![](https://ps.w.org/woo-refund-and-exchange-lite/assets/icon-256x256.gif?rev
   =2903098)
 * [Return Refund and Exchange For WooCommerce](https://wordpress.org/plugins/woo-refund-and-exchange-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-refund-and-exchange-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-refund-and-exchange-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-refund-and-exchange-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-refund-and-exchange-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-refund-and-exchange-lite/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WP Swings](https://wordpress.org/support/users/wpswings/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/error-on-date_format-in-wp-admin/#post-15949613)
 * Status: resolved