We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7253
    • 97 Posts
    I’m getting the following error unpacking the the 0.9.6.2 tar.gz file on ubuntu 8.04 using archive manager:

    gzip: stdin: decompression OK, trailing garbage ignored
    tar: Child returned status 2
    tar: Error exit delayed from previous errors

    I’ve tried downloading it a few times, etc... The .zip version appears to work fine though.
      • 22303 MODX Staff
      • 10,725 Posts
      It’s just a tar.gz created with tar 1.14 on CentOS; sounds like someone messed with the Apache config again and gz compression is being applied to the downloads. I’ll get it fixed as soon as I can, but the error should be harmless.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        It causes the unpack to fail in Leopard’s default archive app, although running gzip and tar from the terminal works (with the message about garbage after unzipping).
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 22303 MODX Staff
          • 10,725 Posts
          embarrassed Alright, problem solved once again! UGH! >:(

          This is because the filedownload snippet was updated since the last time I fixed this problem (I had forgotten about this happening last time this was reported, my apologies), and there were two extra lines after the closing php tag in the download.php file responsible for delivering the downloads. This amounts to changing the size of the downloaded file which will likely freak out any number of archive utilities.

          Yet another reason why pure php files should not contain closing php tags: avoiding the mysterious whitespace problem that can, as you see, really screw things up.