Support » Plugin: Gravity Forms To Excel AddOn » Blank page after submit

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Dieter Pfenning

    (@winball)

    Hi Fernando,

    i’m sorry to hear, that you do have problems with our Addon.

    Unfortunately attachments are not allowed in this support forum, so could you please send me an export of your form via email to dieter.pfenning(at)winball.de. I will try to reproduce your error to find out what’s really going on.

    Best wishes

    Hi Dieter,
    mail sent.

    Best regards

    Plugin Author Dieter Pfenning

    (@winball)

    Hi Fernando,

    i tested your form and could not see any problems after submitting the form. I saw my confirmation message (text) and got an filled out Excel file via email. You may do have a problem with your confirmation page. You did configure a page as confirmation type and perhaps did not choose an existing page.

    Best wishes

    Plugin Author Dieter Pfenning

    (@winball)

    Hi Fernando,

    today i tested my sample form/excel on your site without any problems. I did not deactivate any other plugins. So it must have something to do with your specific form. This will need further testing…

    I will keep you informed.

    Best wishes

    Hi Dieter,

    I ran into the same issue with a form that had a confirmation page rather than confirmation text, after submission the page stayed all white. The form in question also did not have any GF2Excel setup for it.

    I found the cause of the issue in the wp4o_delete_excel function. If there is no file found, or there is an error, exit() is called which stops any further execution from other scripts, causing the white screen. A better way to handle those errors would be to use an empty return instead.

    Thanks,

    Ben

    Plugin Author Dieter Pfenning

    (@winball)

    Hi Ben,

    you are totally right regarding the error handling (exit vs return) and i am sorry for this. Thank you for your debugging and your info.

    I will change that in the next version which i will try to release over the next weekend.

    Best wishes

    Dieter

    Dieter,

    It looks like this patch never got pushed T_T

    Willing to donate to have it pushed out. Client is super excited but we’re getting blank pages everywhere.

    -Adam

    I’m also having this problem. Client is eager to launch. Also willing to donate to get the patch out.

    Julie,

    Here is the work around I am using until the patch is loaded out:

    instead of of:

    // ********** delete temp excel file after sending notifications **********
    function wp4o_delete_excel($entry, $form){
    // read plugin settings for this form
    if (array_key_exists('gf2excel-addon', $form)) {
    $settings = $form['gf2excel-addon'];
    } else {
    exit();// no addons settings found so exit
    }
    // read active notifications for this form
    $dips_notifications = array();
    foreach ($form['notifications'] as $key => $value){
    if ($value['isActive']==1 && $settings[$key]==1){
    $dips_notifications[] = $key;
    }
    }
    // check if we have something to do for this form or we may exit
    if (empty($dips_notifications))
    exit();
    // delete file
    $excel_file_name = pathinfo ( $settings['excel_template_path'] , PATHINFO_FILENAME );// no extension, no .xlsx
    $filename = $excel_file_name.'_wp4o_'.$entry['id'].'.xlsx';
    try {
    unlink( __DIR__.'/tmp/'.$filename );
    }
    catch (Exception $e) {
    exit(); //file does not exist or cannot be deleted
    }
    }
    add_action( 'gform_after_submission', 'wp4o_delete_excel', 10, 2 );
    }

    use

    // ********** delete temp excel file after sending notifications **********
    function wp4o_delete_excel($entry, $form){
    // read plugin settings for this form
    if (array_key_exists('gf2excel-addon', $form)) {
    $settings = $form['gf2excel-addon'];
    } else {
    return;// no addons settings found so exit
    }
    // read active notifications for this form
    $dips_notifications = array();
    foreach ($form['notifications'] as $key => $value){
    if ($value['isActive']==1 && $settings[$key]==1){
    $dips_notifications[] = $key;
    }
    }
    // check if we have something to do for this form or we may exit
    if (empty($dips_notifications))
    return;
    // delete file
    $excel_file_name = pathinfo ( $settings['excel_template_path'] , PATHINFO_FILENAME );// no extension, no .xlsx
    $filename = $excel_file_name.'_wp4o_'.$entry['id'].'.xlsx';
    try {
    unlink( __DIR__.'/tmp/'.$filename );
    }
    catch (Exception $e) {
    return; //file does not exist or cannot be deleted
    }
    }
    add_action( 'gform_after_submission', 'wp4o_delete_excel', 10, 2 );
    }

    Thanks for the code. I had the same problem and now it works ๐Ÿ™‚

    Thanks @pullmanmarketing that worked like a charm ๐Ÿ™‚

    For anyone else experiencing this issue: The code is found in the gf2excel-addon.php on line 194

    Yes this code help me too, when Gravity Forms cannot redirect (white screen) after submission.

    @winball

    Would it be okay if my group was allowed to support the project and push an update for this?

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