• I’m getting the warning below. Can anyone kindly give me some help.

    : Invalid argument supplied foreach() in
    …/html/wp-content/plugins/anywhere-elementor-pro/includes/modules/acf-gallery/skins/skin-base.php
    on line 1447

    The line after the commented would be line 1447.

    <div <?php echo $this->parent->get_render_attribute_string('grid-wrapper'); ?>>
                        <div class="ae-grid">
                            <?php
    //  THIS IS LINE 1447
                            if(!empty($images)) {
                                foreach ($images as $image) {
                                    if ($image_size == 'full') {
                                        $src = $image['url'];
                                    } else {
                                        $src = $image['sizes'][$image_size];
                                    } ?>
                                    <figure class="ae-grid-item">
                                        <div <?php echo $this->parent->get_render_attribute_string('grid_item_inner'); ?>>
                                            <?php if($this->get_instance_value('enable_image_ratio') == 'yes') { ?>
                                            <div class="ae-acf-image">
                                                <?php } ?>
                                            <a href="<?php echo $image['url']; ?>" <?php echo $this->parent->get_render_attribute_string('link'); ?>>
                                                <img src="<?php echo $src; ?>"/>
                                                <div class="ae-grid-overlay <?php echo $animation ?>">
                                                    <div class="ae-grid-overlay-inner">
                                                        <div class="ae-icon-wrapper">
                                                            <?php if (!empty($icon)) { ?>
                                                                <div class="ae-overlay-icon"><i
                                                                            class="<?php echo $icon ?>"> </i></div>
                                                            <?php } ?>
                                                        </div>
    
                                                        <?php if (!empty($image['caption']) && $caption == 'yes') { ?>
                                                            <div class="ae-overlay-caption"><?php echo $image['caption']; ?></div>
                                                        <?php } ?>
                                                    </div>
                                                </div>
                                            </a>
                                                <?php if($this->get_instance_value('enable_image_ratio') == 'yes') { ?>
                                                </div>
                                                    <?php } ?>
                                        </div>
                                    </figure>
                                <?php }
                            }?>
                         </div>
                   </div>
            <?php
        }
    • This topic was modified 4 years, 5 months ago by roncosta.
    • This topic was modified 4 years, 5 months ago by roncosta.
Viewing 1 replies (of 1 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    /anywhere-elementor-pro/

    For pro or commercial product support please contact the author directly on their site. This includes any pre-sales topics as well.

    As the author is aware, commercial products are not supported in these forums. I am sure they will have no problem supporting you there.

Viewing 1 replies (of 1 total)
  • The topic ‘Invalid Argument foreach() – ACF Gallery’ is closed to new replies.