• Resolved digifish

    (@digifish)


    When broadcasting a form with ACF fields, a flexible content area without a layout and/or content throws an “invalid foreach” error with ACF.php.

    I tracked down the issue in the code, and it looks it’s trying to loop through a non-existent array.

    I was able to implement a quickie bypass,

    case 'flexible_content':
         if(!is_array($action->field->layouts) || empty($action->field->value)) {
              break;
         }
    .....

    However, it would be great to have this changed in the master.
    https://ww.wp.xz.cn/plugins/threewp-broadcast/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Error with ACF flexible_content being empty’ is closed to new replies.