Great idea, looking forward to trying it out.

Using latest cvs of Drupal 4.7 and latest cvs of CCK. Just trying to create some text fields, no data created yet. I get the following error when adding a new text field:

warning: Invalid argument supplied for foreach() in [drupal path]\modules\cck\content.module on line 787.

Comments

jvandyk’s picture

Cannot reproduce.

Please provide a sequence of events that will reproduce the error.

RayZ’s picture

I get the same error with date, text or number fields (haven't tried with others on latest version).

  1. Create a new content type
  2. Create a new short text field "MyTextField"
  3. Select "Text Field" as the Widget (everything else default)
  4. Click "Save field settings" button
  5. Boom!

It appears that it does successfully create the field. I can go back and create a node of this new type with no trouble. If I continue adding field types I get this error every time, but each field is created. I have a content type that appears to be working with one field each of date, integer, decimal, short text and long text. If I go back later to "configure" the field, I can "Save field settings" without getting the error.

karens’s picture

My steps and results were the same as RayZ. The error is generated when I create the field, although the field is created successfully. I just checked, and as he noticed, there is no error when I try to make changes to the field.

jvandyk’s picture

Status: Active » Fixed

Fixed, thanks.

karens’s picture

I downloaded the changed module and it now seems to be working correctly. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)