• Resolved Remon Pel

    (@rmpel)


    This plugin breaks GravityForms downloading form-uploads.

    solution: add this to your theme, or an mu-plugin;


    // Fix GF downloads with minify-html plugin.
    add_filter( 'gform_permission_granted_pre_download', 'myprefix_fix_gf_download', 10 );
    function myprefix_fix_gf_download( $permission_granted__passthru ) {
    while ( ob_get_level() ) {
    ob_end_clean();
    }

    return $permission_granted__passthru;
    }

    This will close the problematic output buffer that is started by the plugin (and any and all other output buffers, which is good because we want to send a binary stream)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tim Eckel

    (@teckel)

    @rmpel A new version was released today which may resolve this. It doesn’t specifically target this fix, but I believe it’s related and could resolve this problem as well. I don’t use GravityForms to test it.

    Thread Starter Remon Pel

    (@rmpel)

    @teckel Indeed, the problem seems solved. I have not done extensive testing, though, but a single test with GF + your plugin shows a minified HTML and download links are working fine!

    Thank you! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.