All node content (except title) lost on initial save
| Project: | Flexifield |
| Version: | 6.x-1.0-alpha5 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hi all,
I'm using CCK 6.x-2.5, FlexiField alpha5, FileField 6.x-3.1, Drupal 6.13.
I have a node type with a FlexiField that contains two fields: (1) an image file field and (2) accompanying caption text field. It is set to unlimited values, allowing users to add a number of image/caption pairings to a given node, and it is not a required field. Other fields in the node type (but not in the FlexiField) are a Date Range field, and a couple of text fields.
I'm experiencing two types of odd behavior:
- When users create a new node of this type and enter their data *without* adding an image/caption pair (as it's not a required field), and hit Save, only the title of the node is saved -- all other data (date information, text fields, etc) is gone. If they then edit this node again, adding the missing information (but still not using the FlexiField) and hit Save, everything is as it should be -- no information is lost.
- When users create a new node of this type and enter their data *including* adding an image/caption pair or two, none of the other data is lost upon saving. *However*, when that node is edited, the image/caption pair disappears, and needs to be re-entered. Once it is re-entered, it sticks around without any more issues.
So with both issues, it's only in the initial creation of a node that these issues arise. Through disabling various fields and modules, I've been able to link the behaviour to FlexiField, but I haven't the slightest as to *why* it's happening. I'm hoping someone out there may have some insight -- thanks in advance!!

#1
I'm experiencing the same issue regardless of the caption field. My flexifield contains one select list, one text field, and one image field. On initial save all data is lost. If I then edit the node, re-enter the data, and save, all is well.
Also, I can't configure my flexifield once I've created it. On the manage fields page, if I select configure for my flexifield, I receive the following:
Fatal error: Cannot unset string offsets in /usr/home/.../sites/all/modules/cck/includes/content.node_form.inc on line 60#2
Same here.
- I have a flexifield containing a filefield, a text field and an integer field.
- Upon creation, if my CCK content type uses this flexifield, all CCK field values (both from the flexifield fields and from the actual content type) are lost on initial save. This makes default values useless, which in my case is critical. Taxonomy, path, title, etc. are, however, saved.
- I narrowed it down to the filefield being the culprit. If I remove it from the flexifield, everything works correctly. From reading the posts above, I guess things point to that direction.
I would really appreciate it if somebody could shed some light on this issue. The usage of default values and being able to save data upon creation is critical to me.
Drupal 6.14
CCK 6.x-2.5
Filefield 6.x-3.2
Flexifield 6.x-1.0-alpha5
#3
I'm also experiencing what bluewrath is describing with same core/module versions
#4
Changing category from "support request" to "bug report" and Priority from "normal" to "critical" (fits better to Priority level of Issues specifications). It renders initial input, including default values, useless.