Member
Member
sevenupcan   2008-05-12, 13:17
#1

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?

Member
Member
macalter   2008-05-12, 15:03
#2

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 .

Administrator
Administrator
acrylian   2008-05-12, 15:36
#3

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

Member
Member
sbillard   2008-05-12, 16:50
#4

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.

Member
Member
macalter   2008-05-12, 19:31
#5

I'm from "old school": when you never used reserve names nor use punctuation or special characters in file names . (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.)

Member
Member
sevenupcan   2008-05-14, 15:52
#6

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.

Member
Member
sbillard   2008-05-14, 18:18
#7

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.