Corrupt files during upload...

Discussion in 'Installation' started by itis_kaz, Jul 9, 2010.

  1. itis_kaz

    itis_kaz New Member

    Joined:
    Jul 9, 2010
    Messages:
    1
    I am download and installing the trial version from a windows box to a linux host. I keep getting the error "index.php" corrupt and it is stating that i uploaded the file in ascii mode...

    I have set the uplaod type to binary on 3 different ftp cloents (filezilla, coffee ftp, winscp) i have tried to upload in auto and manually set to binary with each client deleting the dir each time. the one solution i have not tried is to upload via putty... im avoiding this because i am not the best command line junky.

    someone please help me and tell me what im not doing right before i pull my hair right.

    host is web.com, im using winxp, winrar, trendmicro av+ firewall... if i left something out please feel free to point it out.

    thanks in advance for any help.
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    One suggestion is to upload the .zip file as a whole and then unzip locally on the server via putty (unzip %filename%)

    This avoids any issues that may occur in uploading the files individually.
  3. tlatham

    tlatham New Member

    Joined:
    Aug 29, 2010
    Messages:
    1
    I agree - I'm 100% positive I'm uploading in binary. I'm using Fetch where it's very easy set tell (Mode=Binary / Format=Raw Data). I've now spent a weekend on this and am bailing on aMember - there's lots of other options out there to try.
  4. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    @tlatham: Have you tried uploading the .zip file and unzipping locally on the server?
  5. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    It is very easy to check if there is a problem with upload. Switch your FTP manager to mode when you can view filesize in bytes, then compare filesize of local unpacked files and files on the server. You will easily see the difference.
    There are no other sources for issues, but :
    - unpacker error (but I've never heard of any)
    - FTP upload in ASCII mode error (this happens every day, because FTP clients are trying to be too smart, and switches itself to ASCII/Text upload mode for PHP files, no matter how you configure it. It takes time to find where are these settings and disable it).

    In any case, you will experience this kind of problems with any scripts encoded by Zend SafeGuard. To resolve it, try another FTP client.

Share This Page