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 28. Nov 2024, 21:58

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Fatal Error (again)
PostPosted: 18. Jan 2009, 20:16 
Offline

Joined: 11. Oct 2007, 04:08
Posts: 46
Hi I get this error again

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1996800 bytes) in /mounted-storage/home91c/sub001/sc39103-BTMH/www/inc/filefunctions.inc.php on line 232

Pls help!!!


Top
 Profile  
 
 Post subject:
PostPosted: 18. Jan 2009, 21:37 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
You don't have enough memory for the amount of images you have.

Seems like reading the whole directory structure + counting the images and so on takes to much memory.

You can decrease this a little bit by setting
$precache_background=false;

You can set
$show_number_of_pic = false;
$show_counter_in_jstree=false;

then not the whole directory structure is parased at the beginning.

How many images are in your gallery?

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 18. Jan 2009, 22:41 
Offline

Joined: 11. Oct 2007, 04:08
Posts: 46
Hi those 3 code strings was set already, I have more than 10000 pics

_________________
www.latangaroja.com


Top
 Profile  
 
 Post subject:
PostPosted: 19. Jan 2009, 10:25 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Have you set

$show_changes=true?

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 19. Jan 2009, 10:58 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I just checked the code. I always go through this function to build the counter cache. I have this on my todo list to optimized this.

I can send you a small update where this function in not called if the settings are like describe above because then none of the values calculated there are needed.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 19. Jan 2009, 19:30 
Offline

Joined: 11. Oct 2007, 04:08
Posts: 46
Hi, this is what I paste in the aditional tab in the control panel:

$show_counter_in_jstree=false;
$show_number_of_pic=false;
$precache_background=false;
$show_changes=true;

The gallery still with the same error, yes pls send me the update you say, tks 4 all!!!

_________________
www.latangaroja.com


Top
 Profile  
 
 Post subject:
PostPosted: 19. Jan 2009, 19:50 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
$show_changes=true; is the "killer". Then my fix won't help.

because to determine if there are new images each files has to be checked. This is cached and only done once every 4 hours but in your case it never comes to the end.

And the information about new images is cached and if there are many new images this can need quite some space. But that it takes that much is unusual because you would have a session of 30 MB. If I have a larger one the session is 2 MB.

I just tested with 20.000 images. It only takes ~ 3 seconds to load and my session is about 120 kb only.
If would be really interesting what should use 30 MB at the beginning in your install...

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 19. Jan 2009, 19:54 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you can try to enable some memory debugging:

set
$enhanced_debug = false;

to true in inc/readxml.inc.php.

There the memory is tracked while the xml files are loaded. because they are cached in the memory.

Something else. Does thererror occur when you turn off the cache?

$cache_dirs = false; (In the backend this is called session cache).

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 19. Jan 2009, 20:53 
Offline

Joined: 11. Oct 2007, 04:08
Posts: 46
Hi I set
$enhanced_debug = false; to true in inc/readxml.inc.php. And turn off the cache, the site is alive again, is recomended to let the cache off from now on??

Tks!!

_________________
www.latangaroja.com


Top
 Profile  
 
 Post subject:
PostPosted: 19. Jan 2009, 21:19 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I just check your site. and turned on the cache dynamically (if you click on the "no cache") and it works really nice and fast.
I'm not sure if simply one of the caches was to big an could not be loaded. In 1.7.6 I added an additional functionality that I check each time it TWG was completely loaded. If this is not the case I clean the session cache files.

I would recommend to update to this version first. If this does not help I would leave the cache off.

- Michael


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


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:
powered by phpbb | Datenschutz/ Privacy policy