WordPress.org

Support

Support » Plugins and Hacks » WP Download Codes » [Resolved] still some 0 KB .ZIPs…

[Resolved] still some 0 KB .ZIPs…

Viewing 12 replies - 1 through 12 (of 12 total)
  • i have the same problem. is there any solution?

    Same here – problem started after test where everything worked fine.

    Any help greatly appreciated…

    Plugin Author misanthrop

    @misanthrop

    Can you provide me with the OS and browser setup you are using and ideally with a trace (e.g. by using the Developer Tools). Thanks!

    Plugin Author misanthrop

    @misanthrop

    I have created a version 2.4.0 today. Can you check if the issue is resolved now? Also check out my comments here: http://wordpress.org/support/topic/safari-1?replies=12

    Same issue here: downloads have size 0 KB.

    Plugin-Version: 2.4.0
    Wordpress-Version: 3.8.1
    Server runs Apache 2.2.8
    PHP version: 5.2.4

    What I’ve tried:

    • All combinations of content type and Apace x-sendfile
    • Set permission of download file and containing folder to 777
    • Different operation systems (Linux/Win/Mac OS) and browsers (Firefox/Safari)
    • Simpler filename

    I’m not using https.

    Any ideas to solve the problem are greatly appreciated. Thanks a lot in advance!

    I had to remove the call to ob_end_flush() in line 90 of includes/download.php. Now everything seems to be working fine.

    Plugin Author misanthrop

    @misanthrop

    Ok, thanks for the hint. Actually, someone else was introducing that call to ob_end_flush() in order to fix his issue, so I added it in my version. This is weird.

    Hi, same problem (0 KB ZIP file) is happening to me now.

    WordPress-Version: 3.8.1
    Plugin-Version: 2.4.0
    Apache/2.4.9 (Unix) mod_fcgid/2.3.9
    PHP Version 5.3.28

    Tried changing permissions, folder, ZIP file size… No luck.

    Plugin Author misanthrop

    @misanthrop

    Do you have any other plugins installed which might interfere here?

    Ok, I solved my issue.
    Symptoms were like that:
    – with PHP Version 5.3.28, 0 byte response
    – with PHP Version 5.4.23, 143 bytes text response Cannot use output buffering in output buffering display handlers in Unknown on line 0
    – error log: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted

    It seemed that a plugin enabled output buffering, but I cannot find which one. So, I replaced

    ob_clean(); // download.php:88

    with

    ob_end_clean();

    which cleans and turns off output buffering.
    Issue solved… Hoping not to interfere with other plugins.

    Plugin Author misanthrop

    @misanthrop

    Thank you. I will consider to reverify this code for the next plugin version.

    Plugin Author misanthrop

    @misanthrop

    Release version 2.5.0 was just committed by me. The removal of ob_end_flush() as requested above. I hope that it still works for all users and scenarios. If not, let me know.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Resolved] still some 0 KB .ZIPs…’ is closed to new replies.
Skip to toolbar