• Resolved zerodigital

    (@zerodigital)


    Since updating to 1.7.1 my site keeps showing the below error in the PHP file as per the below:

    altoqs-co-uk.stackstaging.com [Mon Oct 04 20:03:33 2021] [error] [client xx.xxx.xx.xx] AH01071: Got error ‘PHP message: PHP Warning: Illegal string offset ‘name’ in /home/sites/19a/b/b9242b66c0/public_html/wp-content/plugins/navz-photo-gallery/includes/acf_photo_gallery.php on line 10′

    PHP Code:

    <?php
    $pid = get_the_id();
    $images = acf_photo_gallery('photo_gallery', $pid);
    if(count($images)):
    	foreach($images as $image):
    		$full_image_url= $image['full_image_url'];
    		$id = $image['id'];
    ?>
    <div class="swiper-slide rental-gallery">
        <img alt="" class="rental-gallery-img" src=<?php echo $full_image_url; ?>>
    </div>
    <?php
    endforeach;
    endif;
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Illegal string offset ‘name’ in 1.7.x’ is closed to new replies.