Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Notice: Undefined index: data in content_storage() (line 1071 of /sites/all/modules/contrib/cck/content.module).
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedUnable to replicate this problem. And I can find no reference to anything called 'data' on that line, or anywhere else in that function in the current code.
Comment #3
gateway69 CreditAttribution: gateway69 commentedSorry I had to open this, I just ran into this today on a fresh install of drupal on my ubuntu system..
I see about 4 or so undefined indexes when adding a new content to a content type.
the above one is valid but im also seeing these
this is the line of code
I no php guru but if i can help debug let me know..
Comment #4
chromix CreditAttribution: chromix commentedI also started seeing this error pop up when using the Link module.
http://drupal.org/node/830432#comment-5263232
This is with 6.x-2.9, I should point out. Changing line 1031 to this worked perfectly, though:
Comment #5
brad.bulger CreditAttribution: brad.bulger commentedjust a note to anyone else researching this error - it looks as if CCK is expecting the node field value to have all of the keys returned by content_database_info() for the field type, and some modules that define field types are not doing that. see #2078651: Notice: Undefined index: url in content_storage(), for example. so i guess the question is, is that a reasonable expectation, so that the problem is really on the module defining the field type to meet it, or should CCK handle the case when the column is undefined? a change that would preserve current behavior but prevent notices would be more like
so that it still creates the key/value pair in
$record
.