Home › Forums › ACF PRO › Warning: Invalid argument "**" foreach "**" api-helpers.php on line 3213 › Reply To: Warning: Invalid argument "**" foreach "**" api-helpers.php on line 3213
Hi,
sorry for the late reply.
This is what I get with (for testing) 1 image:
Warning: Invalid argument supplied for foreach() in /var/www/html/live/files/plugins/advanced-custom-fields-pro/includes/api/api-helpers.php on line 3213
array(1) { [0]=> array(24) { ["ID"]=> int(282347) ["id"]=> int(282347) ["title"]=> string(14) "04_Porsche_917" ["filename"]=> string(18) "04_Porsche_917.jpg" ["filesize"]=> int(223682) ["url"]=> string(69) "https://aure3.will-fahren.at/files/uploads/2019/03/04_Porsche_917.jpg" ["link"]=> string(75) "https://aure3.will-fahren.at/autowelt/porsche-917/attachment/04_porsche_917" ["alt"]=> string(0) "" ["author"]=> string(4) "1838" ["description"]=> string(0) "" ["caption"]=> string(183) "Der 917-001 wurde als erstes von insgesamt 25 Exemplaren der Homologationsserie im Frühjahr 1969 aufgebaut und als Gruppe-4-Sportwagen vor dem Porsche Werk 1 in Zuffenhausen gezeigt." ["name"]=> string(14) "04_porsche_917" ["status"]=> string(7) "inherit" ["uploaded_to"]=> int(282339) ["date"]=> string(19) "2019-03-12 08:03:18" ["modified"]=> string(19) "2019-03-12 08:04:52" ["menu_order"]=> int(0) ["mime_type"]=> string(10) "image/jpeg" ["type"]=> string(5) "image" ["subtype"]=> string(4) "jpeg" ["icon"]=> string(65) "https://aure3.will-fahren.at/wp-includes/images/media/default.png" ["width"]=> int(1150) ["height"]=> int(647) ["sizes"]=> array(0) { } } }
I realized that this error message also appears in the Admin Area right above the Custom Fields.
Thanks and Greetings
Mikkel
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN
— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.
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.