Cannot create an album called "themes" as it interferes with zenphoto theme dir

Hi,

When I create a folder called "themes" it seems to get mistaken for Zenphoto's theme directory, and it says access is denied. I know I could just change the name of the directory to themes2 or something similar, but wondered if there was a fix for this?

Comments

  • I'm not one of the developers but my experience has been even with basic HTML you shouldn't use certain reserved names to avoid conflict. ZP reserves "themes" for its needs so it's only logical you shouldn't be using it as a folder <SMILE>.
  • acrylian Administrator, Developer
    This is not exactly true, you can have an album named themes, it does work without mod_rewrite as `zenphoto/index.php?album=themes`. I guess zenphoto's htaccess file needs some modification to not confuse it with the direct themes path (sorry, don't know which at the moment).
  • The .htaccess file checks to see if the path you provide is a valid file/folder. If it is no redirection is done. So this means you can't have an album named 'themes' (But you could name one 'Themes'!). Nor can you have one named 'cache', or 'zp-core'. Unless, of course, you don't use mod_rewrite.
  • I'm from "old school": when you never used reserve names nor use punctuation or special characters in file names <LOL!>. (Hey 8.3 days were great.) My reply had nothing to do with mod_rewrite as I don't know about it other than I have it on. (And what you guys have posted about it.)
  • Thanks. I guess the easiest way will be to rename it something else, but I still feel for a fairly modern application this is a big flaw. If we work with the mentallity of avoiding reserved names I feel we may find ourselves being open to more issues as the application expands.
  • Feel free to create a ticket. I'm sure that someone with rewrite rule expertise can change the rules to fix this.
Sign In or Register to comment.