Support

Account

Home Forums Add-ons Repeater Field Warning: Invalid argument supplied for foreach()

Solved

Warning: Invalid argument supplied for foreach()

  • Greetings,

    I saw another post with a similar issue but the reply was marked private. Recently the repeater field stopped working. I’ve updated the ACF plugin to v 4.2.1 and also updated to WP v 3.6. Still doesn’t work.

    I get this error when it renders in the browser:
    Warning: Invalid argument supplied for foreach() in /html/wp/wp-content/plugins/acf-repeater/repeater.php on line 894

    and this error when I try to edit the posts or custom fields:
    Fatal error: [] operator not supported for strings in /html/wp/wp-content/plugins/acf-repeater/repeater.php on line 418

    I’ve tried disabling plugins but nothing is working.

    Any help is appreciated. Thanks.

  • Hi @stilton

    Can you update to the latest repeater field add-on?

    Perhaps your repeater field does not contain any sub fields?

  • I’m getting the same error. I have no idea why its happening.

    It just doesn’t want to save the repeater fields at all.

    Found the issue:

    http://wordpress.org/plugins/simple-mail-address-encoder/

    Do not use this plugin, it will break all your repeater fields.

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

The topic ‘Warning: Invalid argument supplied for foreach()’ is closed to new replies.