• Resolved Simon Kane

    (@simonkane)


    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

    (@tomaszwp)

    Hello @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

    (@simonkane)

    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. ??

    I’m having the same issue and tried this fix and still having the problem.

    Plugin Support Tomasz WP Desk

    (@tomaszwp)

    Hello @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

    (@tomaszwp)

    I am marking this topic as resolved as we have not received any new replies.

    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.