Was getting the following error every time I tried to go to the modules list page.

"FieldException: Cannot change an existing field's type. in field_update_field() (Line 234 in .../modules/field/field.crud.inc)"

The line in field.crud.inc is throwing an exception for fields with the same name that have a different type. I print_r()'d those field arrays and found the offending field to be field_location. It show there are two fields with that name. One is of type text defined in "profiles/commons/modules/contrib/commons_events/commons_events.features.field_base.inc". The other is of type "list text". I tracked down where this other was coming from by going into phpmyadmin and doing a 'find' for 'field_location' on the table list, which revealed the field_data_field_location table. Browsing that showed the Events bundle.

The only "fix" I found was to go to the Events content type -> manage fields, find the 'field_location' field and delete it.

Obviously, I'd prefer to have a location field for the Events. So this is a bit of a bummer for now.

Comments

work77’s picture

Issue summary: View changes

Making more sensible

work77’s picture

Issue summary: View changes

Correction

lsolesen’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

I cannot reproduce this on recent Commons version. Please reopen if you still have this problem with exact steps to reproduce?

markbannister’s picture

I realize this is old and closed but just an FYI for this obscure error. Thanks work77 for your hints on how to fix.
In my case the field in question was from a field collection where I had named a new field.
In my research I found you can also get this error with Features.
Anyway, lesson learned, ALWAYS add a module prefix to your custom machine names, ex. field_mymodule_fieldname.