Reproduced with the latest versions of the module profile ( #962346 Cannot delete profile types with no profiles.), entity ( #976348 another follow-up: hopefully finally fixed it + added an explaining comment.) and features7.x-1.x-dev 2010-10-26

- Enable profile2 and Entity API
- create a custom profile type and add a textfield to it
- enable the features module
- create a feature via features UI and download it as a module (choose Profile type > Your custom profile)
- place that feature module into your modules folder and enable that feature via features UI
- note how features indicate an overridden state for this profile feature. Do not revert it: you will loose all your fields!

The work around I found is to update that feature (via drush fu) or recreate via the features.module UI. But I think there is something funky going in either profile2 or features, the feature should not appear as overridden right from the beginning when you enable it. What I found to be missing from the initial download of the feature and causes it to be marked as "overridden" is this (where prof2 is the name of my custom feature):

diff --git prof2.features.inc prof2.features.inc
index fc6b16c..6414e1d 100644
--- prof2.features.inc
+++ prof2.features.inc
@@ -14,6 +14,7 @@ function prof2_default_profile2_type() {
       'data' => array(
         'registration' => 0,
       ),
+      'module' => 'prof2',
       'rdf_mapping' => array(),
     )),
   );
diff --git prof2.info prof2.info
index d885902..99c2dda 100644
--- prof2.info
+++ prof2.info
@@ -7,3 +7,4 @@ features[field][] = "profile2-pro-field_fullname"
 features[profile2_type][] = "pro"
 name = "prof2"
 package = "Features"
+php = "5.2.4"

Comments

fago’s picture

Status: Active » Postponed (maintainer needs more info)

Is that still a problem with the latest entity API + profile2 + features module? Quite some things changed since then.

fago’s picture

fago’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Please re-open if there are still problems.

Ken Ficara’s picture

Version: 7.x-1.x-dev » 7.x-1.2
Status: Closed (works as designed) » Needs review

I just had the same problem -- I used features to export my profiles and one of them came in as "overridden." I edited it, switched off the custom registration path, and saved it. The status column showed nothing. Edited the profile again, turned the reg path back on, saved it. The status column showed "Custom." Something is still funky in there.

fago’s picture

Status: Needs review » Postponed (maintainer needs more info)

This should be fixed in recent releases.

Please test with latest entity api + profile2 releases or dev versions - if it still fails please reopen.