Drupal 6.16. When importing a single image I get the following immediately:

An error occurred. /batch?id=28&op=do

The error page says:
# An error occurred while processing _imagefield_import_batch_process_multiple with arguments: Array ( [0] => sites/default/files/images/import/IMG_0443.png [1] => Array ( [title] => IMG_0443 [body] => [field_image] => Array ( [0] => Array ( [fid] => 0 [list] => 1 [data] => Array ( [description] => [alt] => [title] => ) [alt] => [title] => [filepath] => [filename] => [filemime] => [filesize] => 0 [_weight] => 0 [filefield_upload] => Upload [filefield_remove] => Remove [UPLOAD_IDENTIFIER] => 24e819e695355816dace61265d6155e1 [upload] => ) [1] => Array ( [fid] => 0 [list] => 1 [data] => Array ( [description] => [alt] => [title] => ) [alt] => [title] => [filepath] => [filename] => [filemime] => [filesize] => 0 [_weight] => 1 [filefield_upload] => Upload [filefield_remove] => Remove [UPLOAD_IDENTIFIER] => 5943af8376a2dc0a4330f34645d937a2 [upload] => ) [2] => Array ( [fid] => 0 [list] => 1 [data] => Array ( [description] => [alt] => [title] => ) [alt] => [title] => [filepath] => [filename] => [filemime] => [filesize] => 0 [_weight] => 2 [filefield_upload] => Upload [filefield_remove] => Remove [UPLOAD_IDENTIFIER] => 21cbc2b9cb7600341aede95880cbdd8f [upload] => ) [3] => Array ( [fid] => 0 [list] => 1 [data] => Array ( [description] => [alt] => [title] => ) [alt] => [title] => [filepath] => [filename] => [filemime] => [filesize] => 0 [_weight] => 3 [filefield_upload] => Upload [filefield_remove] => Remove [UPLOAD_IDENTIFIER] => b86091969ac87a70308b4964ef3ff914 [upload] => ) ) [node_status] => ) )

Comments

wulff’s picture

Assigned: Unassigned » wulff

What are your imagefield import settings?

Can you provide the output of this query? SELECT * FROM variable WHERE name LIKE 'imagefield_import%';

mikel1’s picture

name value
imagefield_import_body_widget_type s:9:"textfield";
imagefield_import_delete i:1;
imagefield_import_exif_body s:16:"ImageDescription";
imagefield_import_exif_title s:8:"FileName";
imagefield_import_field s:19:"photo:::field_image";
imagefield_import_ignore s:0:"";
imagefield_import_iptc_body s:5:"2#120";
imagefield_import_iptc_title s:5:"2#005";
imagefield_import_mode s:1:"0";
imagefield_import_path s:33:"sites/default/files/images/import";imagefield_import_prepopulate_title s:1:"1";
imagefield_import_show_form i:1;
imagefield_import_show_thumbnails i:0;
imagefield_import_status i:0;
imagefield_import_thumbnail_width s:3:"100";
imagefield_import_unpublish s:0:"";

mikel1’s picture

Import settings are:

Import path: sites/default/files/images/import
Target field: Photo: Image
Show Thumbnails is unchecked
Ignore files:
(is empty)
Delete files after import is checked
Publishing Options are all empty/unchecked
Title and body fields: Use filename as title
Display selection form is checked
Body field widget type: is Textfield

mikel1’s picture

Status: Active » Closed (fixed)

I should have tried this before bothering you - I tried to upload the same image to a node by hand - it failed. Seems to be a problem with the GD library. I switched to Imagemagick and now Imagefield Import is working. Thanks!