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 16. Dec 2017, 05:25

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 39 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject:
PostPosted: 5. Feb 2008, 16:41 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10573
which version are you using?

because on some servers the session id's are stripped from the url.
I have made a workaround in 2.6 or 2.7 (don't remember where exactly)

/Michael


Top
 Profile  
 
 Post subject: Version
PostPosted: 5. Feb 2008, 17:33 
Offline

Joined: 28. Sep 2007, 06:56
Posts: 37
I downloaded it just a couple days ago - it says it is version 2.6


Top
 Profile  
 
 Post subject:
PostPosted: 5. Feb 2008, 17:37 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10573
just checked - I added this in 2.6.

Please try 2.7 in the forum. This is the lastest build where I have added some more stuff.

/Michael


Top
 Profile  
 
 Post subject: Upgraded but no luck
PostPosted: 6. Feb 2008, 01:27 
Offline

Joined: 28. Sep 2007, 06:56
Posts: 37
Sniff - same problem. I tried the debug and was getting the same issue.

So I tried it on another server and it is working there.

So I looked at the settings that are applied to the server that is not working. Would any of these be causing a problem?

y2k_compliance = Off
register_globals = On
;session.auto_start = On
mysql.default_character_set = "latin1"
magic_quotes_gpc = On
upload_max_filesize = 8M
log_errors = On
memory_limit = 32M


Top
 Profile  
 
 Post subject:
PostPosted: 6. Feb 2008, 12:13 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10573
The session autostart maybe.

Can you configure that?

/Michael


Top
 Profile  
 
 Post subject: Success
PostPosted: 7. Feb 2008, 03:12 
Offline

Joined: 28. Sep 2007, 06:56
Posts: 37
Wheh - well that was it - guess you can add that to the FAQ of things to NOT have in your config!


Top
 Profile  
 
 Post subject: spoke too soon
PostPosted: 7. Feb 2008, 03:36 
Offline

Joined: 28. Sep 2007, 06:56
Posts: 37
I got confused and was using the other server. It is still not working.


Top
 Profile  
 
PostPosted: 7. Feb 2008, 03:39 
Offline

Joined: 28. Sep 2007, 06:56
Posts: 37
Some info's about your server. This limits are not TFU limits. You have to change the php.ini.

Server name: executiveclubcc.org
PHP upload limit (in KB): 8192
PHP memory limit (in KB): 32768
Safe mode: OFF
GD lib: Available


Not quite sure I follow this message but it seems to say something needs to be changed????


Top
 Profile  
 
 Post subject:
PostPosted: 7. Feb 2008, 10:01 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10573
where are we right now - the settings you showed me are fine.

I was saying that maybe the session auto start is a problem in your server.
Can you configure that?

/Michael


Top
 Profile  
 
 Post subject: re: Configure on server
PostPosted: 7. Feb 2008, 16:36 
Offline

Joined: 28. Sep 2007, 06:56
Posts: 37
Yes I can and did. I turned the autostart off and that didn't seem to make a difference.

Here are the settings now - don't know if any of these make a difference.

PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference Off Off
allow_url_fopen Off Off
allow_url_include Off Off
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors Off Off
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting no value no value
expose_php On On
extension_dir /usr/lib/php/extensions/no-debug-non-zts-20060613 /usr/lib/php/extensions/no-debug-non-zts-20060613
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/lib/php .:/usr/lib/php
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 30 30
max_input_nesting_level 64 64
max_input_time 60 60
memory_limit 32M 32M
open_basedir no value no value
output_buffering 4096 4096
output_handler no value no value
post_max_size 8M 8M
precision 14 14
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv On On
register_globals On On
register_long_arrays Off Off
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir /usr/local/php/bin /usr/local/php/bin
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 8M 8M
upload_tmp_dir no value no value
user_dir no value no value
variables_order GPCS GPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance Off Off
zend.ze1_compatibility_mode Off Off
[/code]


Top
 Profile  
 
 Post subject:
PostPosted: 7. Feb 2008, 16:39 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10573
you might set display errors to on - then you might get anything.

/Michael


Top
 Profile  
 
 Post subject: nothing
PostPosted: 7. Feb 2008, 17:02 
Offline

Joined: 28. Sep 2007, 06:56
Posts: 37
This is maddening. I uploaded it yet to another server - it worked - I check the PHP variables on the other server - only difference was magic quotes - I turned that off - doesn't work still.

I turned on the display errors as well - nothing was displayed. Only other difference is this server has more memory set.

Okay I added some more info to the tfu logger

I got the following results


02.07.2008 16:16:08 - helper found pre log in check

02.07.2008 16:16:08 - ERROR 8 in , line 32: Undefined index: TFU_LOGIN

02.07.2008 16:16:08 - this is sesion

02.07.2008 16:16:08 - This is remaining1

02.07.2008 16:16:08 - log in not found check

after I added the following lines

Code:
session_start();

include "tfu_helper.php";
debug("helper found pre log in check");
debug("this is sesion" . $_SESSION["TFU_LOGIN"]);
debug("This is remaining" . $_GET['remaining']);
if (isset($_SESSION["TFU_LOGIN"]) && isset($_GET['remaining'])) {
   $dir = getCurrentDir();
debug("found3");

[/code]


Top
 Profile  
 
 Post subject:
PostPosted: 7. Feb 2008, 17:07 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10573
don't you have

if (isset($_GET['TFUSESSID'])) { // this is a workaround if you set php_flag session.use_trans_sid=off + a workaround for some servers that don't handle sessions correctly if you open 2 instances of TFU
session_id($_GET['TFUSESSID']);
}

before session_start();

/Michael


Top
 Profile  
 
 Post subject: Yes that is there
PostPosted: 8. Feb 2008, 06:04 
Offline

Joined: 28. Sep 2007, 06:56
Posts: 37
That line is there.

Here is the recent log run:

02.08.2008 5:16:55 - helper found pre log in check

02.08.2008 5:16:55 - ERROR 8 in , line 32: Undefined index: TFU_LOGIN

02.08.2008 5:16:55 - this is sesion login setting

02.08.2008 5:16:55 - this is sesion ID m2eqperuaeq2epfbd4b799i753

02.08.2008 5:16:55 - This is remaining1

02.08.2008 5:16:55 - log in not found check


Here is the code that I put in to generate this:

Code:
define('_VALID_TWG', '42');

if (isset($_GET['TFUSESSID'])) { // this is a workaround if you set php_flag session.use_trans_sid=off + a workaround for some servers that don't handle sessions correctly if you open 2 instances of TFU
  session_id($_GET['TFUSESSID']);
}
session_start();

include "tfu_helper.php";
debug("helper found pre log in check");
debug("this is sesion login setting " . $_SESSION["TFU_LOGIN"]);
debug("this is sesion ID " . $_GET['TFUSESSID']);
debug("This is remaining" . $_GET['remaining']);
if (isset($_SESSION["TFU_LOGIN"]) && isset($_GET['remaining'])) {
   $dir = getCurrentDir();
debug("found3");
   if (isset($_GET['size'])) {
      $size = $_GET['size'];
   } else {

............ skipped

         @mail ($email, html_entity_decode ($subject), html_entity_decode ($mailtext), $submailheaders);
      }

   
} else {
debug("log in not found check");
   echo "Not logged in!";
}
echo " "; // important - solves bug for Mac!
flush();



Top
 Profile  
 
 Post subject:
PostPosted: 8. Feb 2008, 09:36 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10573
can you make an output for session_id()

?

/Michael


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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® Forum Software © phpBB Group

phpBB SEO