Thread tagged as: Error, Gallery

Gallery spitting out blanks


At the end of my page html output from the page function 'perch_gallery_album_images', I am getting a blank <li> as follows:

        <a href="" class="gallery-link">
            <img src="" width="" height="" alt="">

Any reason why this would be ? There is no gallery item there. Tried deleting and readding last item to no avail.


Adam Menczykowski

Adam Menczykowski 1 points

  • 7 years ago

This is the template code for a_list_image.html

    <h1><perch:gallery id="albumTitle" /> Gallery</h1>

    <ul class="imagelisting glist">
        <a href="<perch:gallery id="main"  />" class="gallery-link">
            <img src="<perch:gallery id="small" />" width="<perch:gallery id="small-w" />" height="<perch:gallery id="small-h" />" alt="<perch:gallery id="imageAlt" />" />

Here is how I'm calling it on the master page:

    perch_content_create('Gallery Name', array(
        'template' => 'gallery_name.html'
    $gallery_name = perch_content('Gallery Name', true);

    perch_gallery_album_images($gallery_name); ?>
Drew McLellan

Drew McLellan 2638 points
Perch Support

Did you have any failed uploads?

Not that I know of... how can I check? by looking in the DB?

Drew McLellan

Drew McLellan 2638 points
Perch Support

There's where I'd imagine the empty item could come from.