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.
I just created a new content type, added a few fields (3 text, 1 File) and tried to create an item of content to test with, and I got this error message when I hit submit:
notice: Undefined index: data in content_storage() (line 1031 of sites/all/modules/cck/content.module)
The line in question seems to be looping through a list of fields - none of my fields are called data.
PHP 5.3.3, Drupal 6.22
Comments
Comment #1
vectoroc CreditAttribution: vectoroc commentedThe notice was appearing on filefield fields (list and description are disabled) and has disappeared after enabling description option
the same issue few months ago #1034428: Notice: Undefined index: data in content_storage() (line 1071 of /sites/all/modules/contrib/cck/content.module).
Comment #2
reikiman CreditAttribution: reikiman commentedI'm getting a slightly different message (different line number) upon posting a new node:-
I found that this change makes the message go away -- that is, there's an existing guard test, so the change makes a slight extension to that test.