Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 26. Sep 2018, 06:46

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 8. Dec 2009, 19:36 
Offline

Joined: 6. Dec 2009, 09:55
Posts: 9
Location: Lithuania, Kaunas
After I enabled folder structure for cache images ($use_cache_with_dir=True;) - I started to receive permission denied errors in log. Everything worked fine (thumbnails and small images created, no errors in the frontend).
It appears that script tries to create folder 'cache' under '/admin' folder (which is locked for writing, except few writable files). I created folder '/admin/cache', granted write permisions for sript - no more errors. I see - that folder structure is created there (same as in /pictures and /cache) - but it's completely empty.

Just curious - is this forder structure really required?


Top
 Profile  
 
 Post subject:
PostPosted: 8. Dec 2009, 19:45 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10897
no - can you give me the full error messages?

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 8. Dec 2009, 22:57 
Offline

Joined: 6. Dec 2009, 09:55
Posts: 9
Location: Lithuania, Kaunas
1. set $enable_enhanced_debug=True;
2. renamed /admin/cache -> cache1
3. Browsed to album with 322 images:
Code:
12.08.2009 22:46:42 (en) - ERROR 2 in b\wwwroot\Foto\inc\filefunctions.inc.php, line 3660: mkdir() [_a href='function.mkdir'_function.mkdir_/a_]: Permission denied
    Request: /Foto/admin/index.php?action=helper_gen&PHPSESSID=v6vcv05h002jl33g5e7mqlbao7
12.08.2009 22:46:42 (en) - ERROR 2 in b\wwwroot\Foto\inc\filefunctions.inc.php, line 3660: mkdir() [_a href='function.mkdir'_function.mkdir_/a_]: Permission denied
    Request: /Foto/admin/index.php?action=helper_gen&PHPSESSID=v6vcv05h002jl33g5e7mqlbao7
12.08.2009 22:46:42 (en) - ERROR 2 in b\wwwroot\Foto\inc\filefunctions.inc.php, line 3660: mkdir() [_a href='function.mkdir'_function.mkdir_/a_]: Permission denied
    Request: /Foto/admin/index.php?action=helper_gen&PHPSESSID=v6vcv05h002jl33g5e7mqlbao7
...

12.08.2009 22:46:43 (en) - ERROR 2 in b\wwwroot\Foto\inc\filefunctions.inc.php, line 3660: mkdir() [_a href='function.mkdir'_function.mkdir_/a_]: Permission denied
    Request: /Foto/admin/index.php?action=helper_gen&PHPSESSID=v6vcv05h002jl33g5e7mqlbao7

(Total 928 lines)


Top
 Profile  
 
 Post subject:
PostPosted: 9. Dec 2009, 00:57 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10897
Thanks.

I found the problem and fixed it - will be available in 1.8 too.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 9. Dec 2009, 02:45 
Offline

Joined: 6. Dec 2009, 09:55
Posts: 9
Location: Lithuania, Kaunas
Perfect!
Even more interesting structure found under /cache.
Folder /pictures contains 60 subfolders and ~4200files.
Folder /cache has reasonable amount of files (~8400) and ... 1741 subfolders! :shock:
Empty folders (sometimes even recursively) seem to be created for css, php files, etc.

P.S. Linked text files show no files - only folders (output of 'tree /a').


Top
 Profile  
 
 Post subject:
PostPosted: 9. Dec 2009, 02:51 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10897
Wow.

Seems I copy everything a coule of times...

Can I send you 1.8 RC1?

I don't know if everything is related to the cache creation I just found.
Because I never had the other structure you found.

The cache can have 3 times the amount of image you have in the pictures folder - thumb, detail and slideshow images.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 9. Dec 2009, 02:58 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10897
and you should start with a fresh install. TWB 1.8 has ~600 files. Yours is already really crowded. Especially below the i_frames buttons is a bunch of folders I don't know why they are there.

- Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy