zenphoto forums » Installation Support

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

(7 posts)
  • Started 5 years ago by sevenupcan
  • Latest reply from sbillard
  1. sevenupcan

    Junior
    Joined: Apr '08
    Posts: 7

    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?

    Posted 5 years ago #
  2. macalter

    Contributor
    Joined: Mar '08
    Posts: 630

    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>.

    Posted 5 years ago #
  3. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,490

    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).

    Don't forget to read the Forum rules and usage resources
    Posted 5 years ago #
  4. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,818

    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.

    Don't forget to read the Forum rules and usage resources
    Posted 5 years ago #
  5. macalter

    Contributor
    Joined: Mar '08
    Posts: 630

    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.)

    Posted 5 years ago #
  6. sevenupcan

    Junior
    Joined: Apr '08
    Posts: 7

    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.

    Posted 5 years ago #
  7. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,818

    Feel free to create a ticket. I'm sure that someone with rewrite rule expertise can change the rules to fix this.

    Don't forget to read the Forum rules and usage resources
    Posted 5 years ago #

RSS feed for this topic

Reply

You must log in to post.