PHP notice when submitting form with empty file fields
-
As per the title, the following error occurs on at least PHP 7.4 when submitting a step with an empty file input.
[20-Apr-2021 15:27:54 UTC] PHP Notice: Undefined index: file-496 in C:\wamp64\www\gc\humanco\wp-content\plugins\cf7-multi-step\inc\frontend\validation.php on line 169 [20-Apr-2021 15:27:54 UTC] PHP Stack trace: [20-Apr-2021 15:27:54 UTC] PHP 1. {main}() C:\wamp64\www\gc\humanco\wp-admin\admin-ajax.php:0 [20-Apr-2021 15:27:54 UTC] PHP 2. do_action() C:\wamp64\www\gc\humanco\wp-admin\admin-ajax.php:187 [20-Apr-2021 15:27:54 UTC] PHP 3. WP_Hook->do_action() C:\wamp64\www\gc\humanco\wp-includes\plugin.php:484 [20-Apr-2021 15:27:54 UTC] PHP 4. WP_Hook->apply_filters() C:\wamp64\www\gc\humanco\wp-includes\class-wp-hook.php:316 [20-Apr-2021 15:27:54 UTC] PHP 5. NjtCF7MLSValidation->cf7mls_validation_callback() C:\wamp64\www\gc\humanco\wp-includes\class-wp-hook.php:292 [20-Apr-2021 15:27:54 UTC] PHP 6. NjtCF7MLSValidation->unship_uploaded_files() C:\wamp64\www\gc\humanco\wp-content\plugins\cf7-multi-step\inc\frontend\validation.php:43
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘PHP notice when submitting form with empty file fields’ is closed to new replies.