Zenphoto error: Album does not exist

If you zenphoto stops working with the error message “Zenphoto error: Album does not exist.” and you have “RewriteCond: NoCase option for non-regex pattern ‘-d’ is not supported and will be ignored” in your apache error.log, don’t despair, I have the solution for you!

Upgrade to the latest zenphoto release ( as I’m writing this) then edit the .htaccess file and change the following lines:

RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]


RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d

I.e. remove the NC parts. That should make it all work again!