Trouble Uploading New File

Hi, I' looking or some help with this issue - I must warn you that I'm very inexperienced with this:

I've edited a .php page file for my website and edited the meta title for that page, which was done successfully in Notepad++.

However, when trying to upload the file back to the site I'm unable to do it. The annoying thing is that the original file that is still on the server is now blank so is just showing a blank page on the site.

So, my first question is: why has the original file disappeared? Is this normally what happens when you edit a file?

Also, what is happening that is stopping me from loading it back up?

Here's the log:

[09:11:35] SmartFTP v3.0.1022.7
[09:11:39] Resolving host name "ftp.1stcastle.co.uk"
[09:11:39] Connecting to 78.129.162.34 Port: 21
[09:11:39] Connected to ftp.1stcastle.co.uk.
[09:11:39] 220 Gene6 FTP Server v3.10.0 (Build 2) ready...
[09:11:39] USER 1stcastle.co.uk
[09:11:39] 331 Password required for 1stcastle.co.uk.
[09:11:39] PASS (hidden)
[09:11:39] 230 User 1stcastle.co.uk logged in.
[09:11:39] SYST
[09:11:39] 215 UNIX Type: L8
[09:11:39] Detected Server Type: UNIX
[09:11:40] FEAT
[09:11:40] 211-Extensions supported:
[09:11:40] AUTH TLS
[09:11:40] CCC
[09:11:40] CLNT
[09:11:40] CPSV
[09:11:40] EPRT
[09:11:40] EPSV
[09:11:40] MDTM
[09:11:40] MFCT
[09:11:40] MFMT
[09:11:40] MLST type*;size*;create;modify*;
[09:11:40] MODE Z
[09:11:40] PASV
[09:11:40] PBSZ
[09:11:40] PROT
[09:11:40] REST STREAM
[09:11:40] SIZE
[09:11:40] SSCN
[09:11:40] TVFS
[09:11:40] UTF8
[09:11:40] XCRC "filename" SP EP
[09:11:40] XMD5 "filename" SP EP
[09:11:40] XSHA1 "filename" SP EP
[09:11:40] 211 End.
[09:11:40] CLNT SmartFTP 3.0.1022.7
[09:11:41] 200 Noted.
[09:11:41] Detected Server Software: Gene6 FTP Server 3.x
[09:11:41] OPTS UTF8 ON
[09:11:41] 200 UTF8 OPTS ON
[09:11:41] PWD
[09:11:41] 257 "/" is current directory.
[09:11:41] CWD /wwwroot
[09:11:41] 250 CWD command successful. "/wwwroot" is current directory.
[09:11:41] PWD
[09:11:41] 257 "/wwwroot" is current directory.
[09:11:41] TYPE A
[09:11:41] 200 Type set to A.
[09:11:41] MODE Z
[09:11:41] 200 Mode Z ok.
[09:11:41] PASV
[09:11:42] 227 Entering Passive Mode (78,129,162,21,21,73)
[09:11:42] Passive ip address returned from server different from server ip.
[09:11:42] Opening data connection to 78.129.162.34 Port: 5449
[09:11:42] MLSD
[09:12:03] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
[09:12:12] 425 Cannot open data connection.
[09:12:12] Automatic failover of data connection mode from "Passive Mode (PASV)" to "Active Mode (PORT)".
[09:12:12] PORT 192,168,1,168,13,67
[09:12:12] 200 Port command successful.
[09:12:12] MLSD
[09:12:12] 150 Opening data connection for directory list.
[09:12:12] 464 bytes transferred. (9.06 KB/s) (50 ms)
[09:12:12] 226-Compression : 30.81% (464 Bytes/1.471 KBytes).
[09:12:12] 226 Transfer ok.
[09:13:03] NOOP
[09:13:03] 200 NOOP command successful.
[09:13:53] NOOP
[09:13:53] 200 NOOP command successful.
[09:14:43] NOOP
[09:14:43] 200 NOOP command successful.
[09:15:34] NOOP
[09:15:34] 200 NOOP command successful.
[09:16:24] NOOP
[09:16:24] 200 NOOP command successful.
[09:17:13] 421 Connection closed, timed out.
[09:17:13] An existing connection was forcibly closed by the remote host.
[09:17:13] Client closed the connection.
[09:18:27] Resolving host name "ftp.1stcastle.co.uk"
[09:18:27] Connecting to 78.129.162.34 Port: 21
[09:18:27] Connected to ftp.1stcastle.co.uk.
[09:18:27] 220 Gene6 FTP Server v3.10.0 (Build 2) ready...
[09:18:27] USER 1stcastle.co.uk
[09:18:27] 331 Password required for 1stcastle.co.uk.
[09:18:27] PASS (hidden)
[09:18:27] 230 User 1stcastle.co.uk logged in.
[09:18:27] SYST
[09:18:27] 215 UNIX Type: L8
[09:18:27] Detected Server Type: UNIX
[09:18:27] FEAT
[09:18:27] 211-Extensions supported:
[09:18:27] AUTH TLS
[09:18:27] CCC
[09:18:27] CLNT
[09:18:27] CPSV
[09:18:27] EPRT
[09:18:27] EPSV
[09:18:27] MDTM
[09:18:27] MFCT
[09:18:27] MFMT
[09:18:27] MLST type*;size*;create;modify*;
[09:18:27] MODE Z
[09:18:27] PASV
[09:18:27] PBSZ
[09:18:27] PROT
[09:18:27] REST STREAM
[09:18:27] SIZE
[09:18:27] SSCN
[09:18:27] TVFS
[09:18:27] UTF8
[09:18:27] XCRC "filename" SP EP
[09:18:27] XMD5 "filename" SP EP
[09:18:27] XSHA1 "filename" SP EP
[09:18:27] 211 End.
[09:18:27] CLNT SmartFTP 3.0.1022.7
[09:18:28] 200 Noted.
[09:18:28] Detected Server Software: Gene6 FTP Server 3.x
[09:18:28] OPTS UTF8 ON
[09:18:28] 200 UTF8 OPTS ON
[09:18:28] PWD
[09:18:28] 257 "/" is current directory.
[09:18:28] CWD /wwwroot
[09:18:28] 250 CWD command successful. "/wwwroot" is current directory.
[09:18:28] PWD
[09:18:28] 257 "/wwwroot" is current directory.
[09:18:28] MLST learner_lessons.php
[09:18:28] 250-Begin
[09:18:28] type=file;size=0;modify=20080828074715; /wwwroot/learner_lessons.php
[09:18:28] 250 End.
[09:18:29] The operation has been added to the Transfer Queue. Check the Transfer Queue for the status.
[09:19:01] MLST learner_lessons.php
[09:19:01] 250-Begin
[09:19:01] type=file;size=0;modify=20080828081841; /wwwroot/learner_lessons.php
[09:19:01] 250 End.
[09:19:51] NOOP
[09:19:51] 200 NOOP command successful.
[09:20:02] MLST learner_lessons.php
[09:20:02] 250-Begin
[09:20:02] type=file;size=0;modify=20080828081941; /wwwroot/learner_lessons.php
[09:20:02] 250 End.
[09:20:52] NOOP
[09:20:52] 200 NOOP command successful.
[09:21:02] MLST learner_lessons.php
[09:21:02] 250-Begin
[09:21:02] type=file;size=0;modify=20080828082041; /wwwroot/learner_lessons.php
[09:21:02] 250 End.
[09:21:52] NOOP
[09:21:52] 200 NOOP command successful.
[09:22:03] MLST learner_lessons.php
[09:22:03] 250-Begin
[09:22:03] type=file;size=0;modify=20080828082142; /wwwroot/learner_lessons.php
[09:22:03] 250 End.
[09:22:53] NOOP
[09:22:53] 200 NOOP command successful.
[09:23:04] MLST learner_lessons.php
[09:23:04] 250-Begin
[09:23:04] type=file;size=0;modify=20080828082243; /wwwroot/learner_lessons.php
[09:23:04] 250 End.
[09:23:28] An established connection was aborted by the software in your host machine.
[09:23:28] Server closed connection

I'd really appreciate your help, thanks.

Hello ..

Please post the log from the file in the transfer queue. To get it double click the file in the transfer queue and the log window opens. Then copy&paste the log.

Regards,
mat

Thanks, Matt.

Tried it with a different php file and still not working, so I've copied and pasted the log as you instructed:

[23:35:34] PASV
[23:35:34] An established connection was aborted by the software in your host machine.
[23:35:34] Server closed connection
[23:35:34] Transfer failed.
[23:36:04] Resolving host name "ftp.1stcastle.co.uk"
[23:36:04] Connecting to 78.129.162.34 Port: 21
[23:36:04] Connected to ftp.1stcastle.co.uk.
[23:36:04] 220 Gene6 FTP Server v3.10.0 (Build 2) ready...
[23:36:04] USER 1stcastle.co.uk
[23:36:04] 331 Password required for 1stcastle.co.uk.
[23:36:04] PASS (hidden)
[23:36:04] 230 User 1stcastle.co.uk logged in.
[23:36:04] SYST
[23:36:04] 215 UNIX Type: L8
[23:36:04] Detected Server Type: UNIX
[23:36:04] FEAT
[23:36:04] 211-Extensions supported:
[23:36:04] AUTH TLS
[23:36:04] CCC
[23:36:04] CLNT
[23:36:04] CPSV
[23:36:04] EPRT
[23:36:04] EPSV
[23:36:04] MDTM
[23:36:04] MFCT
[23:36:04] MFMT
[23:36:04] MLST type*;size*;create;modify*;
[23:36:04] MODE Z
[23:36:04] PASV
[23:36:04] PBSZ
[23:36:04] PROT
[23:36:04] REST STREAM
[23:36:04] SIZE
[23:36:04] SSCN
[23:36:04] TVFS
[23:36:04] UTF8
[23:36:04] XCRC "filename" SP EP
[23:36:04] XMD5 "filename" SP EP
[23:36:04] XSHA1 "filename" SP EP
[23:36:04] 211 End.
[23:36:04] CLNT SmartFTP 3.0.1022.7
[23:36:04] 200 Noted.
[23:36:04] Detected Server Software: Gene6 FTP Server 3.x
[23:36:04] OPTS UTF8 ON
[23:36:04] 200 UTF8 OPTS ON
[23:36:04] PWD
[23:36:04] 257 "/" is current directory.
[23:36:04] CWD /wwwroot
[23:36:04] 250 CWD command successful. "/wwwroot" is current directory.
[23:36:04] PWD
[23:36:04] 257 "/wwwroot" is current directory.
[23:36:04] Remote file exist check: "index.php".
[23:36:04] MLST index.php
[23:36:04] 250-Begin
[23:36:04] type=file;size=10216;modify=20080828085655; /wwwroot/index.php
[23:36:04] 250 End.
[23:36:04] Timeout dynamically set to 40s
[23:36:04] XSHA1 index.php
[23:36:05] 250 A0BA7898867FC8538444971E022AA543C16E418E
[23:36:05] Calculated SHA1 hash of index.php: 373CB723916F9570C60E7205B9817A5717F6BD8E
[23:36:05] TYPE I
[23:36:05] 200 Type set to I.
[23:36:05] PASV
[23:36:05] 227 Entering Passive Mode (78,129,162,21,22,139)
[23:36:05] Passive ip address returned from server different from server ip.
[23:36:05] Opening data connection to 78.129.162.34 Port: 5771
[23:36:05] STOR index.php
[23:36:26] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
[23:36:35] 425 Cannot open data connection.
[23:36:35] Transfer failed.
[23:37:05] Remote file exist check: "index.php".
[23:37:05] MLST index.php
[23:37:05] 250-Begin
[23:37:05] type=file;size=0;modify=20080828223612; /wwwroot/index.php
[23:37:05] 250 End.
[23:37:06] Source File: Size=10395, SizeUnit=Byte, Time=2008-08-28T22:34:24, TimeFormat=Exact
[23:37:06] Destination File: Size=0, SizeUnit=Byte, Time=2008-08-28T22:36:12, TimeFormat=Exact
[23:37:06] RecentTime=2008-08-28T22:37:06
[23:37:06] Rule "IF Destination Time=Recent AND Size=Smaller AND Transfer=No Matter THEN Resume" matched. Action="Resume".
[23:37:06] PASV
[23:37:06] 227 Entering Passive Mode (78,129,162,21,22,140)
[23:37:06] Passive ip address returned from server different from server ip.
[23:37:06] Opening data connection to 78.129.162.34 Port: 5772
[23:37:06] STOR index.php
[23:37:27] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
[23:37:36] 425 Cannot open data connection.


Cheers
Russell.

Hm. Try to switch from Passive Mode (PASV) to Active Mode (PORT) as described here.
https://www.smartftp.com/support/kb/how- ... de-f1.html

If it doesnt work please post the log again.

Regards,
Mat

Switched to passive, but still no go.

Here's the log:

[00:04:57] Resolving host name "ftp.1stcastle.co.uk"
[00:04:57] Connecting to 78.129.162.34 Port: 21
[00:04:57] Connected to ftp.1stcastle.co.uk.
[00:04:57] 220 Gene6 FTP Server v3.10.0 (Build 2) ready...
[00:04:57] USER 1stcastle.co.uk
[00:04:57] 331 Password required for 1stcastle.co.uk.
[00:04:57] PASS (hidden)
[00:04:57] 230 User 1stcastle.co.uk logged in.
[00:04:57] SYST
[00:04:57] 215 UNIX Type: L8
[00:04:57] Detected Server Type: UNIX
[00:04:57] FEAT
[00:04:57] 211-Extensions supported:
[00:04:57] AUTH TLS
[00:04:57] CCC
[00:04:57] CLNT
[00:04:57] CPSV
[00:04:57] EPRT
[00:04:57] EPSV
[00:04:57] MDTM
[00:04:57] MFCT
[00:04:57] MFMT
[00:04:57] MLST type*;size*;create;modify*;
[00:04:57] MODE Z
[00:04:57] PASV
[00:04:57] PBSZ
[00:04:57] PROT
[00:04:57] REST STREAM
[00:04:57] SIZE
[00:04:57] SSCN
[00:04:57] TVFS
[00:04:57] UTF8
[00:04:57] XCRC "filename" SP EP
[00:04:57] XMD5 "filename" SP EP
[00:04:57] XSHA1 "filename" SP EP
[00:04:57] 211 End.
[00:04:57] CLNT SmartFTP 3.0.1022.7
[00:04:57] 200 Noted.
[00:04:57] Detected Server Software: Gene6 FTP Server 3.x
[00:04:57] OPTS UTF8 ON
[00:04:57] 200 UTF8 OPTS ON
[00:04:57] PWD
[00:04:57] 257 "/" is current directory.
[00:04:57] CWD /wwwroot
[00:04:57] 250 CWD command successful. "/wwwroot" is current directory.
[00:04:57] PWD
[00:04:58] 257 "/wwwroot" is current directory.
[00:04:58] TYPE I
[00:04:58] 200 Type set to I.
[00:04:58] PASV
[00:04:58] 227 Entering Passive Mode (78,129,162,21,21,92)
[00:04:58] Passive ip address returned from server different from server ip.
[00:04:58] Opening data connection to 78.129.162.34 Port: 5468
[00:04:58] STOR index.php
[00:05:19] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
[00:05:28] 425 Cannot open data connection.
[00:05:28] Transfer failed.
[00:05:58] Remote file exist check: "index.php".
[00:05:58] MLST index.php
[00:05:58] 250-Begin
[00:05:58] type=file;size=0;modify=20080828230506; /wwwroot/index.php
[00:05:58] 250 End.
[00:05:58] Source File: Size=10395, SizeUnit=Byte, Time=2008-08-28T22:34:24, TimeFormat=Exact
[00:05:58] Destination File: Size=0, SizeUnit=Byte, Time=2008-08-28T23:05:06, TimeFormat=Exact
[00:05:58] RecentTime=2008-08-28T23:05:58
[00:05:58] Rule "IF Destination Time=Recent AND Size=Smaller AND Transfer=No Matter THEN Resume" matched. Action="Resume".
[00:05:58] PASV
[00:05:58] 227 Entering Passive Mode (78,129,162,21,21,166)
[00:05:58] Passive ip address returned from server different from server ip.
[00:05:58] Opening data connection to 78.129.162.34 Port: 5542
[00:05:58] STOR index.php
[00:06:19] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
[00:06:28] 425 Cannot open data connection.
[00:06:28] Transfer failed.

Cheers,
Russ.

You have to switch from Passive to Active.

Regards,
Mat

Whoops!

It's worked now :-)

All good - thanks so much for your help.