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 27. Nov 2024, 11:22

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  [ 15 posts ] 
Author Message
PostPosted: 18. Nov 2007, 15:53 
Offline

Joined: 18. Nov 2007, 15:46
Posts: 7
Hi
I have installed TWG on my ubuntu 7.10 server, whenever i try to browse the image gallery the servers CPU maxes out at 100%. When this happens the webserver locks up and its impossible to browse the site, it only works again when the browser window is closed or i reboot the server.
The cache folder does not fill up with thumbnails which suggests that it is a permissions issue but cant think why since i have run,and various chmod commands.
Code:
sudo chmod -R 77 /var/www/gallery/


When i check the debug file i get errors in this format:
Code:
"date time" "nf" "path to the image"

Im assuming nf = not found?

Server Specs
P4 3ghz
1gb RAM
80GB HDD

Any help would be greatly appreciated since its annoying, especially since ive used TWG in the past without problems :x


Top
 Profile  
 
 Post subject:
PostPosted: 18. Nov 2007, 22:41 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
right - but this is only printed during cache generation time.

Have you started this is in the backend?
if you delete the log file - does the error come again.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 19. Nov 2007, 09:43 
Offline

Joined: 18. Nov 2007, 15:46
Posts: 7
er no i havent manually started the cache generation via the admin page although surely if the thumbnails didnt auto generate them when someone visited then this would also fail?

And yes when i delete the log file the errors come back

Thanks for the prompt reply :)


Top
 Profile  
 
 Post subject:
PostPosted: 19. Nov 2007, 09:46 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
which version are you using exactly.

Because in the 1.6.3 and the current dev build this message come only from a admin task.

If you check the path to the image - is this right? and alyways a different one?

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 19. Nov 2007, 22:51 
Offline

Joined: 18. Nov 2007, 15:46
Posts: 7
umm accoring to version.txt im running 1.6.3.2
The path to the image is right image and its to whatever image its trying to display at the time...


Top
 Profile  
 
 Post subject:
PostPosted: 20. Nov 2007, 00:41 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
The problem is that this message comes if an image is not found.
+ it should not be called at all.

Very strange.

try to find

gen_cache_body($file_dir);

line 1950 or so ;)

in inc/filefunctions.inc.php

and disable this line

// gen_cache_body($file_dir);

Thats the only placeit is called. If you still get the message then something is really messed up - then it's called by someone/thing else.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 20. Nov 2007, 23:34 
Offline

Joined: 18. Nov 2007, 15:46
Posts: 7
sadly that doesnt fix it :(

Is it possible that PHP has been set up incorrectly? Its a default installation so perhaps a few variables need adjusting? Im running 5.2.3-1, ive put up the PHP info file up here #removed_broken_link if that helps at all....

Thanks for your help so far :D


Top
 Profile  
 
 Post subject:
PostPosted: 21. Nov 2007, 00:17 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
This looks fine - you still get this error message?

Can you try to make a clean install with the version in the forum (dev12)
There are about 80 changes already.
Therefore if there is a problem i can only fix it in the current version.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 25. Nov 2007, 17:58 
Offline

Joined: 18. Nov 2007, 15:46
Posts: 7
sorry about the late reply:P
I downloaded the latest dev copy and put it on the server, however, there seems to be the same problem as before :?
Could it be because i am missing a package which TWG needs to make the cache? Or is it the OS itself, ive used TWG before on ubuntu and its worked fine although it was on an earlier release...


Top
 Profile  
 
 Post subject:
PostPosted: 26. Nov 2007, 00:47 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
wich php version are you using exactly - maybe there is a bug in this php version that causes the problem.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 30. Nov 2007, 18:21 
Offline

Joined: 18. Nov 2007, 15:46
Posts: 7
im running:
PHP Version 5.2.3-1ubuntu6

The system is also fully patched....


Top
 Profile  
 
 Post subject:
PostPosted: 30. Nov 2007, 18:32 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I'm currently testing with 5.0.3, 4.4 and 5.2.1 right now.

I just downloaded 5.2.4 - maybe there I can reproduce it there.
How many images are in your gallery ?

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 1. Dec 2007, 15:57 
Offline

Joined: 18. Nov 2007, 15:46
Posts: 7
currently ~200, but the problem seems to happen even when there are only a few images


Top
 Profile  
 
 Post subject:
PostPosted: 1. Dec 2007, 21:58 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I'm testing right now 1.7.
I had this behaviour once but could never reproduce it.

Wait for the next build of 1.7 in the forum.

Try to set the maxumum execution time to e.g. 20 s only.
then check the logs if you get an error - If I made a loop somewhere you get the exact line number where twg loops.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 2. Dec 2007, 15:31 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
do you have access to the access.log file.
Then you could post me the request that does not return!

If you update to 1.7 and the problem is still there I would like to do some debuggin on the server because this has to be solved!

But wait for the beta1 that wil come this week. I only have to implement the image magick support of the upload with the flash.
This is already in the standalone version - I only have to migrate this ;)

/Michael


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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