an issue that have been covered in the imagecache issue's

if an image_field (cck) is deletede thickbox still trys to build the image link :/
this little fix takes care of business:
line 195:
change :

    return l($image, file_create_url($path), array('title' => $title, 'class' => 'thickbox', 'rel' => $field['type_name']), NULL, NULL, FALSE, TRUE);	

to this

  if(!$path){
    return '';
  }else{
    return l($image, file_create_url($path), array('title' => $title, 'class' => 'thickbox', 'rel' => $field['type_name']), NULL, NULL, FALSE, TRUE);	
  }

no more broken images :)

Comments

frjo’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.