I've been able to duplicate this issue on two sites. When I use FTools "Auto Create", it seems to delete the features attributes in the UI after it saves to the modules folder. My local Git repo seems to confirm part of this happening with lots of lines of code being deleted from my Feature.
I've never had this issue until I recently upgraded both Features and FTools. I am not quite sure how to troubleshoot this. I looked in my logs on one site and did see this:
Notice: Undefined index: sources in ftools_export_build_form_submit() (line 262 of /sites/all/modules/ftools/ftools.module).
... but I am not sure if this is realted as only one of the sites showed the error. Note that I can create a Feature or update one successfully by downloading and then popping it back in my /sites/all/modules folder. After that, all the attributes show up again in the Features UI. I also was not sure if I should open this issue here or in the Features issue queue.
I am using:
Features 7.x-2.0-beta1+3-dev (2012-Nov-14)
Features Tools 7.x-1.6
Drupal 7.17
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | ftools-dependency-1858482-5.patch | 2.16 KB | alexkb |
Comments
Comment #1
perelman.yuval commentedHi highrockmedia.
Ftools dont work right now with features 2.0.
But you now have the auto create feature in the core of features 2.0 module so you dont need ftools.
Comment #2
danny englanderAh, I see that now, thanks for pointing that out.
Comment #3
alexkb commentedFeatures 2.x currently has 30k installs of the 100k 7.x feature installs (according to the project usage).
With this in mind, it's probably a good idea to display a note on the ftools project page stating that ftools is already built into features 2.x, so it's only needed for features 1.x. Is it also worth putting the features version into the ftools.info (as discussed here: https://drupal.org/node/542202).
If anyone's wondering where the button to auto create feature in features 2.x, you just need to expand “Advanced options” on the feature create page, and then click “Generate feature”.
Comment #4
perelman.yuval commentedhi alexb.
You are right.
If you can make an patch it will be great.
Comment #5
alexkb commentedHi perelman.yuval, attached is a patch that includes the features 1.x check. Have also changed the name in the ftools.info so it is the same as the drupal.org profile page (just good practice) and rewrote the readme.txt to read better (hope that's ok).
Comment #6
alexkb commentedComment #7
perelman.yuval commentedThanks a lot i will port it to the dev ver asap.
Comment #8
glynster commentedUnless I am confused there is no way to unlink a feature so everything becomes independent. Any tips?
Comment #9
kendouglass commentedI'm seeing a similar error which leaves me with a white screen my feature contents
the same thing but in my case, it is after clicking the "Safe Create Feature" button:
So if ftools isn't compatible any more, is there some other way to unlink my features so they all in the db? Don't we still need ftools for its unlink feature?
Update: see my post here
Comment #10
glynster commentedWell this is what I ended up doing.
1. I reviewed every feature to see what was included: content types, field groups etc.
2. Then I went into each element, made a small update or just saved them, for example the content type, individual views, quicktabs etc.
3. Disabled the featured to see if everything was disconnected.
4. Uninstalled the modules.
Painful for my setup but it means I was able to remove around 12 modules/features which were only needed for setup.
Comment #11
perelman.yuval commentedHi all i port the patch to the dev version.
Thanks!!!