Title: pullmanmarketing's Replies | WordPress.org

---

# pullmanmarketing

  [  ](https://wordpress.org/support/users/pullmanmarketing/)

 *   [Profile](https://wordpress.org/support/users/pullmanmarketing/)
 *   [Topics Started](https://wordpress.org/support/users/pullmanmarketing/topics/)
 *   [Replies Created](https://wordpress.org/support/users/pullmanmarketing/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/pullmanmarketing/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/pullmanmarketing/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/pullmanmarketing/engagements/)
 *   [Favorites](https://wordpress.org/support/users/pullmanmarketing/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Gravity Forms To Excel AddOn] Blank page after submit](https://wordpress.org/support/topic/blank-page-after-submit-1/)
 *  [pullmanmarketing](https://wordpress.org/support/users/pullmanmarketing/)
 * (@pullmanmarketing)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/blank-page-after-submit-1/#post-9104267)
 * [@winball](https://wordpress.org/support/users/winball/)
 * Would it be okay if my group was allowed to support the project and push an update
   for this?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Gravity Forms To Excel AddOn] Blank page after submit](https://wordpress.org/support/topic/blank-page-after-submit-1/)
 *  [pullmanmarketing](https://wordpress.org/support/users/pullmanmarketing/)
 * (@pullmanmarketing)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/blank-page-after-submit-1/#post-6947814)
 * 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 );
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Gravity Forms To Excel AddOn] Blank page after submit](https://wordpress.org/support/topic/blank-page-after-submit-1/)
 *  [pullmanmarketing](https://wordpress.org/support/users/pullmanmarketing/)
 * (@pullmanmarketing)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/blank-page-after-submit-1/#post-6947812)
 * 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

Viewing 3 replies - 1 through 3 (of 3 total)