• Hello,

    I am using BuddyDrive Version 2.1.1, and when I am uploading xlsx files when I try to preview them they come back corrupt, even though the files that are saved are ok. This goes on in admin and in frontend, I have tried disabling other plugins and leave only this one active, so I do not think this is a conflict scenario.
    At first I was thinking that it only happens in frontend, but it happens in admin also(as some people suggested that it might be a theme issue).
    If you can check that out it would really appreciate it!

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author mrpritchett

    (@mrpritchett)

    Hello Victor,
    Thanks for using BuddyDrive. Can you try switching to the default theme with all plugins except BuddyPress and BuddyDrive disabled? It’s possible either a plugin or theme or some combination is causing an issue. Specifically the theme plus another plugin in your case, since you already tried disabling the other plugins. Thanks!

    Thread Starter victorchiriac

    (@victorchiriac)

    Hi,

    Of course I have tried this also, the solution that you describe, what I am failing to understand is why an issue like this can persist taking into consideration that we are talking about a plugin, I am a developer also, but when I build an extension I do not blame another theme of my extension not working, instead I find out what library might be affect it and make sure that there I no case further more, like take a step to either integrate it with the plugin or do a check if it was integrated.

    The solution you suggested does not fix my issue.

    Thanks,
    Victor

    Plugin Author mrpritchett

    (@mrpritchett)

    Victor,
    I’m sorry that you are having this issue. However, a plugin that is considered mature has a debug process in place. The first step in that process is checking to make sure that there is no conflict between the plugin and other plugins or the plugin and theme. Second, to make sure that another plugin or the theme by themselves is not causing it (therefore being unrelated to the plugin itself). Because users at all skill levels use this forum for help, I have to assume no knowledge on anyone’s part. I am not presuming guilt on any one or any piece of your site, I am merely trying to walk you through a proper debug routine. Support is offered free of charge on a “as available” basis on all plugins on the wp.org repository. All that being said, please review this issue to see if there is a similar issue in your install:

    https://wordpress.org/support/topic/the-zip-are-corrupt-because-they-are-added-5-lines-in-the-code/

    Thread Starter victorchiriac

    (@victorchiriac)

    Hi,

    The issue is only caused on nginx hosting, it is inside the file:

    includes/buddydrive-item-actions.php

    Function: buddydrive_file_downloader()

    THIS:

    while ( ob_get_level() > 0 ) {
    @ob_end_clean();
    @ob_end_flush();
    }

    BECAME THIS:

    #while ( ob_get_level() > 0 ) {
    @ob_end_clean();
    @ob_end_flush();
    #}

    This was the approach that works for nginx also.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Upload preview makes the file corrupt’ is closed to new replies.