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, 03:13

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  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: extra functions
PostPosted: 28. Aug 2013, 15:27 
Offline

Joined: 19. Jul 2013, 13:24
Posts: 14
I have the licensed version installed, but :

- the lightbox feature is enabled, I see the magnifying glass on the thumbnails, clicking it starts the loading, but never completes.
- ffmpeg is installed ( 'which ffmpeg' gives me the correct answer ), but info.php could only find it after adding the full path in the config. In the installation check it is green now, but no image is generated when uploading a movie.

What can I check ?


Top
 Profile  
 
 Post subject: Re: extra functions
PostPosted: 28. Aug 2013, 15:44 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
- Which image is used for the lightbox? The original or the one on the detail page? Do you use the lightbox inside an iframe?
- what are your ffmpeg settings? Is your movie in the list of supported extensions.

Best, Michael


Top
 Profile  
 
 Post subject: Re: extra functions
PostPosted: 29. Aug 2013, 11:39 
Offline

Joined: 19. Jul 2013, 13:24
Posts: 14
The lightbox problem is solved, it was related to a router/redirection problem : I reached the TWG system through port xxxx and redirected it in the router to 80. That let me reach TWG without problems, but some functions got 'confused'. Changed the webserver port to xxxx and dropped the redirection to 80.

The ffmpeg problem is still there :

Settings :

$use_ffmpeg=true;
$ffmpeg_path='/usr/local/bin/ffmpeg';

The others are unchanged.
Movie is wmv.


Top
 Profile  
 
 Post subject: Re: extra functions
PostPosted: 29. Aug 2013, 12:41 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
is the extension lowercase of the file you upload?
Any errors in the log file?

Best, Michael


Top
 Profile  
 
 Post subject: Re: extra functions
PostPosted: 29. Aug 2013, 15:08 
Offline

Joined: 19. Jul 2013, 13:24
Posts: 14
Upload, logged in as admin :

This is what the debug says :

08.29.2013 13:01:11 - Security tokens did not match. Session: 1375135498123119878587782752929 : param 1375135498123119878587781241115 no further actions are allowed.

Upload, not as admin :

That try gave me this :

08.29.2013 13:04:16 - It can be possible that someone tried to upload something without permissions! If you think this is the case the IP of this user is logged: 134.32.71.103. He tried to upload the following file: Wildlife.wmv
08.29.2013 13:04:16 - ERROR 8 in al/www/twg19/admin/upload/tfu_helper.php, line 1410: Undefined index: TFU_RN
08.29.2013 13:04:16 - ERROR 8 in al/www/twg19/admin/upload/tfu_helper.php, line 1411: Undefined index: TFU_RN
08.29.2013 13:04:16 - Security tokens did not match. Session: : param 1375135498123119878587781241115 no further actions are allowed.
08.29.2013 13:04:17 - ERROR 8 in al/www/twg19/admin/upload/tfu_helper.php, line 1410: Undefined index: TFU_RN
08.29.2013 13:04:17 - ERROR 8 in al/www/twg19/admin/upload/tfu_helper.php, line 1411: Undefined index: TFU_RN
08.29.2013 13:04:17 - Security tokens did not match. Session: : param 1375135498123119878587781435635 no further actions are allowed.


Top
 Profile  
 
 Post subject: Re: extra functions
PostPosted: 29. Aug 2013, 15:28 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
have you tried to upload a normal image?
Seems you have a different problem.

Best, Michael


Top
 Profile  
 
 Post subject: Re: extra functions
PostPosted: 29. Aug 2013, 16:55 
Offline

Joined: 19. Jul 2013, 13:24
Posts: 14
Actually the uploading works, both for images and videos, just no ffmpeg activity,
the errors as mentioned and I get logged out as admin
It is exactly the same as described in the thread : 'Security tokens did not match' error after upload


Top
 Profile  
 
 Post subject: Re: extra functions
PostPosted: 29. Aug 2013, 17:02 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
can you enable the advanced upload debug as well?
In the other thread it fails inside the plugin which causes that the security token is not updated and you get logged out.
If you call info.php - is the small animated gif rendered?


Top
 Profile  
 
 Post subject: Re: extra functions
PostPosted: 30. Aug 2013, 09:15 
Offline

Joined: 19. Jul 2013, 13:24
Posts: 14
The animated if is ok.
Here is the logfile :

08.29.2013 17:06:20 - Security tokens did not match. Session: 1373868293575644912477797961764 : param 1373868293575644912477795978723 no further actions are allowed.
08.29.2013 17:24:46 - Security tokens did not match. Session: 1376317255682888787237791497139 : param 1376317255682888787237797084951 no further actions are allowed.
08.29.2013 17:32:56 - 1. Config loaded
08.29.2013 17:32:56 - 2. Authenification sucessfull
08.29.2013 17:32:56 - 3. Directory read: __/__/pictures/upload
08.29.2013 17:32:56 - 3a. $_FILES content:
Array
(
[Filedata] => Array
(
[name] => ffmpeg_test.avi
[type] => application/octet-stream
[tmp_name] => /tmp/php8Is44p
[error] => 0
[size] => 7284
)

)

08.29.2013 17:32:56 - 4. Check valid extension: ffmpeg_test.avi
08.29.2013 17:32:56 - 4a. Extension valid.
08.29.2013 17:32:56 - 5. Before move_uploaded_file : /tmp/php8Is44p -> __/__/pictures/upload/ffmpeg_test.avi
08.29.2013 17:32:56 - 5a. After move_uploaded_file.
08.29.2013 17:32:56 - 6. Uploaded.
08.29.2013 17:32:56 - 7. Internal processing done.
08.29.2013 17:32:56 - 8. Execute plugin: twg_plugin.php
08.29.2013 17:32:56 - Security tokens did not match. Session: 1374720578755850918617797861871 : param 1374720578755850918617797574741 no further actions are allowed.


Top
 Profile  
 
 Post subject: Re: extra functions
PostPosted: 30. Aug 2013, 10:53 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Some debugging would be needed here. The command which is used for converting would have to be printed to the log file and executed manually. Do you have ssh access to your server?


Top
 Profile  
 
 Post subject: Re: extra functions
PostPosted: 30. Aug 2013, 13:50 
Offline

Joined: 19. Jul 2013, 13:24
Posts: 14
Yes, I have.


Top
 Profile  
 
 Post subject: Re: extra functions
PostPosted: 30. Aug 2013, 14:25 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
coll. then open admin/upload/twg_helper.php

search for
execute_command ($command);
and replace this with

tfu_debug($command);
execute_command ($command);
tfu_debug('ffmpeg done');

then you should get the command line in the debug file.

This file you should be able to execute with ssh. Then you can check if the extraction does work or if there is a problem before.

Best, Michael


Top
 Profile  
 
 Post subject: Re: extra functions
PostPosted: 30. Aug 2013, 20:47 
Offline

Joined: 19. Jul 2013, 13:24
Posts: 14
It does not get that far ...


Top
 Profile  
 
 Post subject: Re: extra functions
PostPosted: 30. Aug 2013, 21:15 
Offline

Joined: 19. Jul 2013, 13:24
Posts: 14
some more :

It seems to crash when calling :

generateOtherFormatsPreview($dir);

in twg_plugin.php


Top
 Profile  
 
 Post subject: Re: extra functions
PostPosted: 31. Aug 2013, 23:04 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
This part is in generateOtherFormatsPreview.
Strange is that you don't get eny php errors.

You can try to add some debug statements in generateOtherFormatsPreview (it is in twg_helper.php) and see where it fails.

How is
$other_file_formats_previews
set - because here are the extensions defined where preview images are generated.

Best, Michael


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 18 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