The simpler media website CMS
This evening I patched the software packages on my Ubuntu server, and after completed it, it told me I should run "sudo apt autoremove" to get rid of some supposedly unneeded packages, so I did.
Next thing I know, I open my Zenphoto site and check the "Debug" logs, and get a flood of these errors:
USER NOTICE: Bad filename suffix in newImage([FILENAME].jpg) in /var/www/html/[servername]/zp-core/classes/class-image.php on line 138 trigger_error called from Image::newImage (class-image.php [138]) from SearchEngine->getSearchImages (class-searchengine.php [1620]) from SearchEngine->getImages (class-searchengine.php [1674]) from SearchEngine->getNumImages (class-searchengine.php [1564]) from getNumImages (template-functions.php [2163]) from printMetadata (functions-gallery-formatting.php [616]) from include_once (header.php [62]) from include (404.php [22]) from include (404.php [36]) from include (index.php [133]) from index.php [111]
In addition each time I opened an album on my Zenphoto site, every single image that was in the album would disappear, despite the images still existing on the file system.
So I did some digging, and found the answer - for some reason my server had decided that the "php8.3-gd" package was no longer needed, so "apt autoremove" removed it. But that package is the GD graphics library, which Zenphoto needs to handle image files.
So the fix for this issue - reinstall the php8.3-gd package.
Now the images are shown in the albums as expected, but unfortunately the caption data has been deleted - I'm going to need to restore my site from the latest DB backups to fix that.
Comments
Yes, Zenphoto requires either GD or Imagick.
Unfortunate but expected as the file system define the database. Restoring the db backup should fix this but the albums folder structure must be the same as with the backup