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

cache forlder under admin?
https://www.tinywebgallery.com/forum/viewtopic.php?f=5&t=2294
Page 1 of 1

Author:  Maskolis [ 8. Dec 2009, 19:36 ]
Post subject:  cache forlder under admin?

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?

Author:  TinyWebGallery [ 8. Dec 2009, 19:45 ]
Post subject: 

no - can you give me the full error messages?

- Michael

Author:  Maskolis [ 8. Dec 2009, 22:57 ]
Post subject: 

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)

Author:  TinyWebGallery [ 9. Dec 2009, 00:57 ]
Post subject: 

Thanks.

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

- Michael

Author:  Maskolis [ 9. Dec 2009, 02:45 ]
Post subject: 

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

Author:  TinyWebGallery [ 9. Dec 2009, 02:51 ]
Post subject: 

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

Author:  TinyWebGallery [ 9. Dec 2009, 02:58 ]
Post subject: 

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

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