Closed (duplicate)
Project:
Webform
Version:
7.x-4.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2014 at 08:08 UTC
Updated:
10 Nov 2014 at 11:37 UTC
Jump to comment: Most recent
Hi,
i receive the next error during report download:
PDOException: SQLSTATE[23502]: Not null violation: 7
ERROR: el valor null para la columna «sid» viola la restricción not null:
INSERT INTO webform_last_download (nid, uid, sid, requested) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3);
Array ( ) en webform_results_download() (línea 1071 de /var/www/html/sites/all/modules/webform/includes/webform.report.inc).
I need to edit the function "webform_results_download($node, $export_info)" and verify that:
Not are empty.
File: sites/all/modules/webform/includes/webform.report.inc
Line: 1071
if ( !isset( $export_info['last_sid'] ) || empty( $export_info['last_sid'] ) || is_null( $export_info['last_sid'] ) ) {
$export_info['last_sid'] = 0;
}
Comments
Comment #1
merolhack commentedComment #2
danchadwick commentedPretty sure this is fixed in: #2335587: File Not Found when downloading but no submissions. Use the latest -dev branch.