| View previous topic :: View next topic |
| Author |
Message |
mahmood13
Joined: 24 Feb 2009 Posts: 2
|
Posted: Feb 24, 2009 1:18 pm Post subject: Software error - Cant upload. |
|
|
Hi there,
I have a problem with your script (XFileSharing), I cant't upload files when I try to the progress goes to 100% then it displays "Upload complete. Saving files...
Upload complete. Saving files... ", And when i made the iframe in that page visible I got this messege:
Software error:
Can't exec:s REPLACE INTO Secure (file_id,ip,rand,captcha,time) VALUES (?,INET_ATON(?),?,?,NOW()+INTERVAL ? SECOND)
Column 'ip' cannot be null at TCM/DataBase.pm line 65.
Also this shown when I click contact us link, I have tried what has been suggested in This Thread but it didnt help, but when I tried using proxy to access my website the error didnt show and can upload files normally, So it could be a bug from the software.
Any help to resolve this issue appreciated.
Kind Regards,
Mahmood Majeed |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1941 Location: UFO Lab
|
Posted: Feb 25, 2009 2:23 pm Post subject: |
|
|
replace this code in Session.pm:
| Code: | | return $ENV{HTTP_X_FORWARDED_FOR} || $ENV{REMOTE_ADDR}; |
with
| Code: | | return $ENV{REMOTE_ADDR}; |
|
|
| Back to top |
|
 |
mahmood13
Joined: 24 Feb 2009 Posts: 2
|
Posted: Feb 25, 2009 2:58 pm Post subject: |
|
|
fixed it yesterday, anyway thanks.
I tried this solution yesterday you post it in another thread but it didnt help, but then I tried to go to the SQL database and edited the ip field in files table so it can be null and now it worked with the combination of what you suggested and what I have done.
Regards |
|
| Back to top |
|
 |
|
|
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 vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|