PHP Undefined Index Notices on Form Submission
-
Hi, I’m using using version 1.7.2 of Form Manager on WP 4.2.3. I turned on WP_DEBUG for a project I’m developing and saw that while the form itself is working great, some notices are cropping up on submission. Here’s a sampling:
Notice: Undefined index: separator-559fc6af702d8 in /(path-redacted)/wp-content/plugins/wordpress-form-manager/api.php on line 334
Notice: Undefined index: note-559fc6b1cfa5e in /(path-redacted)/wp-content/plugins/wordpress-form-manager/api.php on line 334
Notice: Undefined index: recaptcha-559fc6b33dbd8 in /(path-redacted)/wp-content/plugins/wordpress-form-manager/api.php on line 334I looked at lines 333-335 of api.php and see that there’s a foreach loop stripping slashes, etc., for each item in the form. Since notes, separators and recaptchas aren’t standard form fields, the loop doesn’t quite know to do with them.
This isn’t breaking my project, but I thought you may want to know.
- The topic ‘PHP Undefined Index Notices on Form Submission’ is closed to new replies.