--- imagecache_profiles.module
+++ (clipboard)
@@ -65,7 +65,9 @@
 
     if (isset($picture)) {
       $alt = t("@user's picture", array('@user' => $account->name ? $account->name : variable_get('anonymous', t('Anonymous'))));
-      $preset = is_numeric($size) ? imagecache_preset($size) : imagecache_preset_by_name($size);
+      if (isset($size)) {
+        $preset = is_numeric($size) ? imagecache_preset($size) : imagecache_preset_by_name($size);
+      }
       if (empty($preset)) {
         $variables['picture'] = $default; //theme('image', $picture, $alt, $alt, '', FALSE);
       }
@@ -221,6 +223,9 @@
  * @see imagecache_profiles_user_profile_form_validate()
  */
 function imagecache_profiles_form_user_profile_form_alter(&$form, $form_state) {
+  if (!isset($form['picture'])) {
+    return;
+  }
   $width = variable_get('user_picture_imagecache_profiles_min_width', '');
   $height = variable_get('user_picture_imagecache_profiles_min_height', '');
   $description = '';
