Getting this:

Notice: Undefined index: default_image in content_migrate_content_migrate_field_alter() (line 426 of content_migrate.module)

when viewing "admin/structure/content_migrate"

I guess my fields don't have default_image set for some reason? Here's a quick patch to just confirm first.

Comments

Status:Active» Needs review

Oops, forgot to set it for review :P

Status:Needs review» Needs work

I don't think this is how it should be adressed.

Core Field API makes sure that $field and $instance arrays have all the expected entries in the 'settings' section. I'd suggest that $field and $instance arrays formed by content_migrate behave the same ?

Status:Needs work» Postponed (maintainer needs more info)

I am unable to get an error like this in the current code. Is this still an issue? If so, I need steps to reproduce it.

Status:Postponed (maintainer needs more info)» Needs work

Crossposting #1100580: Undefined index: default_image in content_migrate_filefield_field_alter() and confirm that the latest CCK dev. (11.5.2011) still throw this warning.

confirming that too.

Notice: Undefined index: default_image in content_migrate_filefield_field_alter() (line 25 of /var/www/WORKSPACE_DRUPAL/test/sites/all/modules/cck/modules/content_migrate/modules/content_migrate.filefield.inc).
Notice: Undefined index: label in _content_migrate_get_instance_values() (line 177 of /var/www/WORKSPACE_DRUPAL/test/sites/all/modules/cck/modules/content_migrate/includes/content_migrate.values.inc).
Notice: Undefined index: full in _content_migrate_get_instance_values() (line 226 of /var/www/WORKSPACE_DRUPAL/Ktest/sites/all/modules/cck/modules/content_migrate/includes/content_migrate.values.inc).

the field looks like this in the db
http://screensnapr.com/v/R2qwAW.png

so in my case the update from d5->d6->d7 F**#ed up the settings

so went back to d6 and saved the settings of the image field and copied over the data from d6 table to d7 table.

but changes nothing
http://screensnapr.com/v/gRgO5L.png

getting the same error message:

"Notice: Undefined index: default_image in content_migrate_filefield_field_alter() (line 25 of /var/...)"

confirm this is still occurring -- just upgraded to D7...

content migrate has the following error at top:

Notice: Undefined index: default_image in content_migrate_filefield_field_alter() (line 25 of

has any progress been made to understand where to look to solve this?

thanks

Status:Needs work» Active

Have got this error now while running the migrate fields functions. A series of 10 matching errors show up for me:

Notice: Undefined index: default_image in content_migrate_filefield_field_alter() (line 25 of /Users/sean/dev/icateens_d7/sites/all/modules/cck/modules/content_migrate/modules/content_migrate.filefield.inc).

It is not clear if this is an issue that just throws warnings because of bad behavior of this module or if this is something I have to diagnose in regards to the health of my fields. In the prior D6 site, I had several file field (filefield module) that were image fields (imagefield module) and none of them were configured to show default images. I have over 30 instances of those kinds of fields assigned to content types, I can't see why there is pattern for the ten identical errors.

I am getting this error too, and it's a new Drupal 7 install (one month old). I encountered it trying to create a File (Attachment) type.

Notice: Undefined index: default_image in content_migrate_filefield_field_alter() (line 25 of /home/off/data/www/clubwave.ru/sites/all/modules/cck/modules/content_migrate/modules/content_migrate.filefield.inc).
Notice: Undefined index: custom_alt in content_migrate_filefield_instance_alter() (line 121 of /home/off/data/www/clubwave.ru/sites/all/modules/cck/modules/content_migrate/modules/content_migrate.filefield.inc).
Notice: Undefined index: custom_title in content_migrate_filefield_instance_alter() (line 123 of /home/off/data/www/clubwave.ru/sites/all/modules/cck/modules/content_migrate/modules/content_migrate.filefield.inc).
Notice: Undefined index: custom_alt in content_migrate_filefield_instance_alter() (line 121 of /home/off/data/www/clubwave.ru/sites/all/modules/cck/modules/content_migrate/modules/content_migrate.filefield.inc).
Notice: Undefined index: custom_title in content_migrate_filefield_instance_alter() (line 123 of /home/off/data/www/clubwave.ru/sites/all/modules/cck/modules/content_migrate/modules/content_migrate.filefield.inc).

I am getting this error also when migrating CCK fields from D6 to D7:

    Notice: Undefined index: default_image in content_migrate_filefield_field_alter() (line 25 of /path/to/drupal/sites/all/modules/cck/modules/content_migrate/modules/content_migrate.filefield.inc).
    Notice: Undefined index: default_image in content_migrate_filefield_field_alter() (line 25 of /path/to/drupal/sites/all/modules/cck/modules/content_migrate/modules/content_migrate.filefield.inc).
    Notice: Undefined index: label in _content_migrate_get_instance_values() (line 177 of /path/to/drupal/sites/all/modules/cck/modules/content_migrate/includes/content_migrate.values.inc).
    Notice: Undefined index: full in _content_migrate_get_instance_values() (line 231 of /path/to/drupal/sites/all/modules/cck/modules/content_migrate/includes/content_migrate.values.inc).

Any other suggestions on how to fix this?

I can confirm that this error still appears in the latest version (2012-Nov-19). I'm also upgrading D5 -> D6 -> D7, though this is my third D5 -> D7 upgrade and the first where I've had this problem. None of the file/image fields on this D5 site were configured to use a default image.

Title:Undefined index: default_imagePHP Notice: Undefined index: default_image in content_migrate_filefield_field_alter()
Status:Active» Needs review
StatusFileSize
new1.13 KB

Here's a quick patch that removes the PHP notice. I don't think it's a problem we need to be worried about, not unless the default_image value necessary for the migration even when there was no value set in previous versions.

Status:Needs review» Reviewed & tested by the community

works for me, thanks!

Version:7.x-2.x-dev» 7.x-3.x-dev
Issue summary:View changes
Status:Reviewed & tested by the community» Fixed

Thanks! Fixed in 1de9756.

Status:Fixed» Closed (fixed)

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