Forum

Thread tagged as: Error, Gallery

Rogue ghost image in Gallery app

I had an issue where my client was uploading images to the gallery app and they stated they were uploaded but didn't then show up once the upload dialog finished. I figured it was a PHP memory issue and upped it to the highest the host allows (128MB) and now the images upload and show in the gallery. However, somewhere during this process, a ghost image seems to have entered the gallery and is still haunting it.

While on the album listing page, the album in question is listed as having 34 images. Only 33 show when you click into the gallery in Perch. On the front end, a rogue <li> element is being output with no defined attributes:

<li>
    <a rel="slideshow" title="" href="">
        <img src="" width="" height="" alt="">
    </a>
</li>

So Perch thinks there's an image in there which doesn't show in the gallery UI for me to select and remove it. Any thoughts on how to handle it? Or should I just go into the DB and find the culprit in the perch2_gallery_images table and remove it manually? Thank you.

SUMMARY INFORMATION

Perch: 2.8.33, PHP: 5.6.29, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.33), assets (2.8.33), categories (2.8.33), perch_blog (5.0), perch_gallery (2.8.6)
App runtimes: <?php include(PERCH_PATH.'/core/apps/content/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_gallery/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_blog/runtime.php'); ?>
PERCH_LOGINPATH: /perch
PERCH_PATH: /***/***/dev.practiceofimmediacy.com/perch
PERCH_CORE: /***/***/dev.practiceofimmediacy.com/perch/core
PERCH_RESFILEPATH: /***/***/dev.practiceofimmediacy.com/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 64M, Max POST 65M, Memory: 128M, Total max file upload: 64M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /***/***/dev.practiceofimmediacy.com
HTTP_HOST: dev.practiceofimmediacy.com
James Lakey

James Lakey 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you getting any errors in the log?

In the PHP error log? Nothing pertinent, no.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok. I would just delete the image from the database as you suggest. Sounds like a failed upload.

Deleting all images with 'imageStatus' of 'uploading' seemed to do the trick. Thanks.