-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.0.0-alpha.6]: Invalid field handle on re-install #14166
Comments
I’m not able to reproduce that. Can you please send your Composer and project config files to [email protected]? |
Retried it by first rebuilding config files but still got it, When not renaming/rehandling the custom field it all works fine I've send my project yamls and composer files by mail |
Thanks for all the info and the files. I can replicate this issue. It only happens if the field with the changed handle is part of an entry type that is assigned to a |
Craft 5.0.0-alpha.9 was just released with a fix for this. Thanks again! |
What happened?
Description
When trying to setup a clean database with existing project-config, you get an
Exception: Invalid field handle: {customFieldHandle}
when you have used fields where you have renamed the handle inside a fieldlayout.cms/src/base/Element.php
Lines 5837 to 5840 in 5dd7cb7
here the
CustomFieldBehavior::$fieldHandles
is only returning the field handles as defined in settings -> fields, not the handles you have defined in the field layout editors.Steps to reproduce
./craft install
Expected behavior
Existing project config should be getting applied
Actual behavior
An Invalid field handle exception is thrown
Craft CMS version
5.0.0-alpha.6
PHP version
8.3.2
Operating system and version
Ubuntu 22.04
Database type and version
8.0.35
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: