WordPress.org

Ready to get started?Download WordPress

Forums

WP Download Codes
[resolved] still some 0 KB .ZIPs... (13 posts)

  1. mich23
    Member
    Posted 1 year ago #

    when I tested it, it worked, now all I get is a 0 KB .zip.

    the hosts limit is not the problem, neither is an invalid file name.

    any ideas?

    thanks a bunch!

    http://wordpress.org/extend/plugins/wp-download-codes/

  2. Jan Reimers
    Member
    Posted 9 months ago #

    i have the same problem. is there any solution?

  3. SteffenFraWots
    Member
    Posted 9 months ago #

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

    Any help greatly appreciated...

  4. misanthrop
    Member
    Plugin Author

    Posted 6 months ago #

    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!

  5. misanthrop
    Member
    Plugin Author

    Posted 6 months ago #

    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

  6. Deve
    Member
    Posted 6 months ago #

    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!

  7. Deve
    Member
    Posted 6 months ago #

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

  8. misanthrop
    Member
    Plugin Author

    Posted 6 months ago #

    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.

  9. Sga
    Member
    Posted 4 months ago #

    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.

  10. misanthrop
    Member
    Plugin Author

    Posted 4 months ago #

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

  11. Sga
    Member
    Posted 4 months ago #

    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.

  12. misanthrop
    Member
    Plugin Author

    Posted 3 months ago #

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

  13. misanthrop
    Member
    Plugin Author

    Posted 1 month ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.