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

extra functions
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=3581
Page 1 of 2

Author:  howi42 [ 28. Aug 2013, 15:27 ]
Post subject:  extra functions

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 ?

Author:  TinyWebGallery [ 28. Aug 2013, 15:44 ]
Post subject:  Re: extra functions

- 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

Author:  howi42 [ 29. Aug 2013, 11:39 ]
Post subject:  Re: extra functions

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.

Author:  TinyWebGallery [ 29. Aug 2013, 12:41 ]
Post subject:  Re: extra functions

is the extension lowercase of the file you upload?
Any errors in the log file?

Best, Michael

Author:  howi42 [ 29. Aug 2013, 15:08 ]
Post subject:  Re: extra functions

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.

Author:  TinyWebGallery [ 29. Aug 2013, 15:28 ]
Post subject:  Re: extra functions

have you tried to upload a normal image?
Seems you have a different problem.

Best, Michael

Author:  howi42 [ 29. Aug 2013, 16:55 ]
Post subject:  Re: extra functions

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

Author:  TinyWebGallery [ 29. Aug 2013, 17:02 ]
Post subject:  Re: extra functions

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?

Author:  howi42 [ 30. Aug 2013, 09:15 ]
Post subject:  Re: extra functions

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.

Author:  TinyWebGallery [ 30. Aug 2013, 10:53 ]
Post subject:  Re: extra functions

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?

Author:  howi42 [ 30. Aug 2013, 13:50 ]
Post subject:  Re: extra functions

Yes, I have.

Author:  TinyWebGallery [ 30. Aug 2013, 14:25 ]
Post subject:  Re: extra functions

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

Author:  howi42 [ 30. Aug 2013, 20:47 ]
Post subject:  Re: extra functions

It does not get that far ...

Author:  howi42 [ 30. Aug 2013, 21:15 ]
Post subject:  Re: extra functions

some more :

It seems to crash when calling :

generateOtherFormatsPreview($dir);

in twg_plugin.php

Author:  TinyWebGallery [ 31. Aug 2013, 23:04 ]
Post subject:  Re: extra functions

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

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