TycheSoftwares / order-delivery-date-for-woocommerce

WooCommerce Delivery Date Lite
8 stars 5 forks source link

Debug log Warning while trashing the order #568

Closed Chetna1510 closed 1 month ago

Chetna1510 commented 1 month ago

Prerequisites

Describe the bug

Getting below error when I trashed the order: [07-Oct-2024 15:35:09 UTC] PHP Warning: Undefined variable $post_status in C:\xampp\htdocs\wordpress.local\wp-content\plugins\order-delivery-date-for-woocommerce\includes\class-orddd-lite-common.php on line 406 [07-Oct-2024 15:35:09 UTC] PHP Warning: Attempt to read property "post_status" on null in C:\xampp\htdocs\wordpress.local\wp-content\plugins\order-delivery-date-for-woocommerce\includes\class-orddd-lite-common.php on line 406

Steps to reproduce

  1. HPOS is disabled
  2. Place an order with delivery date
  3. Move the order to Trash from WooCommerce >> Order page
  4. Check the debug log file

Expected behavior

The error shouldn't logged.

WordPress Environment

-

Isolating the problem

Additional field

https://support.tychesoftwares.com/conversation/4910?folder_id=9