• I recorded about 320,000 records in this plugin …
    Now after getting the output I have a problem (There was a major error on this website. Please check the webmaster’s mailbox for instructions.) .. No email Can not be sent either !!!

    pleaaaaseeee helllp meee

Viewing 4 replies - 1 through 4 (of 4 total)
  • Good Day!

    I am experiencing a header output error upon the export.
    I did switch off caching did update WordPress, as well Plugins.

    Forced more memory and VAR, did not solve the problem.

    Any idea what is the problem?

    Kind Regards
    Rayno

    I have the same issue

    Does anybody know how to solve it?
    thanks

    Abner

    (@abnersamwebdev)

    Adding to Abners great advice:

    Here is the link to the plugin:

    https://github.com/AbnerSam/Elementor-Contact-Form-DB-FIXED

    If you dont want to install it, you can REPLACE lines 92 to 123 in the file “wp-content/plugins/sb-elementor-contact-form-db/sb_elementor_contact_form_db.php” with:

    function sb_elem_cfd_download_csv() {
     if ( isset( $_REQUEST['download_csv'] ) ) {
        if ( isset( $_REQUEST['form_name'] ) ) {
            if ( $rows = sb_elem_cfd_get_export_rows( $_REQUEST['form_name'] ) ) {
     
                header( 'Content-Type: application/csv' );
                header( 'Content-Disposition: attachment; filename=' . sanitize_title( $_REQUEST['form_name'] ) . '.csv' );
                header( 'Pragma: no-cache' );
                echo implode( "\n", $rows );
                die;
            }
        }
     
        if ( isset( $_REQUEST['form_id'] ) ) {
            if ( $rows = sb_elem_cfd_get_export_rows_by_form_id( $_REQUEST['form_id'] ) ) {
     
                header( 'Content-Type: application/csv' );
                header( 'Content-Disposition: attachment; filename=' . sanitize_title( $_REQUEST['form_id'] ) . '.csv' );
                header( 'Pragma: no-cache' );
                echo implode( "\n", $rows );
                die;
            }
        }
      }
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem on CSV Exporting’ is closed to new replies.