I've found that enabling the media_internet, and media_youtube compontent modules creates some strange errors. Namely

WD php: FieldException: Cannot change an existing field's type. in [error] field_update_field() (line 234 of /var/aegir/platforms/commerce_kickstart/modules/field/field.crud.inc).

  • I was adding the modules via drush.
  • I discovered the problem after trying to view admin/modules - a general site error message was produced.
  • After trying to clear the cache via drush, I was presented with the error above.
  • After disabling the media module the error disappeared.
  • Later found that if the media_internet and media_youtube modules are disabled the error doesn't persist.

Not totally sure what the problem is but will investigate - might be a more general drush error?

Comments

GANYANCI’s picture

bojanz’s picture

Status: Active » Postponed (maintainer needs more info)

Add some debugging (the patch from #1 will do) and see WHICH field is being changed when the fail happens. Otherwise we won't be able to debug this.

billie.griffith’s picture

Title: Media 7.x-1.2 Compatibility » FieldException: cannot change an existing field's type in field_update_field () (line 234 of /home/.../mod./field/field_cred.inc
Version: 7.x-2.0-rc4 » 7.x-2.1
Priority: Normal » Major
Status: Postponed (maintainer needs more info) » Active
Issue tags: +Can't access modules

I am new to drupal. I am a small business owner that is trying to build a site. I know nothing about scripting, language, websites, etc. All I know is that I have a place to log in at siteguard.com and then my page that I am working on. I was trying to install modules. Some of them required modules that were missing, so I began downloading the missing modules. I don't know what the last module was, but after I installed a module and possibly tried to enable it, the above error came up. I would love to go in and add another module to fix it, or to go under modules and press uninstall, but I can't access modules at all now. The only thing that comes up is the error. Can someone please tell me how to fix this? I have no content on my site yet, so I would be happy to reinstall it, but I don't even know how to do that. This is really frustrating. I don't understand how to use a patch and if a file needs to be deleted and reinstalled, I have no idea which one. I need an explanation in plain English, not computer lingo! Thank you so much for any help you can give me!

icampana’s picture

Hi,

I added the patch from #1 and now I got these messages on the watchdog list:

2446764 04/Abr 15:50 notice features Rebuild completed for commerce_kickstart_lite_product / field.
2446754 04/Abr 15:50 error features Attempt to update field body failed: Cannot change an existing field's type.
2446753 04/Abr 15:50 notice features Rebuilding commerce_kickstart_lite_product / field.

Seems like the feature is trying to make some alteration to the body field, the only reason I could think of is some change to the product display, but if you already have a store setup and try to update this would fail, that's at least my case. At least now with the patch it doesn't fail every time I try to clear the cache.

billie.griffith’s picture

how do you install a patch?

bojanz’s picture

Status: Active » Closed (duplicate)