Support

Account

Home Forums ACF PRO Some acf methods generate lot of PHP warnings

Helping

Some acf methods generate lot of PHP warnings

  • Hi,

    I’ve noticed that some methods like acf_get_metadata generates a lot of PHP warnings when I use get_field on repeater (at least on PHP7)

    I do not why but I got an array of post_id and these methods generate error because they attempt to receive a unic post_id and get an array.

    What I’ve done to fix it is to insert this in the fist line of have_rows function,

    if (is_array($post_id) ) $post_id = $post_id[0];

    And ACF works silently….

    Christian

  • Forgot It.. Sorry . I’ve found that another plugin I use have some improvements and the method I use return an array of post instead of a unic value….

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

The topic ‘Some acf methods generate lot of PHP warnings’ is closed to new replies.