Additional FTP Server work not correct! Download Errors!

luckylutz

New Member
YetiShare User
Aug 30, 2012
147
0
0
44
Schwitzerland
www.hoodload.com
Hi

i have a lot of files for testing uploaded. every file is not possible to download
everytime i become a error
"Error: Could not open file for reading."
the permision in folder file is 777
you can try.

http://www.gupload.biz/rU
http://www.gupload.biz/rV
http://www.gupload.biz/rW


thanks for helping
 

luckylutz

New Member
YetiShare User
Aug 30, 2012
147
0
0
44
Schwitzerland
www.hoodload.com
Re: Whats here the Problem?

ok.

i have the problem found

the remot servers are the problem.
the script says

Testing connection to file server... (via ftp)

- Making sure ftp functions are available in PHP... FTP functions found.

- Finding file server Dreamhost on ip 208.113.149.199 (port: 21)... Successfully found.

- Authenticating with stored user 'timlut1' and password [HIDDEN]... Successfully authenticated.

- Changing to storage directory: files... Successfully changed directory.

- Disconnected from ftp.

- No errors found connecting to Dreamhost.

when one remote server is active, all files there storaged by this server are not possible for reading.

is the local default activ alone. everything is good.

i downt knw waht is wrong.
 

luckylutz

New Member
YetiShare User
Aug 30, 2012
147
0
0
44
Schwitzerland
www.hoodload.com
Re: Whats here the Problem?

someone has the same problem? I have 3 different hoster. usa, india and switzerland but I can only use the hoster on the script running. the other two are remote. everything works. upload, statistics and delete these files. only download does not work.

"Error: Could not open file for reading."

please help
 

gccarlin011700

New Member
YetiShare User
Aug 11, 2012
50
0
0
Re: Whats here the Problem?

I tried the urls you posted but the files have been removed.

Can you upload one for testing purposes so I can try to replicate the issue and help you out?

thanks
 

vyacheslav

New Member
YetiShare User
Oct 26, 2012
24
0
0
45
www.megalobit.net
Re: Whats here the Problem?

Need to check the php.ini settings on your servers:
cURL support - should be = enabled (restore download at break)
allow_url_fopen = ON (download via HTTP protocol through a browser)
safe_mode = Off (increased protection)

this
;open_basedir =
in master value must be commented
(for local value - not sure)

... and maybe need to check the privileges on folders and files.
 

luckylutz

New Member
YetiShare User
Aug 30, 2012
147
0
0
44
Schwitzerland
www.hoodload.com
Re: Whats here the Problem?

i have testet now the Problem.

with the older version 2.1 of fileuploadscript, i have no problems.
remot server and local server runs without any problems.

upgrade to v3.01.
It is no longer possible download the same files, as before on version 2.1.
or new uploaded files to the remot server.
 

aggoni072007

New Member
YetiShare User
Reservo User
Jan 1, 1970
53
0
0
Re: Whats here the Problem?

how you solved this Lukdylutz? i have the same problem.
 

ikovacs1465

New Member
Apr 30, 2012
96
0
0
Hi,

i can confirm this error.. Its behaps regarding the new Feature Download Tracker. I dont have found the right position for this error. If find it i inform the guys then.

regards

Istvan Kovacs
 

trasserx1958

New Member
YetiShare User
Nov 24, 2012
5
0
0
Hi, I also have this problem. I've tried to reinstall my servers several times, I thought there was something wrong with my FTP-configuration. But after long hours of work I haven't managed to make it work. I've looked through the source and I found out;

I've searched through the source codes and found out that the message "Error: Could not open file for reading." is defined in class.file.php, as an error for LOCAL download. As I've understood, it doesn't even try to read the file from FTP. What do you think?

We need this sorted out, very quickly. It's ruining my business.
 

ikovacs1465

New Member
Apr 30, 2012
96
0
0
Hello,

i have found the ground. Its a logic Error in the class.file.php:

please make follow changes:

line 169 in class.file.php:

change

if ($storageType == 'remote')

in

if ($storageType == 'remote' OR $storageType == 'ftp')

in line 50 in class.file.php:

change

if ($storageType == 'remote')

in

if ($storageType == 'remote' OR $storageType == 'ftp')

that will be resolv the error. Maybe the Download Tracker dont Track right the Files what you download over the FTP Server. the seeking Data in the Database its still empty.

regards
 

trasserx1958

New Member
YetiShare User
Nov 24, 2012
5
0
0
Is there any possibility that you could find a solution for the "Download Tracker" too? You seem to know what you're doing. It's pretty urgent to get the website rolin', this is bad for business. :x


I would have tested this upon before release.
 

trasserx1958

New Member
YetiShare User
Nov 24, 2012
5
0
0
I can confirm that the Download Tracker is working just fine, also downloading from FTP-servers. I'll go with this until admin has solved this and posts a complete solution. Thank you!
 

ikovacs1465

New Member
Apr 30, 2012
96
0
0
Hi Tasser,

please check your Mysql Datebase download_tracker if your download one File you will see that start_offset will fill with 0 what is correct but seek_end stay still with -1.

And that is not correct.

regards

Istvan Kovacs
 

myfw93

New Member
YetiShare User
Sep 3, 2012
7
0
0
Please I need urgent help.

I upload files and everything perfect or so it seems, but when low not download files are downloaded or bad download, what can happen?
 

luckylutz

New Member
YetiShare User
Aug 30, 2012
147
0
0
44
Schwitzerland
www.hoodload.com
ikovacs1465 said:
that will be resolv the error. Maybe the Download Tracker dont Track right the Files what you download over the FTP Server. the seeking Data in the Database its still empty.

regards
Thank you so much.
For me is this fix ok. However, I would also be glad if there a admin fix give, so we also see what was downloaded from the remote server.
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Hi all,

Firstly sorry for the delay in responding here. We don't regularly monitor these forums as they are community driven, so you're best contacting us using the support forum if you have anything urgent. I'll add some text to the forums to make this clearer. :)

I've looked at the download part of the code and it does contain some references to 'remote' which should be 'ftp'. :roll: ikovacs1465 got most of them but there's a few more. I've released an updated codebase so you can either download it and re-upload the inlcudes/class.file.php file or download from the attached.

The download tracker should be fine however if you want this also disabled, comment out anything in class.file.php with the variable $downloadTracker. (lines 162, 163, 187, 217, 239)

Let me know how you get on. Have a great new year!

Regards,
Adam.

ikovacs1465 said:
Hello,

i have found the ground. Its a logic Error in the class.file.php:

please make follow changes:

line 169 in class.file.php:

change

if ($storageType == 'remote')

in

if ($storageType == 'remote' OR $storageType == 'ftp')

in line 50 in class.file.php:

change

if ($storageType == 'remote')

in

if ($storageType == 'remote' OR $storageType == 'ftp')

that will be resolv the error. Maybe the Download Tracker dont Track right the Files what you download over the FTP Server. the seeking Data in the Database its still empty.

regards
 

Attachments