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

Security tokens did not match.
https://www.tinywebgallery.com/forum/viewtopic.php?f=12&t=3928
Page 1 of 1

Author:  dquick12077 [ 23. Aug 2015, 04:41 ]
Post subject:  Security tokens did not match.

I have installed TWG 2.3

I am having an issue with Security tokens did not match after every file upload. Everything else seems to be working properly except for the uploading. After each upload it takes me back to the login page. (I have $user_login_mode = true)

The only items I have changed, is I changed is I added my config changes to my_config.php and in a couple of the i frame files added a parameter at the end of tfu_mail so that I can send HTML emails. Everything else is defaults.

Here is what I have tried so far to fix the issue after looking through other posts in the forum.
I set $keep_internal_session_handling = true;
created session_cache under /admin/upload
chmod 777 /admin/upload/session_handling
files are being created in this folder

added
session.save_path = "/etc/php5/sessions" to php.ini
created /etc/php5/sessions
chmod 777 /etc/php5/sessions (files are being created here)

Created .htaccess file in /admin/upload with the following
SecFilterEngine Off
SecFilterScanPOST Off
<Directory>
Allow From All
Satisfy Any
</Directory>

Any information on how to correct this would be greatly appreciated.
Thanks, David.


Here is the info from the debug file.

Any ideas on how to correct this issue would be greatly appreciated.
08.22.2015 20:58:23 - Action:dir; Directory: __/__/pictures
Request: /gallery/admin/upload/tfu_file.php?action=dir&dir=&ts=1440295111848&tfu_rn=1448486730511064812510296457930&tfu_is_flash_10=1&tfu_ut=-1&TFUSESSID=ulpflfple3u1qbtkth565fbhu1&remaining=0
Stack: tfu_file.php:49:tfu_debug:Action:dir; Directory: ../../pictures
Current memory usage: 481 KB
08.22.2015 20:58:38 - Action:dir; Directory: __/__/pictures
Request: /gallery/admin/upload/tfu_file.php?action=dir&dir=&ts=1440295125708&tfu_rn=1447243841512566235000295618182&tfu_is_flash_10=1&tfu_ut=-1&TFUSESSID=ulpflfple3u1qbtkth565fbhu1&remaining=0
Stack: tfu_file.php:49:tfu_debug:Action:dir; Directory: ../../pictures
Current memory usage: 481 KB
08.22.2015 20:58:39 - Action:dir; Directory: __/__/pictures
Request: /gallery/admin/upload/tfu_file.php?action=dir&dir=&ts=1440295127817&tfu_rn=1446774633512723117410293548025&tfu_is_flash_10=1&tfu_ut=-1&TFUSESSID=ulpflfple3u1qbtkth565fbhu1&remaining=0
Stack: tfu_file.php:49:tfu_debug:Action:dir; Directory: ../../pictures
Current memory usage: 481 KB
08.22.2015 20:58:47 - Security tokens did not match. Session: 1446774633512723117410293548025 : param 1446774633512723117410295135388 no further actions are allowed.
Request: /gallery/admin/upload/tfu_file.php?action=dir&dir=&ts=1440295135789&tfu_rn=1446774633512723117410295135388&tfu_is_flash_10=1&tfu_ut=5&check_upload=true&TFUSESSID=ulpflfple3u1qbtkth565fbhu1&remaining=0
Stack: tfu_helper.php:1417:tfu_debug:Security tokens did not match. Session: 1446774633512723117410293548025 : param 14467746335127231174
Stack: tfu_file.php:231:checkSessionTempDir:5
Current memory usage: 484 KB

Author:  TinyWebGallery [ 23. Aug 2015, 22:06 ]
Post subject:  Re: Security tokens did not match.

$keep_internal_session_handling = true; is set internally in my_tfu_config.php already.

Are session files created in the folder you have created?

Best, Michel

Author:  dquick12077 [ 24. Aug 2015, 03:57 ]
Post subject:  Re: Security tokens did not match.

Yes, the files are being created here is a listing of the files
but it still logs me off after you close the TFU Upload window.

/var/www/html/gallery/admin/upload/session_cache$ ls -l

total 108
-rw-rw-rw- 1 www-data www-data 10474 Aug 22 20:31 4pg1h8ju4dbi23h70iqkb9oeq7
-rw-rw-rw- 1 www-data www-data 5179 Aug 22 20:45 533deoad64tdgidmc1e9jsjag7
-rw-rw-rw- 1 www-data www-data 0 Aug 22 20:31 _cache_day_2015_08_22.tmp
-rw------- 1 david david 6272 Aug 22 20:30 ei5hp06bvo90438h90m1quv2d2
-rw-rw-rw- 1 www-data www-data 6462 Aug 22 20:46 evfgk84jpbsmsdob8k8mrttpk2
-rw-rw-rw- 1 www-data www-data 6278 Aug 22 21:28 f5rn8g1kiomso6nk3iun74cji3
-rw-rw-rw- 1 www-data www-data 6292 Aug 22 22:55 ijnsqh0pv5d291pj01k8mooto7
-rw------- 1 david david 0 Aug 22 20:30 index.htm
-rw-rw-rw- 1 www-data www-data 10561 Aug 22 21:16 l17apt81mh6cma6hge76bih9r1
-rw------- 1 david david 6267 Aug 22 20:30 p0l73dsavdm81a0h1cm8mdo8n7
-rw------- 1 david david 6273 Aug 22 20:30 pj8hptnsp2lsp67oaeqrr400s6
-rw------- 1 david david 8763 Aug 22 20:30 qqvq1gb8iuijbqkg52g6mqd3r2
-rw-rw-rw- 1 www-data www-data 12523 Aug 22 20:58 ulpflfple3u1qbtkth565fbhu1

Author:  TinyWebGallery [ 24. Aug 2015, 09:16 ]
Post subject:  Re: Security tokens did not match.

Can you check all error logs? Maybe there is an error after the upload when the files a parsed.
Please try:

$generate_cache_at_upload=false;

Maybe there is a problem when you generate the cache files during upload.

Best, Michael

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