Home Forums Bug Reports acf-field-functions.php:349 – Undefined index: key


acf-field-functions.php:349 – Undefined index: key

  • After updating from 5.7.10 to 5.8.0, I get the follow notice:

    Notice: Undefined index: key in /plugins/advanced-custom-fields-pro/includes/acf-field-functions.php on line 349

    It doesn’t seem to cause any issues other than throwing the notice. Any insight on how to resolve this?

    ACF Pro version: 5.8.0
    PHP version: 7.1.20
    ACF Implementation: Flexible content component using cloned ACF field groups as layouts.


  • I didn’t update to 5.7.11 because of the issues outlined in the following thread: (Update 5.7.11 Crashes Site)

    The site no longer crashes, but the Notice is still an issue.

  • Same here:

    Notice: Undefined index: key in .../acf-field-functions.php on line 349

    I switched off the WP_DEBUG_DISPLAY for now.

  • I opened a support ticket and got a response from the ACF team stating that they could not recreate the issue. At this point, I’ve just turned debug logging off as well.

  • Thanks for the info.

    I’ve got over 60 field groups, some of them are flexible fields with several of the other field groups as clones inside their flexible field layouts.

    Notices started to pop up after I’ve duplicated the field groups via WPML (WordPress Multilingual Plugin) functionality to make the field groups available in other languages.

    I did not consider the hierarchy of the fields while duplicating them. Meaning: I should have duplicated the ones which are used as clones first. And only after duplicating all the basic field groups I should have started with duplicating the rather complex ones.

    –> Might be the reason why I get these notices now.

  • The line that’s causing your issue indicates that the field group does not have a key, which should be impossible.

    As far as the duplicated groups for wpml and clone field. I don’t know how this works, but it could be that the duplicated groups that include cloned groups the key of the cloned group was not set correctly. I would try to edit these duplicated groups and check the clone field, maybe updating these will work?

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

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.