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
- The topic ‘Error on date_format() in WP admin’ is closed to new replies.