Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED File Manager Extract causing PHP files to get double lines

Discussion in 'General Discussion' started by AndyX, Mar 23, 2018.

  1. AndyX

    AndyX Active Member

    Joined:
    Sep 25, 2015
    Messages:
    35
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Los Altos, CA
    cPanel Access Level:
    Website Owner
    When I use the Extract function in File Manager, PHP files are being extracted with double lines.

    Example:

    pic001.jpg

    The file should look like this:

    pic002.jpg

    The source file is a ZIP file I download from xenforo.com, it the latest version of their forum software. I upload the ZIP using Dreamweaver and then I use File Manager and Extract. I have tested on two different web hosts so I suspect this will be an issue with cPanel.

    Thank you.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,066
    Likes Received:
    348
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi Andy, I'm unable to duplicate this on a cPanel v70.0.23 server. What version are you on over there?
     

    Attached Files:

  3. AndyX

    AndyX Active Member

    Joined:
    Sep 25, 2015
    Messages:
    35
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Los Altos, CA
    cPanel Access Level:
    Website Owner
    Thank you for testing.

    I tried on two different web hosts:

    68.0.33

    and

    11.62.0.40 -> shared web host with GoDaddy
     
  4. AndyX

    AndyX Active Member

    Joined:
    Sep 25, 2015
    Messages:
    35
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Los Altos, CA
    cPanel Access Level:
    Website Owner
    Please use TextEdit to view the extracted file. When viewed inside cPanel using File Manage -> View the PHP file looks normal.
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,066
    Likes Received:
    348
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    To be clear, you uploaded the zip, extract it, then selected download > Open with text edit, is that right?
     

    Attached Files:

  6. AndyX

    AndyX Active Member

    Joined:
    Sep 25, 2015
    Messages:
    35
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Los Altos, CA
    cPanel Access Level:
    Website Owner
    Thank you for checking.

    Here are the steps I took:

    1) cPanel -> File manager -> Select ZIP file -> Extract
    2) Dreamweaver (or use some other FTP program) -> download one of the extracted PHP files.
    3) Open PHP file on my iMac using TextEdit.
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,066
    Likes Received:
    348
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    That's exactly what I've done above, sans dreamweaver, I don't use it.
     
  8. AndyX

    AndyX Active Member

    Joined:
    Sep 25, 2015
    Messages:
    35
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Los Altos, CA
    cPanel Access Level:
    Website Owner
    I was able to solve this issue by changing the "Connect using" from FTP to SFTP.
     
    Infopro likes this.
  9. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,066
    Likes Received:
    348
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    That setting is in Dreamweaver I take it? Interesting that the connection type would have an effect here with this.
     
  10. AndyX

    AndyX Active Member

    Joined:
    Sep 25, 2015
    Messages:
    35
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Los Altos, CA
    cPanel Access Level:
    Website Owner
    The etc/ folder under the username was somehow moved to public_html/ so once that was moved back I could no longer FTP, so once I changed to SFTP in Dreamweaver I was able to FTP and also the issue with extract was resolved.
     
    Infopro likes this.
Loading...

Share This Page