• Resolved zitomerh

    (@zitomerh)


    We cannot get 1.4 to work and had to revert to an older version (which still works)

    1.4 gives the following error page when we try to open the generated URL for a spreadsheet:
    Gravity Forms Entries in Excel: Whoops, unfortunantly something broke

    Error message: Could not close zip file php://output.

    If you need support for this, please contact me via the support forum on the wordpress plugin.

    Check if someone else had the same error, before posting a new support question.
    And when opening a new question, please use the error message (Could not close zip file php://output.) as the title,
    and include the following details in your message:

    Plugin Version: 1.4.0
    PHP Version: 7.0.30-0ubuntu0.16.04.1
    Wordpress Version: 4.9.7
    Error message: Could not close zip file php://output.
    Error stack trace:

    #0 /var/www/aauworg/wp-content/plugins/gf-entries-in-excel/src/Renderer/AbstractPHPExcelRenderer.php(43): PhpOffice\PhpSpreadsheet\Writer\Xlsx->save(‘php://output’)
    #1 /var/www/aauworg/wp-content/plugins/gf-entries-in-excel/src/Renderer/PHPExcelRenderer.php(43): GFExcel\Renderer\AbstractPHPExcelRenderer->renderOutput()
    #2 /var/www/aauworg/wp-content/plugins/gf-entries-in-excel/src/GFExcelOutput.php(153): GFExcel\Renderer\PHPExcelRenderer->handle(Array, Array, Array)
    #3 /var/www/aauworg/wp-content/plugins/gf-entries-in-excel/src/GFExcel.php(142): GFExcel\GFExcelOutput->render()
    #4 /var/www/aauworg/wp-includes/class-wp-hook.php(286): GFExcel\GFExcel->request(Array)
    #5 /var/www/aauworg/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)
    #6 /var/www/aauworg/wp-includes/class-wp.php(364): apply_filters(‘request’, Array)
    #7 /var/www/aauworg/wp-includes/class-wp.php(713): WP->parse_request(”)
    #8 /var/www/aauworg/wp-includes/functions.php(960): WP->main(”)
    #9 /var/www/aauworg/wp-blog-header.php(16): wp()
    #10 /var/www/aauworg/index.php(17): require(‘/var/www/aauwor…’)
    #11 {main}

    When I researched the error, the responses said it was a directory file permissions issue, but ://output isn’t really a file – what directory should I be looking at?

    thanks for your help

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Doeke Norg

    (@doekenorg)

    hi @ zitomerh,

    According to this issue on SO: https://stackoverflow.com/questions/21436949/phpexcel-writer-exception-with-message-could-not-close-zip-file-php-output, it could have something to do with the rights to your /tmp folder.

    What version did you revert to? because this renderer goes back to 1.2.4. So it should be a problem way before 1.4.0

    Thread Starter zitomerh

    (@zitomerh)

    Update – It turns out that open_basedir had another file specified for tmp usage, (/var/tmp) so after we added /tmp to it 1.4 is working OK. I don’t quite understand this behavior since the permissions on /var/tmp should have allowed the webserver user to write what it needed.
    I don’t know what version we were at before going to 1.4 because we usually keep pretty current (I reverted back to 1.0.2 since I had that folder handy and it worked).
    Thanks for your help, it seems like this is not a common issue.

    Plugin Author Doeke Norg

    (@doekenorg)

    Hi @zitomerh, glad to hear! Also nice to know you’re a continuing user ??. Thanks for the update. It might help someone else too.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘1.4 Fails – error: “could not close zip file php://output”’ is closed to new replies.