[X] I have carried out troubleshooting steps and I believe I have found a bug.
[X] I have searched for similar bugs in both open and closed issues and cannot find a duplicate.
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
HPOS is disabled
Place an order with delivery date
Move the order to Trash from WooCommerce >> Order page
Check the debug log file
Expected behavior
The error shouldn't logged.
WordPress Environment
-
Isolating the problem
[X] I have deactivated other plugins and confirmed this bug occurs when only our plugin is active.
[X] This bug happens with a default WordPress theme active, or Storefront.
[X] I can reproduce this bug consistently using the steps above.
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
Expected behavior
The error shouldn't logged.
WordPress Environment
-
Isolating the problem
Additional field
https://support.tychesoftwares.com/conversation/4910?folder_id=9