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
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;
}
}
}
}