I've changed the field type of field_basic_image_caption from text_with_summary into text_long and now getting this error after the newest commit from the repository:

FieldException: Cannot change an existing field's type. in field_update_field() (line 238 of /panopoly/modules/field/field.crud.inc).

How can we prevent that from happening?

Comments

populist’s picture

Status: Active » Postponed (maintainer needs more info)

As far as I can tell, you can't change an existing field type from one thing to another since it runs into trouble. However, it might be possible.

Do you happen to have any *existing* entities using that field type?

designar’s picture

Yes you can't change the field type if there is any entity using that field.
But as I changed it, there wasn't any.

The error seems to be gone, perhaps an update of the fields or feature module?

I've learned that I can use features override to make changes to the core panopoly features persistent and update ready, but until now it works without it.
After extending many of the core fieldable panel panes like text and image with some options for the editor (like using images as teaser with an link text over them etc.) I can confirm after the update to rc4 the changes are still there and the error is gone.

lsolesen’s picture

Version: 7.x-1.x-dev » 7.x-1.0-rc5
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Fixed

#3 suggests that this has been fixed. Please reopen if that is not the case.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.