I am using the media-gallery module to create dynamic galleries for a site.
I have a problem when I Upload an image; I get the following error:
The specified file temporary://p17r3bfivv1rhmrlm1tcbuti1ofp4.tmp could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '' for key 2: INSERT INTO {file_managed} (uid, filename, uri, filemime, filesize, status, timestamp, type) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7); Array ( [:db_insert_placeholder_0] => 1 [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => application/octet-stream [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => 1 [:db_insert_placeholder_6] => 1369133543 [:db_insert_placeholder_7] => default ) in drupal_write_record() (line 6988 of /home/content/s/k/e/skelsmerghpc/html/test/includes/common.inc).
Please tell me any better solution.
Comments
Comment #0.0
alimalik commentedthere was mistake in spelling
Comment #1
ivnish