Posted by loganfsmyth on January 18, 2011 at 8:22pm
14 followers
| Project: | Content Construction Kit (CCK) |
| Version: | 7.x-2.x-dev |
| Component: | upgrade path |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
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.
| Attachment | Size |
|---|---|
| cck-default_image.patch | 766 bytes |
Comments
#1
Oops, forgot to set it for review :P
#2
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 ?
#3
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.
#4
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.
#5
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
#6
getting the same error message:
"Notice: Undefined index: default_image in content_migrate_filefield_field_alter() (line 25 of /var/...)"
#7
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
#8
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.
#9
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.
#10
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).
#11
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?
#12
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.
#13
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_imagevalue necessary for the migration even when there was no value set in previous versions.