Filezilla uploads as wrong file type w/ some WordPress files

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
mattcass
500 Command not understood
Posts: 4
Joined: 2009-08-16 04:23
First name: Matt
Last name: Cassarino

Filezilla uploads as wrong file type w/ some WordPress files

#1 Post by mattcass » 2009-08-16 04:36

Hey All,

I'm an experienced web developer that is trying to find a good alternative to Dreamweaver for FTP upload of the entire WordPress installation. Dreamweaver is too slow and routinely drops the FTP connection. Filezilla gets the job done very quickly and without fail every time (so far) but the files in my /themes and /plugins directories do not work. By that I mean that I see the raw HTML/PHP code on the WordPress admin pages instead of a functional dashboard.

My first thought is that these files were uploaded as binary instead of ascii as they are .php files, but the FileZilla logs show type set to A for ASCII. The only fix I've found is to delete /themes and /plugins from the server and re-upload these files using Dreamweaver. Then WordPress admin works just fine.

I've confirmed that Filezilla upload settings are set to AUTO. And the way I upload is by highlighting all the files on the left, right-click and select Upload.

Any idea what is going wrong when Filezilla uploads WordPress /themes and /plugins?

Matt

User avatar
boco
Contributor
Posts: 26940
Joined: 2006-05-01 03:28
Location: Germany

Re: Filezilla uploads as wrong file type w/ some WordPress files

#2 Post by boco » 2009-08-16 07:19

You should actually try to upload these files as Binary. ASCII changes the line endings, maybe this is not required in your case.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

mattcass
500 Command not understood
Posts: 4
Joined: 2009-08-16 04:23
First name: Matt
Last name: Cassarino

Re: Filezilla uploads as wrong file type w/ some WordPress files

#3 Post by mattcass » 2009-08-16 20:32

Thanks for the binary tip but it didn't work. Here's what I did:

1. delete entire /plugins directory on the server
2. in Filezilla > Transfer > Transfer Type > Binary
3. dragged the entire /plugins directory from my local copy to the server
4. upload started and completed successfully

Still getting the same broken admin pages on WordPress. Confirmed that the file size of the uploaded files is exactly the same as my local files. Any idea why this didn't work? Any other ideas?

User avatar
boco
Contributor
Posts: 26940
Joined: 2006-05-01 03:28
Location: Germany

Re: Filezilla uploads as wrong file type w/ some WordPress files

#4 Post by boco » 2009-08-17 05:26

Do you know the target OS of the server? Most definitely *NIX?

I think the problem is with the line endings. Explained in Data Type.

As a side note, are your files CHMODded correctly?
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

mattcass
500 Command not understood
Posts: 4
Joined: 2009-08-16 04:23
First name: Matt
Last name: Cassarino

Re: Filezilla uploads as wrong file type w/ some WordPress files

#5 Post by mattcass » 2009-08-17 16:36

Server OS is *NIX for sure. Files have proper permissions on the server as well.

Thanks for the link explaining Data Type. It seems as though binary upload would have done the trick but per my previous post it didn't work uploading the /plugins directory as binary.

So, my solution at this point is to upload via Dreamweaver and make sure I'm on a really good wi-fi connection so it doesn't disconnect mid-upload. Would sure love to use Filezilla because it is a much better FTP client.

User avatar
boco
Contributor
Posts: 26940
Joined: 2006-05-01 03:28
Location: Germany

Re: Filezilla uploads as wrong file type w/ some WordPress files

#6 Post by boco » 2009-08-18 21:14

There are only two possible choices in this case: ASCII or Binary. Which one is used by DW?
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

mattcass
500 Command not understood
Posts: 4
Joined: 2009-08-16 04:23
First name: Matt
Last name: Cassarino

Re: Filezilla uploads as wrong file type w/ some WordPress files

#7 Post by mattcass » 2009-08-19 19:30

ASCII for .php files
BINARY for image files

Is there a way to confirm that Filezilla's settings are the same when Transfer > Auto is selected?

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Filezilla uploads as wrong file type w/ some WordPress files

#8 Post by botg » 2009-08-19 19:56

Close observation of the message log.

User avatar
boco
Contributor
Posts: 26940
Joined: 2006-05-01 03:28
Location: Germany

Re: Filezilla uploads as wrong file type w/ some WordPress files

#9 Post by boco » 2009-08-20 14:42

Simple. Settings - Transfers - Filetypes

Every extension on the list is transferred ASCII, everything else Binary. By default files without extension and dotfiles are treated as ASCII, too.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

Post Reply