Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

TWG creates a directory I can't delete
https://www.tinywebgallery.com/forum/viewtopic.php?f=5&t=687
Page 1 of 1

Author:  Nintai [ 14. Dec 2006, 07:28 ]
Post subject:  TWG creates a directory I can't delete

Three times now TWG has created a _vti_cnf directory somewhere under the pictures directory and I cannot delete it or any files that may be put there.

Also, every now and then the page will go spastic and be constantly reloaded. I have to exit the browser (or tab) and reenter the site.

The last spastic session created this in the debug file (partial list)

Quote:
12.13.2006 22:16:36 - ERROR 2 in /web/photos/admin/.include/fun_extra.php, line 318: unlink(/home/.sites/143/site2/web/photos/pictures/1_Family/_vti_cnf/Jazz Fest.jpg): Permission denied

12.13.2006 22:16:36 - ERROR 2 in /web/photos/admin/.include/fun_extra.php, line 318: unlink(/home/.sites/143/site2/web/photos/pictures/1_Family/_vti_cnf/foldername_de.txt): Permission denied

12.13.2006 22:16:36 - ERROR 2 in /web/photos/admin/.include/fun_extra.php, line 318: unlink(/home/.sites/143/site2/web/photos/pictures/1_Family/_vti_cnf/image.txt): Permission denied

12.13.2006 22:16:36 - ERROR 2 in /web/photos/admin/.include/fun_extra.php, line 318: unlink(/home/.sites/143/site2/web/photos/pictures/1_Family/_vti_cnf/Mardi Gras Group.jpg): Permission denied


If you visit www.lafleurhome.net and enter the photo album, select Misc Photos and you will see the bogus directory. If you click on it, all sorts of strange things happen. Right now, the _vti_cnf directory has a copy of every file in the parent directory and none can be deleted via FTP or by the TWG admin programs. Permission denied.

This is a friend's site and I'm just now getting the hang of all the bells and whistles in TWG, but this problem needs to be resolved. The host is a friend of his.

One final thing, in the Normal view of the file structure, I see all the original directories created by TWG installer have UID/GID of apache(48)/apache(48), the three _vti_cnf directories and their files have nobody(99)/site2(502).

Any suggestions.

Author:  TinyWebGallery [ 14. Dec 2006, 10:01 ]
Post subject: 

Hi,

interesting - the problem is that if TWG would create this directories they would have different user rights.
I have checked my whole code - I don't create this folders.

But I asked google! This are folders created by frontpage - maybe frontpage extensions are running on this host!

The problem is that TWG does detect these directories and does think that they are normal directories. And accessing them fails and TWG is stuck - you have to close the browser.


now it's how to solve this :).

easy - you can tell TWG which folder it should ignore!

in the config.php you find a setting called:

$exclude_directories=array("CVS","thumbs","data.pxp");
extend this to:
$exclude_directories=array("CVS","thumbs","data.pxp","_vti_cnf");

would work. BUT you should set this my_config.php! (for easier update of TWG)

if you put it in config.php or in the TWG Admin simply use:

$exclude_directories[]="_vti_cnf";

This adds this dir to the exclude array :).

I have added this directory to my local build too - it will be in the exclude list in the next build.

/Michael

Author:  extremegirl [ 8. Jan 2007, 18:11 ]
Post subject: 

i have this exact problem and yes i use frontpage. i did everything you said to do, and i am still getting the same problems. i included it both in the config.php and the myconfig.php

any other ideas? you can see it here
www.firedupyouth.org/media/gallery/index.php

i need this fixed soon, so any help would be greatly appreciated. thanks

Author:  TinyWebGallery [ 8. Jan 2007, 18:36 ]
Post subject: 

but what is your problem?

I checked the gallery - seems to work fine.

The directories are not a TWG problem - it's because of Frontpage!!! Frontpage creates them.
Adding this to the config leads only TWG to work properly.

I don't know how to delete this dirs because they are not created by TWG and cannot be removed with php at all because it's a different owner.
Best solution is to use any other tool except frontpage - because they are all better ;).

/Michael

Author:  TinyWebGallery [ 8. Jan 2007, 18:37 ]
Post subject: 

And you should delete the folder_de.txt in the pictres folder ;).

And maybe the problem was that after you have entered the exclude dir you did not close the browser - because then the cache of the directory reading was not refreshed ;).

/Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/