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 2 of 2

Author:  howi42 [ 1. Sep 2013, 23:05 ]
Post subject:  Re: extra functions

I made a few debug statements :
foreach ($other_file_formats_previews as $offp => $offp_image) {
if ($offp == strtolower(getExtension($list[$i]))) { // we have something to check :)
tfu_debug('let us check '. $offp);
$real_video = realpath($file_dir . "/" . $list[$i]);
tfu_debug('real video '. $real_video);
$real_image = exchangeExtension($real_video, "jpg");
tfu_debug('real_image '. $real_image);
$p_image = $file_dir . "/" . exchangeExtension($list[$i], "jpg");
tfu_debug('p_image '. $p_image);
$p_image2 = $file_dir . "/" . exchangeExtension($list[$i], "JPG");

tfu_debug('p_image2 '. $p_image2);



Here is the debug file :

09.01.2013 20:56:36 - let us check avi
09.01.2013 20:56:36 - real video /usr/local/www/twg19/pictures/upload/ffmpeg_test.avi
09.01.2013 20:56:36 - Security tokens did not match. Session: 1378806430897360693048065370052 : param 1378806430897360693048068995005 no further actions are allowed.

Where is the 'removeextensions' function ?

Author:  TinyWebGallery [ 2. Sep 2013, 09:27 ]
Post subject:  Re: extra functions

it simply exchanges the extensions.

I just did some debugging.

Please open twg_helper.php and search for
function exchangeExtension

There you find
removeExtension

change this to
tfu_removeExtension

I renamed this function a couple of releases before and it seems I did not updat this is in the plugin.

Best, michael

Author:  TinyWebGallery [ 2. Sep 2013, 09:28 ]
Post subject:  Re: extra functions

But this error should be reported in the phperror.log of your server!!

Author:  howi42 [ 2. Sep 2013, 13:38 ]
Post subject:  Re: extra functions

Thanks, now it works.

Author:  TinyWebGallery [ 2. Sep 2013, 13:53 ]
Post subject:  Re: extra functions

Great - I'll add this fix to version 2.0 as well.

Best, Michael

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