Closed apeksha10 closed 2 years ago
Describe the bug Some debug log error was found.
To Reproduce Steps to reproduce the behavior:
Upload the latest live copy Do some setup like time slots + MDT etc Placed some orders Upload the latest git copy, without making any changes I had placed some orders Debug log file shows some errors. Debug log error . [06-May-2022 05:57:52 UTC] PHP Notice: Undefined offset: 1 in C:\Users\User\Local Sites\local1\app\public\wp-content\plugins\order-delivery-date-for-woocommerce\includes\class-orddd-lite-process.php on line 464 [06-May-2022 05:57:52 UTC] PHP Stack trace: [06-May-2022 05:57:52 UTC] PHP 1. {main}() C:\Users\User\Local Sites\local1\app\public\index.php:0 [06-May-2022 05:57:52 UTC] PHP 2. require() C:\Users\User\Local Sites\local1\app\public\index.php:17 [06-May-2022 05:57:52 UTC] PHP 3. require_once() C:\Users\User\Local Sites\local1\app\public\wp-blog-header.php:19 [06-May-2022 05:57:52 UTC] PHP 4. do_action() C:\Users\User\Local Sites\local1\app\public\wp-includes\template-loader.php:13 [06-May-2022 05:57:52 UTC] PHP 5. WP_Hook->do_action() C:\Users\User\Local Sites\local1\app\public\wp-includes\plugin.php:474 [06-May-2022 05:57:52 UTC] PHP 6. WP_Hook->apply_filters() C:\Users\User\Local Sites\local1\app\public\wp-includes\class-wp-hook.php:331 [06-May-2022 05:57:52 UTC] PHP 7. WC_AJAX::do_wc_ajax() C:\Users\User\Local Sites\local1\app\public\wp-includes\class-wp-hook.php:307 [06-May-2022 05:57:52 UTC] PHP 8. do_action() C:\Users\User\Local Sites\local1\app\public\wp-content\plugins\woocommerce\includes\class-wc-ajax.php:90 [06-May-2022 05:57:52 UTC] PHP 9. WP_Hook->do_action() C:\Users\User\Local Sites\local1\app\public\wp-includes\plugin.php:474 [06-May-2022 05:57:52 UTC] PHP 10. WP_Hook->apply_filters() C:\Users\User\Local Sites\local1\app\public\wp-includes\class-wp-hook.php:331 [06-May-2022 05:57:52 UTC] PHP 11. WC_AJAX::checkout() C:\Users\User\Local Sites\local1\app\public\wp-includes\class-wp-hook.php:307 [06-May-2022 05:57:52 UTC] PHP 12. WC_Checkout->process_checkout() C:\Users\User\Local Sites\local1\app\public\wp-content\plugins\woocommerce\includes\class-wc-ajax.php:461 [06-May-2022 05:57:52 UTC] PHP 13. do_action() C:\Users\User\Local Sites\local1\app\public\wp-content\plugins\woocommerce\includes\class-wc-checkout.php:1163 [06-May-2022 05:57:52 UTC] PHP 14. WP_Hook->do_action() C:\Users\User\Local Sites\local1\app\public\wp-includes\plugin.php:474 [06-May-2022 05:57:52 UTC] PHP 15. WP_Hook->apply_filters() C:\Users\User\Local Sites\local1\app\public\wp-includes\class-wp-hook.php:331 [06-May-2022 05:57:52 UTC] PHP 16. Orddd_Lite_Process::orddd_lite_validate_date_wpefield() C:\Users\User\Local Sites\local1\app\public\wp-includes\class-wp-hook.php:307
Expected behavior No error must be thrown from our plugin.
Describe the bug Some debug log error was found.
To Reproduce Steps to reproduce the behavior:
Upload the latest live copy Do some setup like time slots + MDT etc Placed some orders Upload the latest git copy, without making any changes I had placed some orders Debug log file shows some errors. Debug log error . [06-May-2022 05:57:52 UTC] PHP Notice: Undefined offset: 1 in C:\Users\User\Local Sites\local1\app\public\wp-content\plugins\order-delivery-date-for-woocommerce\includes\class-orddd-lite-process.php on line 464 [06-May-2022 05:57:52 UTC] PHP Stack trace: [06-May-2022 05:57:52 UTC] PHP 1. {main}() C:\Users\User\Local Sites\local1\app\public\index.php:0 [06-May-2022 05:57:52 UTC] PHP 2. require() C:\Users\User\Local Sites\local1\app\public\index.php:17 [06-May-2022 05:57:52 UTC] PHP 3. require_once() C:\Users\User\Local Sites\local1\app\public\wp-blog-header.php:19 [06-May-2022 05:57:52 UTC] PHP 4. do_action() C:\Users\User\Local Sites\local1\app\public\wp-includes\template-loader.php:13 [06-May-2022 05:57:52 UTC] PHP 5. WP_Hook->do_action() C:\Users\User\Local Sites\local1\app\public\wp-includes\plugin.php:474 [06-May-2022 05:57:52 UTC] PHP 6. WP_Hook->apply_filters() C:\Users\User\Local Sites\local1\app\public\wp-includes\class-wp-hook.php:331 [06-May-2022 05:57:52 UTC] PHP 7. WC_AJAX::do_wc_ajax() C:\Users\User\Local Sites\local1\app\public\wp-includes\class-wp-hook.php:307 [06-May-2022 05:57:52 UTC] PHP 8. do_action() C:\Users\User\Local Sites\local1\app\public\wp-content\plugins\woocommerce\includes\class-wc-ajax.php:90 [06-May-2022 05:57:52 UTC] PHP 9. WP_Hook->do_action() C:\Users\User\Local Sites\local1\app\public\wp-includes\plugin.php:474 [06-May-2022 05:57:52 UTC] PHP 10. WP_Hook->apply_filters() C:\Users\User\Local Sites\local1\app\public\wp-includes\class-wp-hook.php:331 [06-May-2022 05:57:52 UTC] PHP 11. WC_AJAX::checkout() C:\Users\User\Local Sites\local1\app\public\wp-includes\class-wp-hook.php:307 [06-May-2022 05:57:52 UTC] PHP 12. WC_Checkout->process_checkout() C:\Users\User\Local Sites\local1\app\public\wp-content\plugins\woocommerce\includes\class-wc-ajax.php:461 [06-May-2022 05:57:52 UTC] PHP 13. do_action() C:\Users\User\Local Sites\local1\app\public\wp-content\plugins\woocommerce\includes\class-wc-checkout.php:1163 [06-May-2022 05:57:52 UTC] PHP 14. WP_Hook->do_action() C:\Users\User\Local Sites\local1\app\public\wp-includes\plugin.php:474 [06-May-2022 05:57:52 UTC] PHP 15. WP_Hook->apply_filters() C:\Users\User\Local Sites\local1\app\public\wp-includes\class-wp-hook.php:331 [06-May-2022 05:57:52 UTC] PHP 16. Orddd_Lite_Process::orddd_lite_validate_date_wpefield() C:\Users\User\Local Sites\local1\app\public\wp-includes\class-wp-hook.php:307
Expected behavior No error must be thrown from our plugin.