RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File sharing script

File mirror script
Software error - Cant upload.

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Free
View previous topic :: View next topic  
Author Message
mahmood13



Joined: 24 Feb 2009
Posts: 2

PostPosted: Feb 24, 2009 1:18 pm    Post subject: Software error - Cant upload. Reply with quote

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
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2134
Location: UFO Lab

PostPosted: Feb 25, 2009 2:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mahmood13



Joined: 24 Feb 2009
Posts: 2

PostPosted: Feb 25, 2009 2:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Free All times are GMT
Page 1 of 1

 
Jump to:  
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


Copyright © 2003-2013 Sibsoft Ltd