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

Galery clocked
https://www.tinywebgallery.com/forum/viewtopic.php?f=5&t=1847
Page 3 of 3

Author:  TinyWebGallery [ 11. Feb 2009, 19:12 ]
Post subject: 

Right now it run's fine.

Very strange. You should delete the folder.txt in the pictures folder. It still shows the default text.

Can you do the following settings:
$autocreate_folder_image = true;
$autocreate_folder_image_recursive = false;

I had a user where the recursive generation was a problem. Unfortunatealy it never happend on any of my machines.

- Michael

Author:  Merlin44 [ 11. Feb 2009, 19:41 ]
Post subject: 

It seems working well now..
But i like this function lol (i remember to have proposed it before)
So it's my fault, my wish crash my own gallery lol

I hope it's just that.
Anyway. it work well before ... Dont know why

Author:  TinyWebGallery [ 11. Feb 2009, 19:53 ]
Post subject: 

It's on my todo list to check this. because someone had a problem with it before. But I cannot find why this is the case. Maybe I make the recursive solution a little bit easier. Right now the xml files are all read to find the most views one. I maybe simply pick the first or a random one.

- Michael

Author:  Merlin44 [ 11. Feb 2009, 20:35 ]
Post subject: 

The recursive function can use too much memory even with little xml files.
I hope that we can continue with this great function (the one wich can contribute to have the most viewed pic in the first folder)
Not the first or a random one...
Anyway, it work well before... (Sorry to answer that each time :oops: )
You help me to found what's the new problem !
Resolution : Memory used by my server never change always 40 Mo.
Before : OK Now : Bad
Recursive xml for most viewed pic : Before OK, now : Bad
Cache... I can see everything, but when i click on bandwith reset..
Before : OK, now : Bad

Understand that's only for your great job and to help if i say that.

Author:  TinyWebGallery [ 11. Feb 2009, 20:54 ]
Post subject: 

i'll check the recursive function. I think this locks up the gallery. So the last 2 things are connected.

About memory. This has not changed since 1.7. If an image needs too much memory then there is nothing I can do about it

- Michael

Author:  TinyWebGallery [ 11. Feb 2009, 23:36 ]
Post subject: 

I can reproduce the problem.

It's because of memory. It's actually not even the recursive function. Its the folderimage creation. Normally one image is generated at once. But in this task all folderimages are created in a loop if they don't exist (This is why a reset is actually bad). And after each loop a little bit memory is not released by php. And after a couple of files the memory limit can be reached.

i'll try to optimize the memory usage of php at this place.
The same actually does happen on my own gallery now to because I have added a couple of folders and now I hit the limit as well.

Therefore there will be a fix ;).

- Michael

Author:  Merlin44 [ 11. Feb 2009, 23:55 ]
Post subject: 

You are the best.
Sorry to bother you with that.

Author:  TinyWebGallery [ 12. Feb 2009, 01:06 ]
Post subject: 

you can download the patch.

I reduced the max. memory usage in my gallery from 19 MB to 10 MB by reducing the amount of data that is cached.

But you still should look that the maximum resolution should be not really close to the limit I show in the info.

In the next patch I'll change the calculation for the maximum resolution by taking some settings into account that uses quite some memory like the automatic folder image creation.

- Michael

Author:  TinyWebGallery [ 12. Feb 2009, 02:03 ]
Post subject: 

If you have downloaded already. Do it again.

I have added that the memory detection is using the free memory and not the memory limit as parameter. This is much more precise.
And I have added a fallback if the folder image cannot be created. Now the gallery should not lockup anymore but simply show whatever would be displayed without this setting.

The info.php is changed now to. It takes the parameters into acount when generating the max resulution you can use.

- Michael

Author:  Merlin44 [ 12. Feb 2009, 10:39 ]
Post subject: 

TinyWebGallery wrote:
you can download the patch.


Where ? not see it... Sorry... :oops:

Author:  TinyWebGallery [ 12. Feb 2009, 10:55 ]
Post subject: 

download page.

- Michael

Author:  Merlin44 [ 12. Feb 2009, 11:30 ]
Post subject: 

Patched.
Still not working with
Code:
$autocreate_folder_image_recursive = true;

Author:  TinyWebGallery [ 12. Feb 2009, 11:37 ]
Post subject: 

what is the modules directory? You have a lot of error messages in the debug file.

have you overwritten all files from the patch? because the files in the main folder + the files in the inc folder needed to be updated.

- Michael

Author:  Merlin44 [ 12. Feb 2009, 11:41 ]
Post subject: 

module directory is the place for all my module for my cms

I've overwritten everything

i'll try to make a new debug file with and without the autocreate recursive

Author:  Merlin44 [ 12. Feb 2009, 11:54 ]
Post subject: 

There's nothing in de debug file :?
I'll wait...

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