I'm using FlickerAPI 7.x-1.1 and FlickrSync 7.x-1.0-beta2+3-dev

I have setup a content type to include the title, default body field, and an image field. Upon running the import, images transfer fine but nothing is being imported into the body field.

Would appreciate any help.

Thanks,
Kirk

Comments

cybercampbell’s picture

Hi

I had the same issue.

Fixed it with this...

In flickrsync.module (line 540), replace this:


  $node->title = $photo_title;
  
  $node->created = strtotime($flickr_photo['dates']['taken']);
  $node->teaser = $content;
  $node->format = variable_get('filter_default_format', '');
  $node->body = $content;
  $node->name = $user->name;
  $node->language = LANGUAGE_NONE;
  $node->uid = $user->uid;
  $node->type = variable_get('flickrsync_node_type', '');
  $node->published = 1;
  $node->status = 1;
  node_save($node);

With this:

  $node->title = $photo_title;
  
  $node->created = strtotime($flickr_photo['dates']['taken']);
  $node->language = LANGUAGE_NONE;
  $node->body[$node->language][0]['value'] = $content;
  //$node->body[$node->language][0]['summary'] = $content;
  $node->body[$node->language][0]['format'] = variable_get('filter_default_format', '');
  $node->name = $user->name;
  $node->uid = $user->uid;
  $node->type = variable_get('flickrsync_node_type', '');
  $node->published = 1;
  $node->status = 1;
  node_save($node);

Also, you can fix the Strict warning: Only variables should be passed by reference in flickrsync_import_start_page() error.

In flickrsync.import.inc (line 128), replace this:

$output[] = drupal_render(drupal_get_form('flickrsync_import_start_form')); 

With This:

$output_form = drupal_get_form('flickrsync_import_start_form');
$output[] = drupal_render($output_form);

Sorry I don't have more time to give more detail on the why but hope it helps.