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

ERROR: Upload failed. 1 file(s) of 1 could not be uploaded.
https://www.tinywebgallery.com/forum/viewtopic.php?f=12&t=1327
Page 2 of 3

Author:  TinyWebGallery [ 5. Feb 2008, 16:41 ]
Post subject: 

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

Author:  plschneide [ 5. Feb 2008, 17:33 ]
Post subject:  Version

I downloaded it just a couple days ago - it says it is version 2.6

Author:  TinyWebGallery [ 5. Feb 2008, 17:37 ]
Post subject: 

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

Author:  plschneide [ 6. Feb 2008, 01:27 ]
Post subject:  Upgraded but no luck

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

Author:  TinyWebGallery [ 6. Feb 2008, 12:13 ]
Post subject: 

The session autostart maybe.

Can you configure that?

/Michael

Author:  plschneide [ 7. Feb 2008, 03:12 ]
Post subject:  Success

Wheh - well that was it - guess you can add that to the FAQ of things to NOT have in your config!

Author:  plschneide [ 7. Feb 2008, 03:36 ]
Post subject:  spoke too soon

I got confused and was using the other server. It is still not working.

Author:  plschneide [ 7. Feb 2008, 03:39 ]
Post subject:  When I did the PHP info from the sample page it says

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????

Author:  TinyWebGallery [ 7. Feb 2008, 10:01 ]
Post subject: 

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

Author:  plschneide [ 7. Feb 2008, 16:36 ]
Post subject:  re: Configure on server

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]

Author:  TinyWebGallery [ 7. Feb 2008, 16:39 ]
Post subject: 

you might set display errors to on - then you might get anything.

/Michael

Author:  plschneide [ 7. Feb 2008, 17:02 ]
Post subject:  nothing

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]

Author:  TinyWebGallery [ 7. Feb 2008, 17:07 ]
Post subject: 

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

Author:  plschneide [ 8. Feb 2008, 06:04 ]
Post subject:  Yes that is there

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();


Author:  TinyWebGallery [ 8. Feb 2008, 09:36 ]
Post subject: 

can you make an output for session_id()

?

/Michael

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