Title: Missing internal data field value
Last modified: December 8, 2020

---

# Missing internal data field value

 *  Resolved [Simon Kane](https://wordpress.org/support/users/simonkane/)
 * (@simonkane)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/missing-internal-data-field-value/)
 * Running Version 2.7.1, and all else is “current”. PhP is v7.
    Getting the following
   error message (x3):
 * Notice: Undefined index: required in /{redacted}/wp-content/plugins/flexible-
   checkout-fields/classes/plugin.php on line 552
 * Failing line:
    $new[ $key ][ $field[‘name’] ][‘required’] = $fields[ $key ][ 
   $field[‘name’] ][‘required’];
 * Prior line:
    if ( isset( $fields[ $key ][ $field[‘name’] ] ) ) {
 * The code is assuming that each entry in $fields will have all expected values.
 * The section in question is controlled by the array at line 11 – in this case,
   the three shipping_* fields.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [Tomasz WP Desk](https://wordpress.org/support/users/tomaszwp/)
 * (@tomaszwp)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/missing-internal-data-field-value/#post-13764746)
 * Hello [@simonkane](https://wordpress.org/support/users/simonkane/)
 * I informed our Developer about this case and he was impressed with the professional
   approach and precise description of the issue. Thanks for that.
 * Please find this line:
    `$new[ $key ][ $field['name'] ]['required'] = $fields[
   $key ][ $field['name'] ]['required'];`
 * And replace it with this:
    `$new[ $key ][ $field['name'] ]['required'] = $fields[
   $key ][ $field['name'] ]['required'] ?? false;`
 * Please let me know if it works.
 *  Thread Starter [Simon Kane](https://wordpress.org/support/users/simonkane/)
 * (@simonkane)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/missing-internal-data-field-value/#post-13779197)
 * Fix makes sense to me!
 * I’ll try it soonest. I’m so confident it’ll work, I’m marking as resolved. 🙂
 * and thanks for noticing (“he was impressed with the professional approach and
   precise description of the issue.”).
 * Maybe now I won’t be moderated by the WP gang any more. 😉
 *  [tateword](https://wordpress.org/support/users/tateword/)
 * (@tateword)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/missing-internal-data-field-value/#post-13783930)
 * I’m having the same issue and tried this fix and still having the problem.
 *  Plugin Support [Tomasz WP Desk](https://wordpress.org/support/users/tomaszwp/)
 * (@tomaszwp)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/missing-internal-data-field-value/#post-13785397)
 * Hello [@tateword](https://wordpress.org/support/users/tateword/)
 * Please let me know if there is exactly the same error on the same line. I will
   appreciate the error screenshot.
    Make sure the latest versions of FCF and WordPress/
   WooCommerce are installed.
 *  Plugin Support [Tomasz WP Desk](https://wordpress.org/support/users/tomaszwp/)
 * (@tomaszwp)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/missing-internal-data-field-value/#post-13817241)
 * I am marking this topic as resolved as we have not received any new replies.
 *  [tateword](https://wordpress.org/support/users/tateword/)
 * (@tateword)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/missing-internal-data-field-value/#post-13819095)
 * Hi, sorry for late reply. Since it appears error is gone now I believe the fix
   did indeed work and that it was a cache issue.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Missing internal data field value’ is closed to new replies.

 * ![](https://ps.w.org/flexible-checkout-fields/assets/icon-256x256.gif?rev=2522628)
 * [Flexible Checkout Fields for WooCommerce - WooCommerce Checkout Manager](https://wordpress.org/plugins/flexible-checkout-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-checkout-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-checkout-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-checkout-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-checkout-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-checkout-fields/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [tateword](https://wordpress.org/support/users/tateword/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/missing-internal-data-field-value/#post-13819095)
 * Status: resolved