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 25. Nov 2024, 00:15

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  [ 45 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject:
PostPosted: 11. Feb 2009, 19:12 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 11. Feb 2009, 19:41 
Offline

Joined: 5. Apr 2006, 08:40
Posts: 106
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


Top
 Profile  
 
 Post subject:
PostPosted: 11. Feb 2009, 19:53 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 11. Feb 2009, 20:35 
Offline

Joined: 5. Apr 2006, 08:40
Posts: 106
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.


Top
 Profile  
 
 Post subject:
PostPosted: 11. Feb 2009, 20:54 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 11. Feb 2009, 23:36 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 11. Feb 2009, 23:55 
Offline

Joined: 5. Apr 2006, 08:40
Posts: 106
You are the best.
Sorry to bother you with that.


Top
 Profile  
 
 Post subject:
PostPosted: 12. Feb 2009, 01:06 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 12. Feb 2009, 02:03 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 12. Feb 2009, 10:39 
Offline

Joined: 5. Apr 2006, 08:40
Posts: 106
TinyWebGallery wrote:
you can download the patch.


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


Top
 Profile  
 
 Post subject:
PostPosted: 12. Feb 2009, 10:55 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
download page.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 12. Feb 2009, 11:30 
Offline

Joined: 5. Apr 2006, 08:40
Posts: 106
Patched.
Still not working with
Code:
$autocreate_folder_image_recursive = true;


Top
 Profile  
 
 Post subject:
PostPosted: 12. Feb 2009, 11:37 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 12. Feb 2009, 11:41 
Offline

Joined: 5. Apr 2006, 08:40
Posts: 106
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


Top
 Profile  
 
 Post subject:
PostPosted: 12. Feb 2009, 11:54 
Offline

Joined: 5. Apr 2006, 08:40
Posts: 106
There's nothing in de debug file :?
I'll wait...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 5 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:
cron
powered by phpbb | Datenschutz/ Privacy policy