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 (1.0.8.2 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]

to

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

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